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 BuildRequires: libassuan-devel >= 1:2.4.2
37 BuildRequires: libgpg-error-devel >= 1.29
38 %{?with_cxx:BuildRequires: libstdc++-devel >= 6:4.7}
39 BuildRequires: libtool >= 2:2.2.6
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}
45 BuildRequires: texinfo
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
53 BuildConflicts: gnupg < 1.3.0
54 Suggests: gnupg >= 1.4.0
55 Suggests: gnupg-smime >= 1.9.8
56 Suggests: gnupg2 >= 2.0.4
57 Requires: libassuan >= 1:2.4.2
58 Requires: libgpg-error >= 1.29
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 A library for accessing GnuPG.
65 %description -l pl.UTF-8
66 Biblioteka dająca dostęp do funkcji GnuPG.
69 Summary: Header files for GPGME library
70 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME
71 Group: Development/Libraries
72 Requires: %{name} = %{epoch}:%{version}-%{release}
73 Requires: libassuan-devel >= 1:2.4.2
74 Requires: libgpg-error-devel >= 1.29
75 Conflicts: kde4-kdepimlibs-devel
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
118 %description c++-devel
119 Header files for GpgMEpp library.
121 %description c++-devel -l pl.UTF-8
122 Pliki nagłówkowe biblioteki GpgMEpp.
125 Summary: Static GpgMEpp library
126 Summary(pl.UTF-8): Statyczna biblioteka GpgMEpp
127 Group: Development/Libraries
128 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
130 %description c++-static
131 Static GpgMEpp library.
133 %description c++-static -l pl.UTF-8
134 Statyczna biblioteka GpgMEpp.
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
141 Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
142 Requires: Qt5Core >= 5.0.0
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.
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
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
158 Requires: %{name}-c++-devel = %{epoch}:%{version}-%{release}
159 Requires: %{name}-qt5 = %{epoch}:%{version}-%{release}
160 Requires: Qt5Core-devel >= 5.0.0
162 %description qt5-devel
163 Header files for QGpgME library.
165 %description qt5-devel -l pl.UTF-8
166 Pliki nagłówkowe biblioteki QGpgME.
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
173 Requires: %{name}-qt5-devel = %{epoch}:%{version}-%{release}
175 %description qt5-static
176 Static QGpgME library.
178 %description qt5-static -l pl.UTF-8
179 Statyczna biblioteka QGpgME.
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
185 Requires: %{name} = %{epoch}:%{version}-%{release}
186 Requires: common-lisp-controller
188 %description -n common-lisp-gpgme
189 Common Lisp binding for GPGME library.
191 %description -n common-lisp-gpgme -l pl.UTF-8
192 Wiązanie Common Lispa do biblioteki GPGME.
194 %package -n python-gpg
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
198 Requires: %{name} = %{epoch}:%{version}-%{release}
199 Requires: python-libs >= 1:2.7
200 Obsoletes: python-pyme < 1.8.0
202 %description -n python-gpg
203 PyME is a Python interface for GPGME library.
205 %description -n python-gpg -l pl.UTF-8
206 PyME to interfejs Pythona do biblioteki GPGME.
208 %package -n python3-gpg
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
212 Requires: %{name} = %{epoch}:%{version}-%{release}
213 Requires: python3-libs >= 1:3.4
214 Obsoletes: python3-pyme < 1.8.0
216 %description -n python3-gpg
217 PyME is a Python interface for GPGME library.
219 %description -n python3-gpg -l pl.UTF-8
220 PyME to interfejs Pythona do biblioteki GPGME.
225 %{!?with_tests:%patch1 -p1}
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)
239 --enable-languages="%{?with_commonlisp:cl} %{?with_cxx:cpp} %{?with_python2:python%{!?with_python3:2}} %{?with_python3:%{!?with_python2:python3}} %{?with_qt5:qt}" \
240 %{?with_static_libs:--enable-static}
245 rm -rf $RPM_BUILD_ROOT
248 DESTDIR=$RPM_BUILD_ROOT
255 rm -rf $RPM_BUILD_ROOT
257 %post -p /sbin/ldconfig
258 %postun -p /sbin/ldconfig
260 %post devel -p /sbin/postshell
261 -/usr/sbin/fix-info-dir -c %{_infodir}
263 %postun devel -p /sbin/postshell
264 -/usr/sbin/fix-info-dir -c %{_infodir}
266 %post c++ -p /sbin/ldconfig
267 %postun c++ -p /sbin/ldconfig
269 %post qt5 -p /sbin/ldconfig
270 %postun qt5 -p /sbin/ldconfig
273 %defattr(644,root,root,755)
274 %doc AUTHORS ChangeLog README NEWS THANKS TODO
275 %attr(755,root,root) %{_bindir}/gpgme-json
276 %attr(755,root,root) %{_bindir}/gpgme-tool
277 %attr(755,root,root) %{_libdir}/libgpgme.so.*.*.*
278 %attr(755,root,root) %ghost %{_libdir}/libgpgme.so.11
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_bindir}/gpgme-config
283 %attr(755,root,root) %{_libdir}/libgpgme.so
284 %{_libdir}/libgpgme.la
285 %{_includedir}/gpgme.h
286 %{_aclocaldir}/gpgme.m4
287 %{_infodir}/gpgme.info*
289 %if %{with static_libs}
291 %defattr(644,root,root,755)
292 %{_libdir}/libgpgme.a
297 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libgpgmepp.so.*.*.*
300 %attr(755,root,root) %ghost %{_libdir}/libgpgmepp.so.6
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libgpgmepp.so
305 %{_libdir}/libgpgmepp.la
306 %{_includedir}/gpgme++
307 %{_libdir}/cmake/Gpgmepp
309 %if %{with static_libs}
311 %defattr(644,root,root,755)
312 %{_libdir}/libgpgmepp.a
317 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libqgpgme.so.*.*.*
320 %attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.7
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libqgpgme.so
325 %{_libdir}/libqgpgme.la
326 %{_includedir}/QGpgME
327 %{_includedir}/qgpgme
328 %{_libdir}/cmake/QGpgme
330 %if %{with static_libs}
332 %defattr(644,root,root,755)
333 %{_libdir}/libqgpgme.a
338 %if %{with commonlisp}
339 %files -n common-lisp-gpgme
340 %defattr(644,root,root,755)
342 %{_datadir}/common-lisp/source/gpgme
347 %defattr(644,root,root,755)
348 %doc lang/python/README
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
357 %files -n python3-gpg
358 %defattr(644,root,root,755)
359 %doc lang/python/README
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