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
This commit is contained in:
Tomáš Chvátal 2016-10-13 08:28:34 +00:00 committed by Git OBS Bridge
parent cc41d0397c
commit efc1738687
3 changed files with 82 additions and 1 deletions

View File

@ -1,2 +1,3 @@
libgpgme11
libgpgmepp6
libqgpgme6

View File

@ -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

View File

@ -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