2007-01-16 00:15:34 +01:00
|
|
|
#
|
2011-01-14 15:03:14 +01:00
|
|
|
# spec file for package gpgme
|
2007-01-16 00:15:34 +01:00
|
|
|
#
|
2018-01-08 11:31:58 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:34 +01:00
|
|
|
#
|
2009-01-13 18:58:06 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-11-18 10:43:42 +01:00
|
|
|
|
2017-03-24 16:14:23 +01:00
|
|
|
# Enable Qt bindings on TW and 42.3 (needed for KDE PIM)
|
2017-03-29 12:44:07 +02:00
|
|
|
%define with_qt 0%{?suse_version} >= 1330 || 0%{?sle_version} >= 120300
|
2018-01-08 11:31:58 +01:00
|
|
|
%bcond_without python2
|
|
|
|
%bcond_without python3
|
2007-01-16 00:15:34 +01:00
|
|
|
Name: gpgme
|
2018-04-19 09:59:15 +02:00
|
|
|
Version: 1.11.0
|
2011-12-01 21:10:43 +01:00
|
|
|
Release: 0
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Programmatic library interface to GnuPG
|
2018-04-19 09:59:15 +02:00
|
|
|
License: LGPL-2.1-or-later AND GPL-3.0-or-later
|
2010-12-14 23:28:20 +01:00
|
|
|
Group: Productivity/Security
|
2011-12-20 12:02:29 +01:00
|
|
|
Url: http://www.gnupg.org/related_software/gpgme/
|
2008-02-08 21:18:15 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
|
2013-03-09 19:04:52 +01:00
|
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2.sig
|
2011-07-29 17:54:23 +02:00
|
|
|
Source2: baselibs.conf
|
2013-03-09 19:04:52 +01:00
|
|
|
Source3: gpgme.keyring
|
2015-02-05 11:58:10 +01:00
|
|
|
# used to have a fixed timestamp
|
|
|
|
Source99: %{name}.changes
|
2017-02-14 10:52:32 +01:00
|
|
|
BuildRequires: gcc-c++
|
2013-03-09 19:04:52 +01:00
|
|
|
BuildRequires: gpg2 >= 2.0.10
|
2017-12-12 17:53:22 +01:00
|
|
|
BuildRequires: libassuan-devel >= 2.4.2
|
|
|
|
BuildRequires: libgpg-error-devel >= 1.24
|
2016-09-27 14:54:32 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: swig
|
2017-02-14 10:52:32 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2018-01-08 11:31:58 +01:00
|
|
|
%if %{with python2}
|
2017-11-08 07:57:22 +01:00
|
|
|
BuildRequires: python2-devel >= 2.7
|
2018-01-08 11:31:58 +01:00
|
|
|
%endif
|
|
|
|
%if %{with python3}
|
2017-03-29 12:44:07 +02:00
|
|
|
BuildRequires: python3-devel >= 3.4
|
|
|
|
%endif
|
2016-09-27 14:54:32 +02:00
|
|
|
%if 0%{with_qt}
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2016-10-13 10:28:34 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
2016-09-27 14:54:32 +02:00
|
|
|
%endif # with_qt
|
2007-01-16 00:15:34 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2007-01-16 00:15:34 +01:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management. It uses GnuPG as its back-end.
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%package -n libgpgme11
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Programmatic library interface to GnuPG
|
2017-02-14 07:39:37 +01:00
|
|
|
Group: System/Libraries
|
2011-09-05 15:30:00 +02:00
|
|
|
Requires: gpg2
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%description -n libgpgme11
|
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2007-08-06 23:39:18 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management. It uses GnuPG as its back-end.
|
2007-08-06 23:39:18 +02:00
|
|
|
|
|
|
|
%package -n libgpgme-devel
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Development files for GPGME, a C library for accessing GnuPG
|
2007-12-31 22:22:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-14 23:28:20 +01:00
|
|
|
Requires: glibc-devel
|
2010-09-16 12:21:05 +02:00
|
|
|
Requires: libgpg-error-devel
|
2010-12-14 23:28:20 +01:00
|
|
|
Requires: libgpgme11 = %{version}
|
2017-11-08 07:57:22 +01:00
|
|
|
%requires_ge libassuan-devel
|
2010-04-01 15:29:34 +02:00
|
|
|
Provides: gpgme-devel = %{version}
|
|
|
|
Obsoletes: gpgme-devel < %{version}
|
2007-08-06 23:39:18 +02:00
|
|
|
|
|
|
|
%description -n libgpgme-devel
|
2007-01-16 00:15:34 +01:00
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2007-01-16 00:15:34 +01:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2016-10-20 09:23:29 +02:00
|
|
|
This subpackage contains the headers needed for building applications
|
|
|
|
making use of libgpgme.
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2016-09-27 14:54:32 +02:00
|
|
|
%package -n libgpgmepp6
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Programmatic C++ library interface to GnuPG
|
2017-02-14 07:39:37 +01:00
|
|
|
Group: System/Libraries
|
2016-09-27 14:54:32 +02:00
|
|
|
Requires: gpg2
|
|
|
|
|
|
|
|
%description -n libgpgmepp6
|
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-09-27 14:54:32 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-09-27 14:54:32 +02:00
|
|
|
|
|
|
|
This package contains the C++ bindings.
|
|
|
|
|
|
|
|
%package -n libgpgmepp-devel
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Development files for libgpgmepp, a C++ library for accessing GnuPG
|
2016-09-27 14:54:32 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libgpg-error-devel
|
|
|
|
Requires: libgpgme-devel = %{version}
|
|
|
|
Requires: libgpgmepp6 = %{version}
|
2017-11-08 07:57:22 +01:00
|
|
|
%requires_ge libassuan-devel
|
2016-09-27 14:54:32 +02:00
|
|
|
|
|
|
|
%description -n libgpgmepp-devel
|
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-09-27 14:54:32 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2016-10-20 09:23:29 +02:00
|
|
|
This subpackage contains the headers needed for building applications
|
|
|
|
making use of libgpgmepp.
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2017-11-08 07:57:22 +01:00
|
|
|
%package -n python2-gpg
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Python 2 bindings for GPGME, a library for accessing GnuPG
|
2017-02-14 07:39:37 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-11-08 07:57:22 +01:00
|
|
|
Provides: python-gpg = %{version}-%{release}
|
|
|
|
Obsoletes: python-gpg < %{version}-%{release}
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2017-11-08 07:57:22 +01:00
|
|
|
%description -n python2-gpg
|
2016-09-27 14:54:32 +02:00
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-09-27 14:54:32 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-09-27 14:54:32 +02:00
|
|
|
|
|
|
|
This package contains the bindings to use the library from Python 2 applications.
|
|
|
|
|
2016-11-20 23:33:59 +01:00
|
|
|
%package -n python3-gpg
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Python 3 bindings for GPGME, a library for accessing GnuPG
|
2017-02-14 07:39:37 +01:00
|
|
|
Group: Development/Languages/Python
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2016-11-20 23:33:59 +01:00
|
|
|
%description -n python3-gpg
|
2016-09-27 14:54:32 +02:00
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-09-27 14:54:32 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-09-27 14:54:32 +02:00
|
|
|
|
|
|
|
This package contains the bindings to use the library from Python 3 applications.
|
|
|
|
|
2016-10-19 11:36:02 +02:00
|
|
|
%package -n libqgpgme7
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Programmatic Qt library interface to GnuPG
|
2017-02-14 07:39:37 +01:00
|
|
|
Group: System/Libraries
|
2016-10-13 10:28:34 +02:00
|
|
|
Requires: gpg2
|
|
|
|
|
2016-10-19 11:36:02 +02:00
|
|
|
%description -n libqgpgme7
|
2016-10-13 10:28:34 +02:00
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-10-13 10:28:34 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-10-13 10:28:34 +02:00
|
|
|
|
|
|
|
This package contains the Qt bindings.
|
|
|
|
|
|
|
|
%package -n libqgpgme-devel
|
2016-10-20 09:23:29 +02:00
|
|
|
Summary: Development files for libqgpgme, a Qt library for accessing GnuPG
|
2016-10-13 10:28:34 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libgpgme-devel = %{version}
|
|
|
|
Requires: libgpgmepp-devel = %{version}
|
2016-10-19 11:36:02 +02:00
|
|
|
Requires: libqgpgme7 = %{version}
|
2016-10-13 10:28:34 +02:00
|
|
|
|
|
|
|
%description -n libqgpgme-devel
|
|
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
2016-10-20 09:23:29 +02:00
|
|
|
easier for applications. It provides a high-level crypto API for
|
2016-10-13 10:28:34 +02:00
|
|
|
encryption, decryption, signing, signature verification, and key
|
2016-10-20 09:23:29 +02:00
|
|
|
management.
|
2016-10-13 10:28:34 +02:00
|
|
|
|
|
|
|
This package contains the bindings to use the library in Qt C++ applications.
|
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-04-16 18:03:52 +02:00
|
|
|
%patch0 -p1
|
2017-02-14 10:52:32 +01:00
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
%build
|
2015-09-17 14:56:47 +02:00
|
|
|
build_timestamp=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99})
|
2017-03-24 16:14:23 +01:00
|
|
|
languages="cl cpp"
|
|
|
|
|
2018-01-08 11:31:58 +01:00
|
|
|
%if %{with python2} || %{with python3}
|
2017-03-24 16:14:23 +01:00
|
|
|
languages="${languages} python"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?with_qt}
|
2016-09-27 14:54:32 +02:00
|
|
|
languages="${languages} qt"
|
|
|
|
%endif # with_qt
|
2017-03-24 16:14:23 +01:00
|
|
|
|
2014-05-21 15:51:31 +02:00
|
|
|
%configure \
|
2017-02-14 10:52:32 +01:00
|
|
|
--disable-silent-rules \
|
2014-05-21 15:51:31 +02:00
|
|
|
--disable-static \
|
2015-08-26 17:46:17 +02:00
|
|
|
--disable-fd-passing \
|
2016-09-27 14:54:32 +02:00
|
|
|
--enable-languages="${languages}" \
|
2015-09-17 14:56:47 +02:00
|
|
|
--enable-build-timestamp="${build_timestamp}"
|
2013-03-09 19:04:52 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:15:34 +01:00
|
|
|
|
|
|
|
%install
|
2017-02-14 10:52:32 +01:00
|
|
|
%make_install
|
2015-06-19 17:15:14 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-09-27 14:54:32 +02:00
|
|
|
chmod -x %{buildroot}%{_libdir}/cmake/Gpgmepp/*.cmake
|
2017-02-14 10:52:32 +01:00
|
|
|
|
2018-01-08 11:31:58 +01:00
|
|
|
%if %{with python2}
|
2016-11-20 23:33:59 +01:00
|
|
|
find %{buildroot}%{python_sitearch}/gpg-*.egg-info -delete -print
|
|
|
|
find %{buildroot}%{python_sitearch}/gpg -type f -name "*.pyc" -delete -print
|
2017-02-14 10:52:32 +01:00
|
|
|
rm -vf %{buildroot}%{python_sitelib}/gpg/install_files.txt
|
2018-01-08 11:31:58 +01:00
|
|
|
%endif
|
|
|
|
%if %{with python3}
|
2016-11-20 23:33:59 +01:00
|
|
|
find %{buildroot}%{python3_sitearch}/gpg-*.egg-info -delete -print
|
2017-02-14 10:52:32 +01:00
|
|
|
rm -vf %{buildroot}%{python3_sitelib}/gpg/install_files.txt
|
2016-11-20 23:33:59 +01:00
|
|
|
find %{buildroot}%{python3_sitearch}/gpg -type f -name "*.pyc" -delete -print
|
2017-03-24 16:14:23 +01:00
|
|
|
%endif
|
2008-02-08 21:18:15 +01:00
|
|
|
|
|
|
|
%check
|
2011-10-02 17:36:05 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2016-09-27 14:54:32 +02:00
|
|
|
make %{?_smp_mflags} check
|
2011-10-02 17:36:05 +02:00
|
|
|
%endif
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2010-12-14 23:28:20 +01:00
|
|
|
%post -n libgpgme11 -p /sbin/ldconfig
|
|
|
|
%postun -n libgpgme11 -p /sbin/ldconfig
|
2016-09-27 14:54:32 +02:00
|
|
|
%post -n libgpgmepp6 -p /sbin/ldconfig
|
|
|
|
%postun -n libgpgmepp6 -p /sbin/ldconfig
|
2016-10-13 10:28:34 +02:00
|
|
|
%if 0%{with_qt}
|
2016-10-19 11:36:02 +02:00
|
|
|
%post -n libqgpgme7 -p /sbin/ldconfig
|
|
|
|
%postun -n libqgpgme7 -p /sbin/ldconfig
|
2016-10-13 10:28:34 +02:00
|
|
|
%endif # with_qt
|
|
|
|
|
2007-01-16 00:15:34 +01:00
|
|
|
%post
|
2017-02-14 10:52:32 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gpgme.info%{ext_info}
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2015-06-19 17:15:14 +02:00
|
|
|
%preun
|
2017-02-14 10:52:32 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gpgme.info%{ext_info}
|
2007-01-16 00:15:34 +01:00
|
|
|
|
|
|
|
%files
|
2016-09-27 14:54:32 +02:00
|
|
|
%doc AUTHORS COPYING COPYING.LESSER ChangeLog ChangeLog-2011 README NEWS THANKS TODO VERSION
|
2014-12-08 09:31:29 +01:00
|
|
|
%{_bindir}/gpgme-tool
|
2007-12-31 22:22:29 +01:00
|
|
|
%{_datadir}/common-lisp
|
|
|
|
%{_datadir}/common-lisp/source
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_infodir}/gpgme*
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2007-08-06 23:39:18 +02:00
|
|
|
%files -n libgpgme11
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_libdir}/libgpgme.so.*
|
2007-08-06 23:39:18 +02:00
|
|
|
|
|
|
|
%files -n libgpgme-devel
|
2010-04-01 15:29:34 +02:00
|
|
|
%{_libdir}/libgpgme.so
|
2007-12-31 22:22:29 +01:00
|
|
|
%{_bindir}/gpgme-config
|
|
|
|
%{_datadir}/aclocal/gpgme.m4
|
|
|
|
%{_includedir}/gpgme.h
|
2007-01-16 00:15:34 +01:00
|
|
|
|
2016-09-27 14:54:32 +02:00
|
|
|
%files -n libgpgmepp6
|
|
|
|
%{_libdir}/libgpgmepp.so.*
|
|
|
|
|
|
|
|
%files -n libgpgmepp-devel
|
|
|
|
%{_libdir}/libgpgmepp.so
|
|
|
|
%{_includedir}/gpgme++
|
|
|
|
%dir %{_libdir}/cmake
|
|
|
|
%dir %{_libdir}/cmake/Gpgmepp
|
|
|
|
%{_libdir}/cmake/Gpgmepp/GpgmeppConfig*.cmake
|
|
|
|
|
2018-01-08 11:31:58 +01:00
|
|
|
%if %{with python2}
|
2017-11-08 07:57:22 +01:00
|
|
|
%files -n python2-gpg
|
2016-11-20 23:33:59 +01:00
|
|
|
%{python_sitearch}/gpg
|
2018-01-08 11:31:58 +01:00
|
|
|
%endif
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2018-01-08 11:31:58 +01:00
|
|
|
%if %{with python3}
|
2016-11-20 23:33:59 +01:00
|
|
|
%files -n python3-gpg
|
|
|
|
%{python3_sitearch}/gpg
|
2017-03-24 16:14:23 +01:00
|
|
|
%endif
|
2016-09-27 14:54:32 +02:00
|
|
|
|
2016-10-13 10:28:34 +02:00
|
|
|
%if 0%{with_qt}
|
2016-10-19 11:36:02 +02:00
|
|
|
%files -n libqgpgme7
|
2016-10-13 10:28:34 +02:00
|
|
|
%{_libdir}/libqgpgme.so.*
|
|
|
|
|
|
|
|
%files -n libqgpgme-devel
|
|
|
|
%{_includedir}/qgpgme/
|
|
|
|
%{_includedir}/QGpgME/
|
|
|
|
%dir %{_libdir}/cmake
|
2016-11-20 23:33:59 +01:00
|
|
|
%dir %{_libdir}/cmake/QGpgme
|
|
|
|
%{_libdir}/cmake/QGpgme/*.cmake
|
2016-10-13 10:28:34 +02:00
|
|
|
%{_libdir}/libqgpgme.so
|
|
|
|
%endif # with_qt
|
|
|
|
|
2007-03-12 01:58:50 +01:00
|
|
|
%changelog
|