3 %bcond_without static_libs # do not build static libraries
4 %bcond_without commonlisp # Common Lisp interface
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)
10 %bcond_with tests # perform tests
13 %undefine with_python2
14 %undefine with_python3
19 Summary: Library for accessing GnuPG
20 Summary(pl.UTF-8): Biblioteka dająca dostęp do funkcji GnuPG
27 Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
28 # Source0-md5: 129c46fb85a7ffa41e43345e48aee884
29 Patch0: %{name}-info.patch
30 Patch1: %{name}-kill-tests.patch
31 Patch2: %{name}-largefile.patch
32 Patch3: %{name}-python.patch
33 URL: http://www.gnupg.org/gpgme.html
34 BuildRequires: autoconf >= 2.59
35 BuildRequires: automake >= 1:1.14
36 %{?with_tests:BuildRequires: gnupg-agent}
37 BuildRequires: libassuan-devel >= 1:2.4.2
38 BuildRequires: libgpg-error-devel >= 1.29
39 %{?with_cxx:BuildRequires: libstdc++-devel >= 6:4.7}
40 BuildRequires: libtool >= 2:2.2.6
41 %{?with_python2:BuildRequires: python-devel >= 1:2.7}
42 %{?with_python3:BuildRequires: python3-devel >= 1:3.4}
43 %{?with_python:BuildRequires: rpm-pythonprov}
44 BuildRequires: rpmbuild(macros) >= 1.219
45 %{?with_python:BuildRequires: swig-python}
46 BuildRequires: texinfo
48 BuildRequires: Qt5Core-devel >= 5.0.0
49 %{?with_tests:BuildRequires: Qt5Test-devel >= 5.0.0}
50 BuildRequires: doxygen
51 BuildRequires: graphviz
52 BuildRequires: qt5-build >= 5.0.0
54 BuildConflicts: gnupg < 1.3.0
55 Suggests: gnupg >= 1.4.0
56 Suggests: gnupg-smime >= 1.9.8
57 Suggests: gnupg2 >= 2.0.4
58 Requires: libassuan >= 1:2.4.2
59 Requires: libgpg-error >= 1.29
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 A library for accessing GnuPG.
66 %description -l pl.UTF-8
67 Biblioteka dająca dostęp do funkcji GnuPG.
70 Summary: Header files for GPGME library
71 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME
72 Group: Development/Libraries
73 Requires: %{name} = %{epoch}:%{version}-%{release}
74 Requires: libassuan-devel >= 1:2.4.2
75 Requires: libgpg-error-devel >= 1.29
78 Header files for GPGME library, needed for compiling programs using
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki GPGME, potrzebne do kompilacji programów
86 Summary: Static version of GPGME library
87 Summary(pl.UTF-8): Statyczna wersja biblioteki GPGME
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
92 Static version of GPGME library.
94 %description static -l pl.UTF-8
95 Statyczna wersja biblioteki GPGME.
98 Summary: GpgMEpp - C++ interface for GPGME library
99 Summary(pl.UTF-8): GpgMEpp - interfejs C++ do biblioteki GPGME
101 Requires: %{name} = %{epoch}:%{version}-%{release}
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.
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.
112 Summary: Header files for GpgMEpp library
113 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GpgMEpp
114 Group: Development/Libraries
115 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
116 Requires: libstdc++-devel >= 6:4.7
117 Conflicts: kde4-kdepimlibs-devel
119 %description c++-devel
120 Header files for GpgMEpp library.
122 %description c++-devel -l pl.UTF-8
123 Pliki nagłówkowe biblioteki GpgMEpp.
126 Summary: Static GpgMEpp library
127 Summary(pl.UTF-8): Statyczna biblioteka GpgMEpp
128 Group: Development/Libraries
129 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
131 %description c++-static
132 Static GpgMEpp library.
134 %description c++-static -l pl.UTF-8
135 Statyczna biblioteka GpgMEpp.
138 Summary: QGpgME - Qt 5 interface for GPGME library
139 Summary(pl.UTF-8): QGpgME - interfejs Qt 5 do biblioteki GPGME
140 License: GPL v2+ with Qt linking exception
142 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
143 Requires: Qt5Core >= 5.0.0
146 QGpgME is Qt 5 interface for GPGME library, based on library from
147 KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp.
149 %description qt5 -l pl.UTF-8
150 QGpgME to interfejs Qt 5 do biblioteki GPGME, oparty na bibliotece z
151 KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego
155 Summary: Header files for QGpgME library
156 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QGpgME
157 License: GPL v2+ with Qt linking exception
158 Group: Development/Libraries
159 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
160 Requires: %{name}-qt5 = %{epoch}:%{version}-%{release}
161 Requires: Qt5Core-devel >= 5.0.0
162 Conflicts: kde4-kdepimlibs-devel
164 %description qt5-devel
165 Header files for QGpgME library.
167 %description qt5-devel -l pl.UTF-8
168 Pliki nagłówkowe biblioteki QGpgME.
171 Summary: Static QGpgME library
172 Summary(pl.UTF-8): Statyczna biblioteka QGpgME
173 License: GPL v2+ with Qt linking exception
174 Group: Development/Libraries
175 Requires: %{name}-qt5-devel = %{epoch}:%{version}-%{release}
177 %description qt5-static
178 Static QGpgME library.
180 %description qt5-static -l pl.UTF-8
181 Statyczna biblioteka QGpgME.
183 %package -n common-lisp-gpgme
184 Summary: Common Lisp binding for GPGME library
185 Summary(pl.UTF-8): Wiązanie Common Lispa do biblioteki GPGME
187 Requires: %{name} = %{epoch}:%{version}-%{release}
188 Requires: common-lisp-controller
190 %description -n common-lisp-gpgme
191 Common Lisp binding for GPGME library.
193 %description -n common-lisp-gpgme -l pl.UTF-8
194 Wiązanie Common Lispa do biblioteki GPGME.
196 %package -n python-gpg
197 Summary: PyME - Python 2 interface for GPGME library
198 Summary(pl.UTF-8): PyME - interfejs Pythona 2 do biblioteki GPGME
199 Group: Libraries/Python
200 Requires: %{name} = %{epoch}:%{version}-%{release}
201 Requires: python-libs >= 1:2.7
202 Obsoletes: python-pyme < 1.8.0
204 %description -n python-gpg
205 PyME is a Python interface for GPGME library.
207 %description -n python-gpg -l pl.UTF-8
208 PyME to interfejs Pythona do biblioteki GPGME.
210 %package -n python3-gpg
211 Summary: PyME - Python 3 interface for GPGME library
212 Summary(pl.UTF-8): PyME - interfejs Pythona 3 do biblioteki GPGME
213 Group: Libraries/Python
214 Requires: %{name} = %{epoch}:%{version}-%{release}
215 Requires: python3-libs >= 1:3.4
216 Obsoletes: python3-pyme < 1.8.0
218 %description -n python3-gpg
219 PyME is a Python interface for GPGME library.
221 %description -n python3-gpg -l pl.UTF-8
222 PyME to interfejs Pythona do biblioteki GPGME.
227 %{!?with_tests:%patch1 -p1}
237 # in enable-languages:
238 # "python" means both pythons (if available), "python2" just python2, "python3" just python3
239 # (cannot specify "python2 python3" due to script limitations)
241 --enable-languages="%{?with_commonlisp:cl} %{?with_cxx:cpp} %{?with_python2:python%{!?with_python3:2}} %{?with_python3:%{!?with_python2:python3}} %{?with_qt5:qt}" \
242 %{?with_static_libs:--enable-static}
247 rm -rf $RPM_BUILD_ROOT
250 DESTDIR=$RPM_BUILD_ROOT
257 rm -rf $RPM_BUILD_ROOT
259 %post -p /sbin/ldconfig
260 %postun -p /sbin/ldconfig
262 %post devel -p /sbin/postshell
263 -/usr/sbin/fix-info-dir -c %{_infodir}
265 %postun devel -p /sbin/postshell
266 -/usr/sbin/fix-info-dir -c %{_infodir}
268 %post c++ -p /sbin/ldconfig
269 %postun c++ -p /sbin/ldconfig
271 %post qt5 -p /sbin/ldconfig
272 %postun qt5 -p /sbin/ldconfig
275 %defattr(644,root,root,755)
276 %doc AUTHORS ChangeLog README NEWS THANKS TODO
277 %attr(755,root,root) %{_bindir}/gpgme-json
278 %attr(755,root,root) %{_bindir}/gpgme-tool
279 %attr(755,root,root) %{_libdir}/libgpgme.so.*.*.*
280 %attr(755,root,root) %ghost %{_libdir}/libgpgme.so.11
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_bindir}/gpgme-config
285 %attr(755,root,root) %{_libdir}/libgpgme.so
286 %{_libdir}/libgpgme.la
287 %{_includedir}/gpgme.h
288 %{_aclocaldir}/gpgme.m4
289 %{_infodir}/gpgme.info*
291 %if %{with static_libs}
293 %defattr(644,root,root,755)
294 %{_libdir}/libgpgme.a
299 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libgpgmepp.so.*.*.*
302 %attr(755,root,root) %ghost %{_libdir}/libgpgmepp.so.6
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libgpgmepp.so
307 %{_libdir}/libgpgmepp.la
308 %{_includedir}/gpgme++
309 %{_libdir}/cmake/Gpgmepp
311 %if %{with static_libs}
313 %defattr(644,root,root,755)
314 %{_libdir}/libgpgmepp.a
319 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/libqgpgme.so.*.*.*
322 %attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.7
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/libqgpgme.so
327 %{_libdir}/libqgpgme.la
328 %{_includedir}/QGpgME
329 %{_includedir}/qgpgme
330 %{_libdir}/cmake/QGpgme
332 %if %{with static_libs}
334 %defattr(644,root,root,755)
335 %{_libdir}/libqgpgme.a
340 %if %{with commonlisp}
341 %files -n common-lisp-gpgme
342 %defattr(644,root,root,755)
344 %{_datadir}/common-lisp/source/gpgme
349 %defattr(644,root,root,755)
350 %doc lang/python/README
351 %dir %{py_sitedir}/gpg
352 %attr(755,root,root) %{py_sitedir}/gpg/_gpgme.so
353 %{py_sitedir}/gpg/*.py[co]
354 %{py_sitedir}/gpg/constants
355 %{py_sitedir}/gpg-%{version}-py*.egg-info
359 %files -n python3-gpg
360 %defattr(644,root,root,755)
361 %doc lang/python/README
362 %dir %{py3_sitedir}/gpg
363 %attr(755,root,root) %{py3_sitedir}/gpg/_gpgme.cpython-*.so
364 %{py3_sitedir}/gpg/*.py
365 %{py3_sitedir}/gpg/__pycache__
366 %{py3_sitedir}/gpg/constants
367 %{py3_sitedir}/gpg-%{version}-py*.egg-info