2007-01-16 00:15:34 +01:00
|
|
|
#
|
2011-01-14 15:03:14 +01:00
|
|
|
# spec file for package gpgme
|
2007-01-16 00:15:34 +01:00
|
|
|
#
|
2011-01-14 15:03:14 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:34 +01:00
|
|
|
#
|
2009-01-13 18:58:06 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 14:17:43 +02:00
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
Name: gpgme
|
2009-06-29 16:50:45 +02:00
|
|
|
BuildRequires: gpg2 >= 2.0.10
|
2010-09-16 12:21:05 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2009-06-29 16:50:45 +02:00
|
|
|
BuildRequires: libpth-devel >= 2.0.7
|
2010-09-16 12:21:05 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: pth >= 2.0.7
|
|
|
|
%endif
|
2010-04-01 15:29:34 +02:00
|
|
|
Version: 1.3.0
|
2011-01-14 15:03:14 +01:00
|
|
|
Release: 6
|
2010-12-14 23:28:20 +01:00
|
|
|
License: GPLv2+
|
|
|
|
Summary: A Library Designed to Give Applications Easy Access to GnuPG
|
|
|
|
Url: http://www.gnupg.org/related_software/gpgme/
|
|
|
|
Group: Productivity/Security
|
2008-02-08 21:18:15 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
|
2010-02-05 14:16:49 +01:00
|
|
|
Source2: baselibs.conf
|
2010-12-14 23:28:20 +01:00
|
|
|
BuildRequires: libassuan-devel >= 1.1.0
|
|
|
|
BuildRequires: libgpg-error-devel >= 1.4
|
2011-01-14 10:53:15 +01:00
|
|
|
PreReq: %install_info_prereq
|
2007-05-16 16:20:36 +02:00
|
|
|
Requires: gpg2
|
2007-01-16 00:15:34 +01:00
|
|
|
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.
|
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%package -n libgpgme11
|
2010-02-05 14:16:49 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:15:34 +01:00
|
|
|
Summary: A Library Designed to give Applications easy Access to GnuPG
|
2007-12-31 22:22:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-08-08 00:52:13 +02:00
|
|
|
Requires: gpgme = %{version}
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%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
|
2010-02-05 14:16:49 +01:00
|
|
|
License: GPLv2+
|
2007-08-06 23:39:18 +02:00
|
|
|
Summary: A Library Designed to give Applications easy Access to GnuPG
|
2007-12-31 22:22:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-14 23:28:20 +01:00
|
|
|
Requires: glibc-devel
|
2010-09-16 12:21:05 +02:00
|
|
|
Requires: libgpg-error-devel
|
2010-12-14 23:28:20 +01:00
|
|
|
Requires: libgpgme11 = %{version}
|
2010-04-01 15:29:34 +02:00
|
|
|
Provides: gpgme-devel = %{version}
|
|
|
|
Obsoletes: gpgme-devel < %{version}
|
2007-08-06 23:39:18 +02:00
|
|
|
|
|
|
|
%description -n libgpgme-devel
|
2007-01-16 00:15:34 +01:00
|
|
|
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
|
2008-02-08 21:18:15 +01:00
|
|
|
sh autogen.sh
|
|
|
|
# Ensure that a (re)build uses fixed binaries with minimum version because
|
|
|
|
# in case configure picks GnuPG-1.x, e.g. from /usr/local, this would cause
|
|
|
|
# testsuite failures:
|
|
|
|
%configure --disable-static \
|
2009-02-19 22:11:16 +01:00
|
|
|
--with-gpg-version=2.0.10 \
|
|
|
|
--with-gpgsm-version=2.0.10 \
|
|
|
|
--with-gpgconf-version=2.0.10 \
|
2010-12-14 23:28:20 +01:00
|
|
|
--with-gpg=%{_bindir}/gpg2 \
|
|
|
|
--with-gpgsm=%{_bindir}/gpgsm \
|
|
|
|
--with-gpgconf=%{_bindir}/gpgconf
|
2007-01-16 00:15:34 +01:00
|
|
|
|
|
|
|
%install
|
2010-12-14 23:28:20 +01:00
|
|
|
%make_install
|
2008-02-08 21:18:15 +01:00
|
|
|
# Do this now to make /usr/lib/rpm/brp-chuck-la happy:
|
2010-12-14 23:28:20 +01:00
|
|
|
rm %{buildroot}/%{_libdir}/*.la
|
2008-02-08 21:18:15 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2007-01-16 00:15:34 +01:00
|
|
|
|
|
|
|
%clean
|
2010-12-14 23:28:20 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2010-12-14 23:28:20 +01:00
|
|
|
%post -n libgpgme11 -p /sbin/ldconfig
|
2007-12-31 22:22:29 +01:00
|
|
|
|
2010-12-14 23:28:20 +01:00
|
|
|
%postun -n libgpgme11 -p /sbin/ldconfig
|
2007-12-31 22:22:29 +01:00
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
%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 README NEWS THANKS TODO
|
2007-12-31 22:22:29 +01:00
|
|
|
%{_datadir}/common-lisp
|
|
|
|
%{_datadir}/common-lisp/source
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_infodir}/gpgme*
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%files -n libgpgme11
|
2007-08-07 00:32:20 +02:00
|
|
|
%defattr(-,root,root)
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_libdir}/libgpgme.so.*
|
|
|
|
%{_libdir}/libgpgme-pthread.so.*
|
|
|
|
%{_libdir}/libgpgme-pth.so.*
|
2007-08-06 23:39:18 +02:00
|
|
|
|
|
|
|
%files -n libgpgme-devel
|
2007-01-16 00:15:34 +01:00
|
|
|
%defattr(-,root,root)
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_libdir}/libgpgme.so
|
|
|
|
%{_libdir}/libgpgme-pthread.so
|
|
|
|
%{_libdir}/libgpgme-pth.so
|
2007-12-31 22:22:29 +01:00
|
|
|
%{_bindir}/gpgme-config
|
|
|
|
%{_datadir}/aclocal/gpgme.m4
|
|
|
|
%{_includedir}/gpgme.h
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-03-12 01:58:50 +01:00
|
|
|
%changelog
|