3 %bcond_without pth # without pth-based version of library
5 # TODO: separate pth version? disable by default (if !needed at all)?
6 Summary: Library for accessing GnuPG
7 Summary(pl): Biblioteka daj±ca dostêp do funkcji GnuPG
13 Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gpgme/%{name}-%{version}.tar.gz
14 # Source0-md5: 500587f9a31c8a72ba36c6b893575ce1
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-acfix.patch
17 Patch2: %{name}-am18.patch
18 URL: http://www.gnupg.org/gpgme.html
19 BuildRequires: autoconf >= 2.52
20 BuildRequires: automake
21 BuildRequires: libgpg-error-devel >= 0.5
22 BuildRequires: libtool
23 %{?with_pth:BuildRequires: pth-devel >= 1.2.0}
24 BuildRequires: texinfo
25 BuildConflicts: gnupg < 1.2.2
26 Requires: gnupg >= 1.2.2
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 A library for accessing GnuPG.
33 Biblioteka daj±ca dostêp do funkcji GnuPG.
36 Summary: Header files for %{name}
37 Summary(pl): Pliki nag³ówkowe dla %{name}
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
40 Requires: libgpg-error-devel
43 Header files for %{name}, needed for compiling programs using %{name}.
45 %description devel -l pl
46 Pliki nag³ówkowe dla %{name}, potrzebne do kompilacji programów
50 Summary: Static version of %{name} library
51 Summary(pl): Statyczna wersja biblioteki %{name}
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}
56 Static version of %{name} library.
58 %description static -l pl
59 Statyczna wersja biblioteki %{name}.
76 %{!?with_pth:--without-pth}
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
96 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
99 %defattr(644,root,root,755)
100 %doc README ChangeLog THANKS TODO NEWS AUTHORS
101 %attr(755,root,root) %{_libdir}/lib*.so.*.*
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/gpgme-config
106 %attr(755,root,root) %{_libdir}/lib*.so
113 %defattr(644,root,root,755)