Marcus Meissner
dad8dc7150
- making the build reproducible - see http://lists.gnupg.org/pipermail/gnupg-commits/2014-September/010683.html for a very similiar problem OBS-URL: https://build.opensuse.org/request/show/283930 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=55
156 lines
5.3 KiB
RPMSpec
156 lines
5.3 KiB
RPMSpec
#
|
|
# spec file for package gpgme
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gpgme
|
|
Version: 1.5.3
|
|
Release: 0
|
|
Summary: A Library Designed to Give Applications Easy Access to GnuPG
|
|
License: LGPL-2.1+ and GPL-3.0+
|
|
Group: Productivity/Security
|
|
Url: http://www.gnupg.org/related_software/gpgme/
|
|
Source: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2.sig
|
|
Source2: baselibs.conf
|
|
Source3: gpgme.keyring
|
|
# used to have a fixed timestamp
|
|
Source99: %{name}.changes
|
|
BuildRequires: gpg2 >= 2.0.10
|
|
BuildRequires: libassuan-devel >= 2.0.2
|
|
BuildRequires: libgpg-error-devel >= 1.11
|
|
PreReq: %install_info_prereq
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
|
easier for applications. It provides a high-level Crypto API for
|
|
encryption, decryption, signing, signature verification, and key
|
|
management. Currently it uses GnuPG as its back-end, but the API is not
|
|
restricted to this engine.
|
|
|
|
Because the direct use of GnuPG from an application can be a
|
|
complicated programming task, it is suggested that all software should
|
|
try to use GPGME instead. This way bug fixes or improvements can be
|
|
done at a central place and every application benefits from this.
|
|
Authors of MUAs should especially consider using GPGME. Creating a set
|
|
of standard widgets for common key selection tasks is even planned.
|
|
|
|
%package -n libgpgme11
|
|
Summary: A Library Designed to give Applications easy Access to GnuPG
|
|
Group: Development/Libraries/C and C++
|
|
Requires: gpg2
|
|
|
|
%description -n libgpgme11
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
|
easier for applications. It provides a high-level Crypto API for
|
|
encryption, decryption, signing, signature verification, and key
|
|
management. Currently it uses GnuPG as its back-end, but the API is not
|
|
restricted to this engine.
|
|
|
|
Who Should use GPGME?
|
|
|
|
Because the direct use of GnuPG from an application can be a
|
|
complicated programming task, it is suggested that all software should
|
|
try to use GPGME instead. This way bug fixes or improvements can be
|
|
done at a central place and every application benefits from this.
|
|
Authors of MUAs should especially consider using GPGME. Creating a set
|
|
of standard widgets for common key selection tasks is even planned.
|
|
|
|
%package -n libgpgme-devel
|
|
Summary: A Library Designed to give Applications easy Access to GnuPG
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libgpg-error-devel
|
|
%requires_ge libassuan-devel
|
|
Requires: libgpgme11 = %{version}
|
|
Provides: gpgme-devel = %{version}
|
|
Obsoletes: gpgme-devel < %{version}
|
|
|
|
%description -n libgpgme-devel
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
|
easier for applications. It provides a high-level Crypto API for
|
|
encryption, decryption, signing, signature verification, and key
|
|
management. Currently it uses GnuPG as its back-end, but the API is not
|
|
restricted to this engine.
|
|
|
|
Who Should use GPGME?
|
|
|
|
Because the direct use of GnuPG from an application can be a
|
|
complicated programming task, it is suggested that all software should
|
|
try to use GPGME instead. This way bug fixes or improvements can be
|
|
done at a central place and every application benefits from this.
|
|
Authors of MUAs should especially consider using GPGME. Creating a set
|
|
of standard widgets for common key selection tasks is even planned.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
date=$(date -u +%Y-%m-%dT%H:%M+0000 -r %{S:99})
|
|
sed -e "s,BUILD_TIMESTAMP=.*,BUILD_TIMESTAMP=$date," -i configure
|
|
%configure \
|
|
--disable-static \
|
|
--disable-fd-passing
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
# Do this now to make /usr/lib/rpm/brp-chuck-la happy:
|
|
rm %{buildroot}/%{_libdir}/*.la
|
|
|
|
%check
|
|
%if ! 0%{?qemu_user_space_build}
|
|
#make check
|
|
%endif
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libgpgme11 -p /sbin/ldconfig
|
|
|
|
%postun -n libgpgme11 -p /sbin/ldconfig
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gpgme.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gpgme.info.gz
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog ChangeLog-2011 README NEWS THANKS TODO
|
|
%{_bindir}/gpgme-tool
|
|
%{_datadir}/common-lisp
|
|
%{_datadir}/common-lisp/source
|
|
%{_infodir}/gpgme*
|
|
|
|
%files -n libgpgme11
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgpgme.so.*
|
|
%{_libdir}/libgpgme-pthread.so.*
|
|
|
|
%files -n libgpgme-devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgpgme.so
|
|
%{_libdir}/libgpgme-pthread.so
|
|
%{_bindir}/gpgme-config
|
|
%{_datadir}/aclocal/gpgme.m4
|
|
%{_includedir}/gpgme.h
|
|
|
|
%changelog
|