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_without 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: 4d3c7699e1cdd4095d103f7a6833ae3a
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.69
35 BuildRequires: automake >= 1:1.14
36 %{?with_tests:BuildRequires: gnupg-agent}
37 %{?with_tests:BuildRequires: gnupg-smime}
38 BuildRequires: libassuan-devel >= 1:2.4.2
39 BuildRequires: libgpg-error-devel >= 1.36
40 %{?with_cxx:BuildRequires: libstdc++-devel >= 6:4.7}
41 BuildRequires: libtool >= 2:2.2.6
42 %{?with_python2:BuildRequires: python-devel >= 1:2.7}
43 %{?with_python3:BuildRequires: python3-devel >= 1:3.4}
44 %{?with_python:BuildRequires: rpm-pythonprov}
45 BuildRequires: rpmbuild(macros) >= 1.219
46 %{?with_python:BuildRequires: swig-python}
47 BuildRequires: texinfo
49 BuildRequires: Qt5Core-devel >= 5.0.0
50 %{?with_tests:BuildRequires: Qt5Test-devel >= 5.8.0}
51 BuildRequires: doxygen
52 BuildRequires: graphviz
53 BuildRequires: qt5-build >= 5.0.0
55 BuildConflicts: gnupg < 1.3.0
56 Suggests: gnupg >= 1.4.0
57 Suggests: gnupg-smime >= 1.9.8
58 Suggests: gnupg2 >= 2.0.4
59 Requires: libassuan >= 1:2.4.2
60 Requires: libgpg-error >= 1.36
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 A library for accessing GnuPG.
67 %description -l pl.UTF-8
68 Biblioteka dająca dostęp do funkcji GnuPG.
71 Summary: Header files for GPGME library
72 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME
73 Group: Development/Libraries
74 Requires: %{name} = %{epoch}:%{version}-%{release}
75 Requires: libassuan-devel >= 1:2.4.2
76 Requires: libgpg-error-devel >= 1.36
79 Header files for GPGME library, needed for compiling programs using
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki GPGME, potrzebne do kompilacji programów
87 Summary: Static version of GPGME library
88 Summary(pl.UTF-8): Statyczna wersja biblioteki GPGME
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
93 Static version of GPGME library.
95 %description static -l pl.UTF-8
96 Statyczna wersja biblioteki GPGME.
99 Summary: GpgMEpp - C++ interface for GPGME library
100 Summary(pl.UTF-8): GpgMEpp - interfejs C++ do biblioteki GPGME
102 Requires: %{name} = %{epoch}:%{version}-%{release}
105 GpgMEpp is a C++ wrapper (or C++ bindings) for the GnuPG project's
106 gpgme (GnuPG Made Easy). It's based on KF5gpgmepp library.
108 %description c++ -l pl.UTF-8
109 GpgMEpp to interfejs C++ (wiązania C++) do biblioteki gpgme (GnuPG
110 Made Easy) z projektu GnuPG. Jest oparty na bibliotece KF5gpgme.pp.
113 Summary: Header files for GpgMEpp library
114 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GpgMEpp
115 Group: Development/Libraries
116 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
117 Requires: libstdc++-devel >= 6:4.7
118 Conflicts: kde4-kdepimlibs-devel
120 %description c++-devel
121 Header files for GpgMEpp library.
123 %description c++-devel -l pl.UTF-8
124 Pliki nagłówkowe biblioteki GpgMEpp.
127 Summary: Static GpgMEpp library
128 Summary(pl.UTF-8): Statyczna biblioteka GpgMEpp
129 Group: Development/Libraries
130 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
132 %description c++-static
133 Static GpgMEpp library.
135 %description c++-static -l pl.UTF-8
136 Statyczna biblioteka GpgMEpp.
139 Summary: QGpgME - Qt 5 interface for GPGME library
140 Summary(pl.UTF-8): QGpgME - interfejs Qt 5 do biblioteki GPGME
141 License: GPL v2+ with Qt linking exception
143 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
144 Requires: Qt5Core >= 5.0.0
147 QGpgME is Qt 5 interface for GPGME library, based on library from
148 KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp.
150 %description qt5 -l pl.UTF-8
151 QGpgME to interfejs Qt 5 do biblioteki GPGME, oparty na bibliotece z
152 KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego
156 Summary: Header files for QGpgME library
157 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QGpgME
158 License: GPL v2+ with Qt linking exception
159 Group: Development/Libraries
160 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
161 Requires: %{name}-qt5 = %{epoch}:%{version}-%{release}
162 Requires: Qt5Core-devel >= 5.0.0
163 Conflicts: kde4-kdepimlibs-devel
165 %description qt5-devel
166 Header files for QGpgME library.
168 %description qt5-devel -l pl.UTF-8
169 Pliki nagłówkowe biblioteki QGpgME.
172 Summary: Static QGpgME library
173 Summary(pl.UTF-8): Statyczna biblioteka QGpgME
174 License: GPL v2+ with Qt linking exception
175 Group: Development/Libraries
176 Requires: %{name}-qt5-devel = %{epoch}:%{version}-%{release}
178 %description qt5-static
179 Static QGpgME library.
181 %description qt5-static -l pl.UTF-8
182 Statyczna biblioteka QGpgME.
184 %package -n common-lisp-gpgme
185 Summary: Common Lisp binding for GPGME library
186 Summary(pl.UTF-8): Wiązanie Common Lispa do biblioteki GPGME
188 Requires: %{name} = %{epoch}:%{version}-%{release}
189 Requires: common-lisp-controller
191 %description -n common-lisp-gpgme
192 Common Lisp binding for GPGME library.
194 %description -n common-lisp-gpgme -l pl.UTF-8
195 Wiązanie Common Lispa do biblioteki GPGME.
197 %package -n python-gpg
198 Summary: PyME - Python 2 interface for GPGME library
199 Summary(pl.UTF-8): PyME - interfejs Pythona 2 do biblioteki GPGME
200 Group: Libraries/Python
201 Requires: %{name} = %{epoch}:%{version}-%{release}
202 Requires: python-libs >= 1:2.7
203 Obsoletes: python-pyme < 1.8.0
205 %description -n python-gpg
206 PyME is a Python interface for GPGME library.
208 %description -n python-gpg -l pl.UTF-8
209 PyME to interfejs Pythona do biblioteki GPGME.
211 %package -n python3-gpg
212 Summary: PyME - Python 3 interface for GPGME library
213 Summary(pl.UTF-8): PyME - interfejs Pythona 3 do biblioteki GPGME
214 Group: Libraries/Python
215 Requires: %{name} = %{epoch}:%{version}-%{release}
216 Requires: python3-libs >= 1:3.4
217 Obsoletes: python3-pyme < 1.8.0
219 %description -n python3-gpg
220 PyME is a Python interface for GPGME library.
222 %description -n python3-gpg -l pl.UTF-8
223 PyME to interfejs Pythona do biblioteki GPGME.
238 # in enable-languages:
239 # "python" means both pythons (if available), "python2" just python2, "python3" just python3
240 # (cannot specify "python2 python3" due to script limitations)
242 PACKAGE_VERSION=%{version} \
246 --disable-gpgconf-test \
247 --disable-gpgsm-test \
249 --enable-languages="%{?with_commonlisp:cl} %{?with_cxx:cpp} %{?with_python2:python%{!?with_python3:2}} %{?with_python3:%{!?with_python2:python3}} %{?with_qt5:qt}" \
250 %{?with_static_libs:--enable-static}
255 rm -rf $RPM_BUILD_ROOT
258 DESTDIR=$RPM_BUILD_ROOT
261 %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/gpgme-glib.pc
268 rm -rf $RPM_BUILD_ROOT
270 %post -p /sbin/ldconfig
271 %postun -p /sbin/ldconfig
273 %post devel -p /sbin/postshell
274 -/usr/sbin/fix-info-dir -c %{_infodir}
276 %postun devel -p /sbin/postshell
277 -/usr/sbin/fix-info-dir -c %{_infodir}
279 %post c++ -p /sbin/ldconfig
280 %postun c++ -p /sbin/ldconfig
282 %post qt5 -p /sbin/ldconfig
283 %postun qt5 -p /sbin/ldconfig
286 %defattr(644,root,root,755)
287 %doc AUTHORS ChangeLog README NEWS THANKS TODO
288 %attr(755,root,root) %{_bindir}/gpgme-json
289 %attr(755,root,root) %{_bindir}/gpgme-tool
290 %attr(755,root,root) %{_libdir}/libgpgme.so.*.*.*
291 %attr(755,root,root) %ghost %{_libdir}/libgpgme.so.11
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_bindir}/gpgme-config
296 %attr(755,root,root) %{_libdir}/libgpgme.so
297 %{_libdir}/libgpgme.la
298 %{_includedir}/gpgme.h
299 %{_pkgconfigdir}/gpgme.pc
300 %{_aclocaldir}/gpgme.m4
301 %{_infodir}/gpgme.info*
303 %if %{with static_libs}
305 %defattr(644,root,root,755)
306 %{_libdir}/libgpgme.a
311 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libgpgmepp.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libgpgmepp.so.6
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/libgpgmepp.so
319 %{_libdir}/libgpgmepp.la
320 %{_includedir}/gpgme++
321 %{_libdir}/cmake/Gpgmepp
323 %if %{with static_libs}
325 %defattr(644,root,root,755)
326 %{_libdir}/libgpgmepp.a
331 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libqgpgme.so.*.*.*
334 %attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.15
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libqgpgme.so
339 %{_libdir}/libqgpgme.la
340 %{_includedir}/QGpgME
341 %{_includedir}/qgpgme
342 %{_libdir}/cmake/QGpgme
344 %if %{with static_libs}
346 %defattr(644,root,root,755)
347 %{_libdir}/libqgpgme.a
352 %if %{with commonlisp}
353 %files -n common-lisp-gpgme
354 %defattr(644,root,root,755)
356 %{_datadir}/common-lisp/source/gpgme
361 %defattr(644,root,root,755)
362 %doc lang/python/README
363 %dir %{py_sitedir}/gpg
364 %attr(755,root,root) %{py_sitedir}/gpg/_gpgme.so
365 %{py_sitedir}/gpg/*.py[co]
366 %{py_sitedir}/gpg/constants
367 %{py_sitedir}/gpg-%{version}_unknown-py*.egg-info
371 %files -n python3-gpg
372 %defattr(644,root,root,755)
373 %doc lang/python/README
374 %dir %{py3_sitedir}/gpg
375 %attr(755,root,root) %{py3_sitedir}/gpg/_gpgme.cpython-*.so
376 %{py3_sitedir}/gpg/*.py
377 %{py3_sitedir}/gpg/__pycache__
378 %{py3_sitedir}/gpg/constants
379 %{py3_sitedir}/gpg-%{version}_unknown-py*.egg-info