]>
Commit | Line | Data |
---|---|---|
b2b97ed5 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without gpgsm # with gnupg S/MIME support | |
4 | %bcond_without pth # without pth-based version of library | |
5 | %bcond_without static_libs # do not build static libraries | |
6 | %bcond_with tests # perform tests | |
7 | # | |
8 | # TODO: separate pth version? disable by default (if !needed at all)? | |
9 | Summary: Library for accessing GnuPG | |
10 | Summary(pl.UTF-8): Biblioteka dająca dostęp do funkcji GnuPG | |
11 | Name: gpgme | |
12 | Version: 1.1.5 | |
13 | Release: 1 | |
14 | Epoch: 1 | |
15 | License: LGPL v2.1+ | |
16 | Group: Libraries | |
17 | Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: db7d7dfc10edcc20e8a15a7a8fdc1080 | |
19 | Patch0: %{name}-info.patch | |
20 | Patch1: %{name}-gpg2.patch | |
21 | Patch2: %{name}-kill-tests.patch | |
22 | URL: http://www.gnupg.org/gpgme.html | |
23 | BuildRequires: autoconf >= 2.59 | |
24 | BuildRequires: automake >= 1:1.9.3 | |
25 | BuildRequires: libgpg-error-devel >= 1.4 | |
26 | BuildRequires: libtool | |
27 | %{?with_pth:BuildRequires: pth-devel >= 1.2.0} | |
28 | BuildRequires: texinfo | |
29 | BuildConflicts: gnupg < 1.3.0 | |
30 | %{!?with_gpgsm:Requires: gnupg >= 1.3.0} | |
31 | %{?with_gpgsm:Requires: gnupg2 >= 2.0.3} | |
32 | %{?with_gpgsm:Requires: gnupg-smime >= 1.9.8} | |
33 | Requires: libgpg-error >= 1.4 | |
34 | Obsoletes: cryptplug | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | A library for accessing GnuPG. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Biblioteka dająca dostęp do funkcji GnuPG. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for GPGME library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
48 | Requires: libgpg-error-devel >= 1.4 | |
49 | ||
50 | %description devel | |
51 | Header files for GPGME library, needed for compiling programs using | |
52 | GPGME. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki GPGME, potrzebne do kompilacji programów | |
56 | używających GPGME. | |
57 | ||
58 | %package static | |
59 | Summary: Static version of GPGME library | |
60 | Summary(pl.UTF-8): Statyczna wersja biblioteki GPGME | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static version of GPGME library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna wersja biblioteki GPGME. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p1 | |
73 | %{?with_gpgsm:%patch1 -p1} | |
74 | %{!?with_tests:%patch2 -p1} | |
75 | ||
76 | %build | |
77 | %{__libtoolize} | |
78 | %{__aclocal} -I m4 | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
82 | %configure \ | |
83 | %{?with_static_libs:--enable-static} \ | |
84 | %{?with_gpgsm:--with-gpgsm=%{_bindir}/gpgsm} \ | |
85 | %{!?with_gpgsm:--without-gpgsm} \ | |
86 | %{!?with_pth:--without-pth} \ | |
87 | --with-gpg=/usr/bin/gpg%{?with_gpgsm:2} | |
88 | ||
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %post devel | |
104 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
105 | ||
106 | %postun devel | |
107 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc README ChangeLog THANKS TODO NEWS AUTHORS | |
112 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
113 | ||
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_bindir}/gpgme-config | |
117 | %attr(755,root,root) %{_libdir}/lib*.so | |
118 | %{_libdir}/lib*.la | |
119 | %{_includedir}/* | |
120 | %{_aclocaldir}/*.m4 | |
121 | %{_infodir}/*.info* | |
122 | ||
123 | %if %{with static_libs} | |
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/lib*.a | |
127 | %endif |