From efc1738687c1e41232d1fa605e90cfb23fcfb5f1f2a1e099c6d4652ec17f97cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 13 Oct 2016 08:28:34 +0000 Subject: [PATCH] Accepting request 434649 from home:luca_b:branches:Base:System - Switch on the Qt bindings - Add missing buildrequires, files, and needed adjustments for the Qt build OBS-URL: https://build.opensuse.org/request/show/434649 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=69 --- baselibs.conf | 1 + gpgme.changes | 7 +++++ gpgme.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a/baselibs.conf b/baselibs.conf index a3bc124..e00dce4 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,2 +1,3 @@ libgpgme11 libgpgmepp6 +libqgpgme6 diff --git a/gpgme.changes b/gpgme.changes index 62f241a..b25e16d 100644 --- a/gpgme.changes +++ b/gpgme.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 12 22:09:27 UTC 2016 - lbeltrame@kde.org + +- Switch on the Qt bindings +- Add missing buildrequires, files, and needed adjustments for the + Qt build + ------------------------------------------------------------------- Tue Oct 11 18:11:33 UTC 2016 - lbeltrame@kde.org diff --git a/gpgme.spec b/gpgme.spec index ea1825d..c4af052 100644 --- a/gpgme.spec +++ b/gpgme.spec @@ -19,7 +19,7 @@ %define with_cpp 1 %define with_python2 1 %define with_python3 0 -%define with_qt 0 +%define with_qt 1 Name: gpgme Version: 1.7.0 Release: 0 @@ -59,6 +59,7 @@ BuildRequires: gcc-c++ %endif # with_cpp %if 0%{with_qt} BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Test) %endif # with_qt %description @@ -226,6 +227,57 @@ of standard widgets for common key selection tasks is even planned. This package contains the bindings to use the library from Python 3 applications. %endif # with_python3 +%if 0%{with_qt} +%package -n libqgpgme6 +Summary: A Library Designed to give Qt Applications easy Access to GnuPG +Group: Development/Libraries/C and C++ +Requires: gpg2 + +%description -n libqgpgme6 +GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG +easier for applications. It provides a high-level Crypto API for +encryption, decryption, signing, signature verification, and key +management. Currently it uses GnuPG as its back-end, but the API is not +restricted to this engine. + +Who Should use GPGME? + +Because the direct use of GnuPG from an application can be a +complicated programming task, it is suggested that all software should +try to use GPGME instead. This way bug fixes or improvements can be +done at a central place and every application benefits from this. +Authors of MUAs should especially consider using GPGME. Creating a set +of standard widgets for common key selection tasks is even planned. + +This package contains the Qt bindings. + +%package -n libqgpgme-devel +Summary: A Library Designed to give C++ Qt Applications easy Access to GnuPG +Group: Development/Libraries/C and C++ +Requires: libgpgme-devel = %{version} +Requires: libgpgmepp-devel = %{version} +Requires: libqgpgme6 = %{version} + +%description -n libqgpgme-devel +GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG +easier for applications. It provides a high-level Crypto API for +encryption, decryption, signing, signature verification, and key +management. Currently it uses GnuPG as its back-end, but the API is not +restricted to this engine. + +Who Should use GPGME? + +Because the direct use of GnuPG from an application can be a +complicated programming task, it is suggested that all software should +try to use GPGME instead. This way bug fixes or improvements can be +done at a central place and every application benefits from this. +Authors of MUAs should especially consider using GPGME. Creating a set +of standard widgets for common key selection tasks is even planned. + +This package contains the bindings to use the library in Qt C++ applications. + +%endif # with_qt + %prep %setup -q %patch0 -p1 @@ -287,6 +339,11 @@ make %{?_smp_mflags} check %postun -n libgpgmepp6 -p /sbin/ldconfig %endif # with_cpp +%if 0%{with_qt} +%post -n libqgpgme6 -p /sbin/ldconfig +%postun -n libqgpgme6 -p /sbin/ldconfig +%endif # with_qt + %post %install_info --info-dir=%{_infodir} %{_infodir}/gpgme.info.gz @@ -343,4 +400,20 @@ make %{?_smp_mflags} check %{python3_sitearch}/pyme %endif # with_python3 +%if 0%{with_qt} +%files -n libqgpgme6 +%defattr(-,root,root) +%{_libdir}/libqgpgme.so.* + +%files -n libqgpgme-devel +%defattr(-,root,root) +%{_includedir}/qgpgme/ +%{_includedir}/QGpgME/ +%dir %{_libdir}/cmake +%dir %{_libdir}/cmake/Gpgmepp +%{_libdir}/cmake/Gpgmepp/QGpgmeConfig*.cmake +%{_includedir}/qgpgme_version.h +%{_libdir}/libqgpgme.so +%endif # with_qt + %changelog