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: f04bc4feb818f55107910d17273adf98
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-am18.patch
17 URL: http://www.gnupg.org/gpgme.html
18 BuildRequires: autoconf >= 2.57
19 BuildRequires: automake >= 1.7.6
20 BuildRequires: libgpg-error-devel >= 0.5
21 BuildRequires: libtool
22 %{?with_pth:BuildRequires: pth-devel >= 1.2.0}
23 BuildRequires: texinfo
24 BuildConflicts: gnupg < 1.2.2
25 Requires: gnupg >= 1.2.2
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 A library for accessing GnuPG.
32 Biblioteka daj±ca dostêp do funkcji GnuPG.
35 Summary: Header files for %{name}
36 Summary(pl): Pliki nag³ówkowe dla %{name}
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: libgpg-error-devel >= 0.5
42 Header files for %{name}, needed for compiling programs using %{name}.
44 %description devel -l pl
45 Pliki nag³ówkowe dla %{name}, potrzebne do kompilacji programów
49 Summary: Static version of %{name} library
50 Summary(pl): Statyczna wersja biblioteki %{name}
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 Static version of %{name} library.
57 %description static -l pl
58 Statyczna wersja biblioteki %{name}.
74 %{!?with_pth:--without-pth}
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
94 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
97 %defattr(644,root,root,755)
98 %doc README ChangeLog THANKS TODO NEWS AUTHORS
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/gpgme-config
104 %attr(755,root,root) %{_libdir}/lib*.so
111 %defattr(644,root,root,755)