]>
Commit | Line | Data |
---|---|---|
2a95feb1 JB |
1 | # |
2 | # Conditional build: | |
b167f38b | 3 | %bcond_without static_libs # do not build static libraries |
3b3330f6 | 4 | %bcond_without commonlisp # Common Lisp interface |
04bb14bc JB |
5 | %bcond_without cxx # C++ interface (GpgMEpp library) |
6 | %bcond_without qt5 # Qt 5 interface (QGpgME library), requires cxx | |
7 | %bcond_without python # Python interfaces (PyME, both python2+python3) | |
8 | %bcond_without python2 # Python 2 interface (PyME) | |
9 | %bcond_without python3 # Python 3 interface (PyME) | |
b167f38b | 10 | %bcond_with tests # perform tests |
2a95feb1 | 11 | # |
04bb14bc JB |
12 | %if %{without python} |
13 | %undefine with_python2 | |
14 | %undefine with_python3 | |
15 | %endif | |
16 | %if %{without cxx} | |
17 | %undefine with_qt5 | |
18 | %endif | |
01babd9f | 19 | Summary: Library for accessing GnuPG |
ab1d0abf | 20 | Summary(pl.UTF-8): Biblioteka dająca dostęp do funkcji GnuPG |
01babd9f | 21 | Name: gpgme |
a7d28b40 | 22 | Version: 1.11.1 |
bf0606ec | 23 | Release: 3 |
92e3a3cd | 24 | Epoch: 1 |
57d17492 | 25 | License: LGPL v2.1+ |
01babd9f | 26 | Group: Libraries |
57d17492 | 27 | Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2 |
a7d28b40 | 28 | # Source0-md5: 129c46fb85a7ffa41e43345e48aee884 |
41e9547e | 29 | Patch0: %{name}-info.patch |
2b597a7e | 30 | Patch1: %{name}-kill-tests.patch |
04bb14bc JB |
31 | Patch2: %{name}-largefile.patch |
32 | Patch3: %{name}-python.patch | |
01babd9f | 33 | URL: http://www.gnupg.org/gpgme.html |
50116f20 | 34 | BuildRequires: autoconf >= 2.59 |
74664a9d | 35 | BuildRequires: automake >= 1:1.14 |
d3ec171e | 36 | BuildRequires: libassuan-devel >= 1:2.4.2 |
a7d28b40 | 37 | BuildRequires: libgpg-error-devel >= 1.29 |
04bb14bc | 38 | %{?with_cxx:BuildRequires: libstdc++-devel >= 6:4.7} |
f85acd43 | 39 | BuildRequires: libtool >= 2:2.2.6 |
04bb14bc JB |
40 | %{?with_python2:BuildRequires: python-devel >= 1:2.7} |
41 | %{?with_python3:BuildRequires: python3-devel >= 1:3.4} | |
42 | %{?with_python:BuildRequires: rpm-pythonprov} | |
43 | BuildRequires: rpmbuild(macros) >= 1.219 | |
44 | %{?with_python:BuildRequires: swig-python} | |
41e9547e | 45 | BuildRequires: texinfo |
04bb14bc JB |
46 | %if %{with qt5} |
47 | BuildRequires: Qt5Core-devel >= 5.0.0 | |
48 | %{?with_tests:BuildRequires: Qt5Test-devel >= 5.0.0} | |
49 | BuildRequires: doxygen | |
50 | BuildRequires: graphviz | |
51 | BuildRequires: qt5-build >= 5.0.0 | |
52 | %endif | |
4c03fa3d | 53 | BuildConflicts: gnupg < 1.3.0 |
86e07236 TP |
54 | Suggests: gnupg >= 1.4.0 |
55 | Suggests: gnupg-smime >= 1.9.8 | |
56 | Suggests: gnupg2 >= 2.0.4 | |
d3ec171e | 57 | Requires: libassuan >= 1:2.4.2 |
a7d28b40 | 58 | Requires: libgpg-error >= 1.29 |
8ceb1a35 | 59 | Obsoletes: cryptplug |
01babd9f | 60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
61 | ||
62 | %description | |
63 | A library for accessing GnuPG. | |
64 | ||
1dd36cc5 JR |
65 | %description -l pl.UTF-8 |
66 | Biblioteka dająca dostęp do funkcji GnuPG. | |
01babd9f | 67 | |
68 | %package devel | |
bed1b366 | 69 | Summary: Header files for GPGME library |
ab1d0abf | 70 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME |
3b45cfe6 | 71 | Group: Development/Libraries |
92e3a3cd | 72 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d3ec171e | 73 | Requires: libassuan-devel >= 1:2.4.2 |
a7d28b40 | 74 | Requires: libgpg-error-devel >= 1.29 |
b9e296e9 | 75 | Conflicts: kde4-kdepimlibs-devel |
01babd9f | 76 | |
77 | %description devel | |
bed1b366 JB |
78 | Header files for GPGME library, needed for compiling programs using |
79 | GPGME. | |
01babd9f | 80 | |
1dd36cc5 JR |
81 | %description devel -l pl.UTF-8 |
82 | Pliki nagłówkowe biblioteki GPGME, potrzebne do kompilacji programów | |
83 | używających GPGME. | |
01babd9f | 84 | |
85 | %package static | |
bed1b366 | 86 | Summary: Static version of GPGME library |
ab1d0abf | 87 | Summary(pl.UTF-8): Statyczna wersja biblioteki GPGME |
01babd9f | 88 | Group: Development/Libraries |
92e3a3cd | 89 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
01babd9f | 90 | |
91 | %description static | |
bed1b366 | 92 | Static version of GPGME library. |
01babd9f | 93 | |
1dd36cc5 | 94 | %description static -l pl.UTF-8 |
bed1b366 | 95 | Statyczna wersja biblioteki GPGME. |
01babd9f | 96 | |
04bb14bc JB |
97 | %package c++ |
98 | Summary: GpgMEpp - C++ interface for GPGME library | |
99 | Summary(pl.UTF-8): GpgMEpp - interfejs C++ do biblioteki GPGME | |
100 | Group: Libraries | |
7f5e677d | 101 | Requires: %{name} = %{epoch}:%{version}-%{release} |
04bb14bc JB |
102 | |
103 | %description c++ | |
104 | GpgMEpp is a C++ wrapper (or C++ bindings) for the GnuPG project's | |
105 | gpgme (GnuPG Made Easy). It's based on KF5gpgmepp library. | |
106 | ||
107 | %description c++ -l pl.UTF-8 | |
108 | GpgMEpp to interfejs C++ (wiązania C++) do biblioteki gpgme (GnuPG | |
109 | Made Easy) z projektu GnuPG. Jest oparty na bibliotece KF5gpgme.pp. | |
110 | ||
111 | %package c++-devel | |
112 | Summary: Header files for GpgMEpp library | |
113 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GpgMEpp | |
114 | Group: Development/Libraries | |
7f5e677d | 115 | Requires: %{name}-c++ = %{epoch}:%{version}-%{release} |
04bb14bc JB |
116 | Requires: libstdc++-devel >= 6:4.7 |
117 | ||
118 | %description c++-devel | |
119 | Header files for GpgMEpp library. | |
120 | ||
121 | %description c++-devel -l pl.UTF-8 | |
122 | Pliki nagłówkowe biblioteki GpgMEpp. | |
123 | ||
124 | %package c++-static | |
125 | Summary: Static GpgMEpp library | |
126 | Summary(pl.UTF-8): Statyczna biblioteka GpgMEpp | |
127 | Group: Development/Libraries | |
7f5e677d | 128 | Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release} |
04bb14bc JB |
129 | |
130 | %description c++-static | |
131 | Static GpgMEpp library. | |
132 | ||
133 | %description c++-static -l pl.UTF-8 | |
134 | Statyczna biblioteka GpgMEpp. | |
135 | ||
136 | %package qt5 | |
137 | Summary: QGpgME - Qt 5 interface for GPGME library | |
138 | Summary(pl.UTF-8): QGpgME - interfejs Qt 5 do biblioteki GPGME | |
139 | License: GPL v2+ with Qt linking exception | |
140 | Group: Libraries | |
7f5e677d | 141 | Requires: %{name}-c++ = %{epoch}:%{version}-%{release} |
04bb14bc JB |
142 | Requires: Qt5Core >= 5.0.0 |
143 | ||
144 | %description qt5 | |
145 | QGpgME is Qt 5 interface for GPGME library, based on library from | |
146 | KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp. | |
147 | ||
148 | %description qt5 -l pl.UTF-8 | |
149 | QGpgME to interfejs Qt 5 do biblioteki GPGME, oparty na bibliotece z | |
150 | KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego | |
151 | poziomu. | |
152 | ||
153 | %package qt5-devel | |
154 | Summary: Header files for QGpgME library | |
155 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QGpgME | |
156 | License: GPL v2+ with Qt linking exception | |
157 | Group: Development/Libraries | |
7f5e677d JR |
158 | Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release} |
159 | Requires: %{name}-qt5 = %{epoch}:%{version}-%{release} | |
04bb14bc JB |
160 | Requires: Qt5Core-devel >= 5.0.0 |
161 | ||
162 | %description qt5-devel | |
163 | Header files for QGpgME library. | |
164 | ||
165 | %description qt5-devel -l pl.UTF-8 | |
166 | Pliki nagłówkowe biblioteki QGpgME. | |
167 | ||
168 | %package qt5-static | |
169 | Summary: Static QGpgME library | |
170 | Summary(pl.UTF-8): Statyczna biblioteka QGpgME | |
171 | License: GPL v2+ with Qt linking exception | |
172 | Group: Development/Libraries | |
7f5e677d | 173 | Requires: %{name}-qt5-devel = %{epoch}:%{version}-%{release} |
04bb14bc JB |
174 | |
175 | %description qt5-static | |
176 | Static QGpgME library. | |
177 | ||
178 | %description qt5-static -l pl.UTF-8 | |
179 | Statyczna biblioteka QGpgME. | |
180 | ||
3b3330f6 JB |
181 | %package -n common-lisp-gpgme |
182 | Summary: Common Lisp binding for GPGME library | |
183 | Summary(pl.UTF-8): Wiązanie Common Lispa do biblioteki GPGME | |
184 | Group: Libraries | |
7f5e677d | 185 | Requires: %{name} = %{epoch}:%{version}-%{release} |
3b3330f6 JB |
186 | Requires: common-lisp-controller |
187 | ||
188 | %description -n common-lisp-gpgme | |
189 | Common Lisp binding for GPGME library. | |
190 | ||
191 | %description -n common-lisp-gpgme -l pl.UTF-8 | |
192 | Wiązanie Common Lispa do biblioteki GPGME. | |
193 | ||
ac6cdcae | 194 | %package -n python-gpg |
04bb14bc JB |
195 | Summary: PyME - Python 2 interface for GPGME library |
196 | Summary(pl.UTF-8): PyME - interfejs Pythona 2 do biblioteki GPGME | |
197 | Group: Libraries/Python | |
7f5e677d | 198 | Requires: %{name} = %{epoch}:%{version}-%{release} |
04bb14bc | 199 | Requires: python-libs >= 1:2.7 |
ac6cdcae | 200 | Obsoletes: python-pyme < 1.8.0 |
04bb14bc | 201 | |
ac6cdcae | 202 | %description -n python-gpg |
04bb14bc JB |
203 | PyME is a Python interface for GPGME library. |
204 | ||
ac6cdcae | 205 | %description -n python-gpg -l pl.UTF-8 |
04bb14bc JB |
206 | PyME to interfejs Pythona do biblioteki GPGME. |
207 | ||
ac6cdcae | 208 | %package -n python3-gpg |
04bb14bc JB |
209 | Summary: PyME - Python 3 interface for GPGME library |
210 | Summary(pl.UTF-8): PyME - interfejs Pythona 3 do biblioteki GPGME | |
211 | Group: Libraries/Python | |
7f5e677d | 212 | Requires: %{name} = %{epoch}:%{version}-%{release} |
04bb14bc | 213 | Requires: python3-libs >= 1:3.4 |
ac6cdcae | 214 | Obsoletes: python3-pyme < 1.8.0 |
04bb14bc | 215 | |
ac6cdcae | 216 | %description -n python3-gpg |
04bb14bc JB |
217 | PyME is a Python interface for GPGME library. |
218 | ||
ac6cdcae | 219 | %description -n python3-gpg -l pl.UTF-8 |
04bb14bc JB |
220 | PyME to interfejs Pythona do biblioteki GPGME. |
221 | ||
01babd9f | 222 | %prep |
223 | %setup -q | |
41e9547e | 224 | %patch0 -p1 |
2b597a7e | 225 | %{!?with_tests:%patch1 -p1} |
44f0380a | 226 | %patch2 -p1 |
04bb14bc | 227 | %patch3 -p1 |
01babd9f | 228 | |
229 | %build | |
ba43bb7f | 230 | %{__libtoolize} |
2c260d51 | 231 | %{__aclocal} -I m4 |
7cde39a6 | 232 | %{__autoconf} |
b7ca4280 | 233 | %{__autoheader} |
7cde39a6 | 234 | %{__automake} |
04bb14bc JB |
235 | # in enable-languages: |
236 | # "python" means both pythons (if available), "python2" just python2, "python3" just python3 | |
237 | # (cannot specify "python2 python3" due to script limitations) | |
01babd9f | 238 | %configure \ |
04bb14bc | 239 | --enable-languages="%{?with_commonlisp:cl} %{?with_cxx:cpp} %{?with_python2:python%{!?with_python3:2}} %{?with_python3:%{!?with_python2:python3}} %{?with_qt5:qt}" \ |
86e07236 | 240 | %{?with_static_libs:--enable-static} |
01babd9f | 241 | |
242 | %{__make} | |
243 | ||
244 | %install | |
245 | rm -rf $RPM_BUILD_ROOT | |
01babd9f | 246 | |
8815e16b JB |
247 | %{__make} install \ |
248 | DESTDIR=$RPM_BUILD_ROOT | |
01babd9f | 249 | |
04bb14bc JB |
250 | %if %{with python2} |
251 | %py_postclean | |
252 | %endif | |
253 | ||
01babd9f | 254 | %clean |
255 | rm -rf $RPM_BUILD_ROOT | |
256 | ||
180ddcb9 JB |
257 | %post -p /sbin/ldconfig |
258 | %postun -p /sbin/ldconfig | |
259 | ||
f85acd43 | 260 | %post devel -p /sbin/postshell |
1cf551df | 261 | -/usr/sbin/fix-info-dir -c %{_infodir} |
01babd9f | 262 | |
f85acd43 | 263 | %postun devel -p /sbin/postshell |
1cf551df | 264 | -/usr/sbin/fix-info-dir -c %{_infodir} |
01babd9f | 265 | |
04bb14bc JB |
266 | %post c++ -p /sbin/ldconfig |
267 | %postun c++ -p /sbin/ldconfig | |
268 | ||
269 | %post qt5 -p /sbin/ldconfig | |
270 | %postun qt5 -p /sbin/ldconfig | |
271 | ||
01babd9f | 272 | %files |
273 | %defattr(644,root,root,755) | |
04bb14bc | 274 | %doc AUTHORS ChangeLog README NEWS THANKS TODO |
a7d28b40 | 275 | %attr(755,root,root) %{_bindir}/gpgme-json |
d158acd8 | 276 | %attr(755,root,root) %{_bindir}/gpgme-tool |
5276b199 JB |
277 | %attr(755,root,root) %{_libdir}/libgpgme.so.*.*.* |
278 | %attr(755,root,root) %ghost %{_libdir}/libgpgme.so.11 | |
01babd9f | 279 | |
280 | %files devel | |
3b45cfe6 JB |
281 | %defattr(644,root,root,755) |
282 | %attr(755,root,root) %{_bindir}/gpgme-config | |
5276b199 | 283 | %attr(755,root,root) %{_libdir}/libgpgme.so |
5276b199 | 284 | %{_libdir}/libgpgme.la |
5276b199 JB |
285 | %{_includedir}/gpgme.h |
286 | %{_aclocaldir}/gpgme.m4 | |
287 | %{_infodir}/gpgme.info* | |
01babd9f | 288 | |
fa55d1b4 | 289 | %if %{with static_libs} |
01babd9f | 290 | %files static |
3b45cfe6 | 291 | %defattr(644,root,root,755) |
5276b199 | 292 | %{_libdir}/libgpgme.a |
fa55d1b4 | 293 | %endif |
04bb14bc JB |
294 | |
295 | %if %{with cxx} | |
296 | %files c++ | |
297 | %defattr(644,root,root,755) | |
298 | %doc lang/cpp/README | |
299 | %attr(755,root,root) %{_libdir}/libgpgmepp.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/libgpgmepp.so.6 | |
301 | ||
302 | %files c++-devel | |
303 | %defattr(644,root,root,755) | |
304 | %attr(755,root,root) %{_libdir}/libgpgmepp.so | |
305 | %{_libdir}/libgpgmepp.la | |
306 | %{_includedir}/gpgme++ | |
ac6cdcae | 307 | %{_libdir}/cmake/Gpgmepp |
04bb14bc JB |
308 | |
309 | %if %{with static_libs} | |
310 | %files c++-static | |
311 | %defattr(644,root,root,755) | |
312 | %{_libdir}/libgpgmepp.a | |
313 | %endif | |
314 | ||
315 | %if %{with qt5} | |
316 | %files qt5 | |
317 | %defattr(644,root,root,755) | |
318 | %doc lang/qt/README | |
319 | %attr(755,root,root) %{_libdir}/libqgpgme.so.*.*.* | |
ac6cdcae | 320 | %attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.7 |
04bb14bc JB |
321 | |
322 | %files qt5-devel | |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) %{_libdir}/libqgpgme.so | |
325 | %{_libdir}/libqgpgme.la | |
326 | %{_includedir}/QGpgME | |
327 | %{_includedir}/qgpgme | |
ac6cdcae | 328 | %{_libdir}/cmake/QGpgme |
04bb14bc JB |
329 | |
330 | %if %{with static_libs} | |
331 | %files qt5-static | |
332 | %defattr(644,root,root,755) | |
333 | %{_libdir}/libqgpgme.a | |
334 | %endif | |
335 | %endif | |
336 | %endif | |
337 | ||
3b3330f6 JB |
338 | %if %{with commonlisp} |
339 | %files -n common-lisp-gpgme | |
340 | %defattr(644,root,root,755) | |
341 | %doc lang/cl/README | |
342 | %{_datadir}/common-lisp/source/gpgme | |
343 | %endif | |
344 | ||
04bb14bc | 345 | %if %{with python2} |
ac6cdcae | 346 | %files -n python-gpg |
04bb14bc JB |
347 | %defattr(644,root,root,755) |
348 | %doc lang/python/README | |
ac6cdcae JB |
349 | %dir %{py_sitedir}/gpg |
350 | %attr(755,root,root) %{py_sitedir}/gpg/_gpgme.so | |
351 | %{py_sitedir}/gpg/*.py[co] | |
352 | %{py_sitedir}/gpg/constants | |
353 | %{py_sitedir}/gpg-%{version}-py*.egg-info | |
04bb14bc JB |
354 | %endif |
355 | ||
356 | %if %{with python3} | |
ac6cdcae | 357 | %files -n python3-gpg |
04bb14bc JB |
358 | %defattr(644,root,root,755) |
359 | %doc lang/python/README | |
ac6cdcae JB |
360 | %dir %{py3_sitedir}/gpg |
361 | %attr(755,root,root) %{py3_sitedir}/gpg/_gpgme.cpython-*.so | |
362 | %{py3_sitedir}/gpg/*.py | |
363 | %{py3_sitedir}/gpg/__pycache__ | |
364 | %{py3_sitedir}/gpg/constants | |
365 | %{py3_sitedir}/gpg-%{version}-py*.egg-info | |
04bb14bc | 366 | %endif |