gpgme/gpgme.spec

338 lines
11 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gpgme (Version 1.1.8)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#
# norootforbuild
Name: gpgme
BuildRequires: gpg2 libgcrypt-devel libksba-devel libpth-devel
License: GPL v2 or later
Group: Productivity/Security
PreReq: %install_info_prereq
AutoReqProv: on
Version: 1.1.8
Release: 4
Source: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-makecheck.patch
Url: http://www.gnupg.org/related_software/gpgme/
Summary: A Library Designed to Give Applications Easy Access to GnuPG
Requires: gpg2
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.
Authors:
--------
FSF <gnu@gnu.org>
- Code taken from GnuPG 1.0: gpgme/w32-util.c, GnuPG 1.1: jnlib/.
g10 Code GmbH <code@g10code.com>
- All stuff since mid march 2001.
Werner Koch <wk@gnupg.org>
- Design and most stuff.
%package -n libgpgme11
License: GPL v2 or later
Summary: A Library Designed to give Applications easy Access to GnuPG
Group: Development/Libraries/C and C++
Requires: gpgme = %{version}
%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.
Authors:
--------
FSF <gnu@gnu.org>
- Code taken from GnuPG 1.0: gpgme/w32-util.c, GnuPG 1.1: jnlib/.
g10 Code GmbH <code@g10code.com>
- All stuff since mid march 2001.
Werner Koch <wk@gnupg.org>
- Design and most stuff.
%package -n libgpgme-devel
License: GPL v2 or later
Summary: A Library Designed to give Applications easy Access to GnuPG
Group: Development/Libraries/C and C++
Requires: libgpgme11 = %{version} libgpg-error-devel glibc-devel libpth-devel
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.
Authors:
--------
FSF <gnu@gnu.org>
- Code taken from GnuPG 1.0: gpgme/w32-util.c, GnuPG 1.1: jnlib/.
g10 Code GmbH <code@g10code.com>
- All stuff since mid march 2001.
Werner Koch <wk@gnupg.org>
- Design and most stuff.
%prep
%setup -q
%patch1
%build
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 \
--with-gpg-version=2.0.10 \
--with-gpgsm-version=2.0.10 \
--with-gpgconf-version=2.0.10 \
--with-gpg=%_bindir/gpg2 \
--with-gpgsm=%_bindir/gpgsm \
--with-gpgconf=%_bindir/gpgconf
%install
%makeinstall
# Do this now to make /usr/lib/rpm/brp-chuck-la happy:
rm %buildroot/%_libdir/*.la
%check
# With patch2 and upstream, gpg tests use a dummy pinentry script, so run them:
make check
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgpgme11
/sbin/ldconfig
%postun -n libgpgme11
/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 README NEWS THANKS TODO
%{_datadir}/common-lisp
%{_datadir}/common-lisp/source
#%#{_datadir}/common-lisp/source/gpgme
%_infodir/gpgme*
%files -n libgpgme11
%defattr(-,root,root)
%_libdir/libgpgme.so.*
%_libdir/libgpgme-pthread.so.*
%_libdir/libgpgme-pth.so.*
%files -n libgpgme-devel
%defattr(-,root,root)
%_libdir/libgpgme.so
%_libdir/libgpgme-pthread.so
%_libdir/libgpgme-pth.so
%{_bindir}/gpgme-config
%{_datadir}/aclocal/gpgme.m4
%{_includedir}/gpgme.h
%changelog
* Thu Jun 11 2009 puzel@suse.cz
- change BuildRequires: (pth-devel -> libpth-devel)
* Tue Jun 02 2009 dmueller@suse.de
- fix requires of devel package
* Mon Jun 01 2009 puzel@suse.cz
- BuildRequires: pth-devel
* Wed Feb 18 2009 puzel@suse.cz
- update to 1.1.8
* SIGPIPE is now again ignored as described in the manual. Fixes
regresion introduced with 1.1.6.
* Mon Dec 08 2008 puzel@suse.cz
- update to 1.1.7
- using GPGME_KEYLIST_MODE_LOCAL combined with
GPGME_KEYLIST_MODE_EXTERN is now supported
- the encoding of gpgme_data_t objects can affect the output encoding
of export, sign and encrypt operations now
- the reference manual now includes the specification of "The GnuPG
UI Server protocol"
- a new function gpgme_cancel_async can be used to asynchronously
cancel any pending operation at any time, from any thread
- remove gpgme-1.1.6-from-upstream.patch (fixed upstream)
- remove gpgme-1.1.4-warning.patch (fixed upstream)
- fix obsolete usage of run_ldconfig
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Wed Feb 06 2008 bk@suse.de
- update to version 1.1.6: API extensions, eg for gpgconf thru gpgme
- add upstream patches to run the testsuite non-interactively
* Thu Dec 27 2007 crrodriguez@suse.de
- fix library-without-ldconfig-post* errors
- remove "la" files
* Wed Aug 08 2007 ro@suse.de
- remove devel requires from library package
* Tue Aug 07 2007 mrueckert@suse.de
- add defattr to the lib package
* Mon Aug 06 2007 zpetrova@suse.cz
- split gpgme to libgpgme11 and gpgme.
* Fri Jul 27 2007 zpetrova@suse.cz
- update to version 1.1.5
- small bug and portability fixes.
* Wed May 16 2007 zpetrova@suse.cz
- removed gpg from Requires list. (#273491)
* Mon Mar 12 2007 zpetrova@suse.cz
- updated filelist
* Fri Mar 09 2007 ltinkl@suse.cz
- update to latest version (1.1.4), needed for gpa
* Detect and bail out on double plaintext messages. This is required
so that applications can properly detect the signed parts of a
message. Actual there is now a double protection as GnuPG 1.4.7
will detect this case too.
* Fixed a memory leak in gpgme_data_release_and_get_mem.
* Fixed a bug in Windows command line quoting.
* Mon Feb 05 2007 ro@suse.de
- updated filelist
* Wed Sep 20 2006 anosek@suse.cz
- fixed compiler warning: variable "key" is used before its value
is set [#159104] (warning.patch)
* Mon Jul 17 2006 nadvornik@suse.cz
- fixed pthread support in gpgme-config
* Wed Jun 28 2006 zpetrova@suse.cz
- update to version 1.1.2
* Thu Jan 26 2006 sbrabec@suse.cz
- Added %%install_info_prereq.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006 kukuk@suse.de
- Create devel subpackage [#140727]
* Sat Dec 03 2005 meissner@suse.de
- require libgpg-error-devel (since we include headers that
include headers from there).
* Mon Nov 28 2005 zpetrova@suse.cz
- Update to version 1.0.3 (#135395).
* Thu Feb 17 2005 didge@suse.de
- update to stable version 1.0.2
- update of url
* Mon Jul 12 2004 adrian@suse.de
- update to version 0.9.0
* support for gpg2
* Thu Mar 18 2004 didge@suse.de
- fixed bug #36194
* Fri Feb 27 2004 ro@suse.de
- added libgpg-error to neededforbuild
* Mon Feb 09 2004 didge@suse.de
- version 0.3.16
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Tue Sep 02 2003 mc@suse.de
- add newpg, libgcrypt and libksba to neededforbuild again
it is needed to support kmail with cryptplug
fixed #29620, #29641 and #29642
* Mon Aug 11 2003 adrian@suse.de
- cleanup #neededforbuild and requires
* Tue Aug 05 2003 adrian@suse.de
- fix libtool handling to get shared libraries
* Thu May 22 2003 coolo@suse.de
- fixing info pages
* Wed Apr 16 2003 coolo@suse.de
- use BuildRoot
* Fri Feb 21 2003 mc@suse.de
- fixed -fPIC and lib64 Problems
* Thu Feb 20 2003 mc@suse.de
- update to version 0.3.15
* Thu Jan 30 2003 didge@suse.de
- Version 0.3.14
* Mon Oct 21 2002 didge@suse.de
- Version 0.3.12
* Wed Sep 25 2002 ro@suse.de
- removed bogus self-provides again
* Wed Sep 25 2002 didge@suse.de
- Version 0.3.11
* Tue Sep 10 2002 didge@suse.de
- Version 0.3.10
* Wed Jul 31 2002 didge@suse.de
- Version 0.3.8
* Fri Jun 21 2002 didge@suse.de
- New Version 0.3.7
* Fri May 10 2002 didge@suse.de
- New Version 0.3.6
* Tue May 07 2002 ro@suse.de
- fixed specfile: no macro allowed in Version: line
* Fri Mar 08 2002 didge@suse.de
- New Version 0.3.4
* Thu Feb 14 2002 didge@suse.de
- New Version 0.3.3
* Fri Jan 04 2002 didge@suse.de
- New Version 0.3.0
* Wed Oct 31 2001 didge@suse.de
- Fixed patch
* Mon Oct 29 2001 didge@suse.de
- Needs a patch to build on other platforms than i386
* Tue Oct 09 2001 didge@suse.de
- Version 0.2.3
- needs a patch to build because something is broken?!
* Thu Sep 13 2001 didge@suse.de
- Fix a bug to build under AXP
* Wed Aug 22 2001 didge@suse.de
- First build, Verison 0.2.2