|
@@ -7,7 +7,7 @@ Name: gpgme
|
|
|
Summary: GPGME - GnuPG Made Easy
|
|
|
Summary(ja): GPGME - GnuPG Made Easy
|
|
|
Version: 1.12.0
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
|
|
License: LGPL
|
|
|
Group: System Environment/Libraries
|
|
@@ -19,6 +19,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: gnupg >= %{_gnupg_ver}
|
|
|
BuildRequires: libgpg-error-devel >= %{_libgpg_error_ver}
|
|
|
BuildRequires: libassuan-devel >= 2.0.2
|
|
|
+BuildRequires: chrpath
|
|
|
+BuildRequires: swig
|
|
|
+BuildRequires: python-devel
|
|
|
+BuildRequires: python-setuptools
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python3-setuptools
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
+
|
|
|
Requires: gnupg >= %{_gnupg_ver}
|
|
|
Requires: libgpg-error >= %{_libgpg_error_ver}
|
|
|
|
|
@@ -69,6 +78,23 @@ GnuPG Made Easy (GPGME) は、アプリケーションがより簡単に GnuPG
|
|
|
GPGME ライブラリを使用するアプリケーションを開発するのであれば、このパッケー
|
|
|
ジをインストールしてください。
|
|
|
|
|
|
+%package -n python-gpg
|
|
|
+Summary: %{name} bindings for Python 2
|
|
|
+%{?python_provide:%python_provide python2-gpg}
|
|
|
+Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
+
|
|
|
+%description -n python-gpg
|
|
|
+%{summary}.
|
|
|
+
|
|
|
+%package -n python3-gpg
|
|
|
+Summary: %{name} bindings for Python 3
|
|
|
+%{?python_provide:%python_provide python3-gpg}
|
|
|
+Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
+
|
|
|
+%description -n python3-gpg
|
|
|
+%{summary}.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
@@ -84,7 +110,13 @@ GPGME ライブラリを使用するアプリケーションを開発するの
|
|
|
%__rm -rf %{buildroot}%{_datadir}/common-lisp
|
|
|
%__rm -f %{buildroot}%{_libdir}/*.la
|
|
|
%__rm -f %{buildroot}%{_infodir}/dir
|
|
|
-%__rm -rf %{buildroot}%{_libdir}/python*
|
|
|
+
|
|
|
+chrpath -d %{buildroot}%{_bindir}/%{name}-tool
|
|
|
+chrpath -d %{buildroot}%{_libdir}/lib%{name}*.so*
|
|
|
+
|
|
|
+# autofoo installs useless stuff for uninstall
|
|
|
+rm -vf %{buildroot}%{python2_sitelib}/gpg/install_files.txt
|
|
|
+rm -vf %{buildroot}%{python3_sitelib}/gpg/install_files.txt
|
|
|
|
|
|
%clean
|
|
|
%__rm -rf %{buildroot}
|
|
@@ -109,13 +141,14 @@ fi
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc AUTHORS COPYING* ChangeLog INSTALL NEWS README THANKS TODO
|
|
|
+%license COPYING*
|
|
|
+%doc AUTHORS ChangeLog NEWS README* THANKS TODO VERSION
|
|
|
+%{_bindir}/gpgme-json
|
|
|
%{_libdir}/libgpgme*.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root)
|
|
|
%{_bindir}/gpgme-config
|
|
|
-%{_bindir}/gpgme-json
|
|
|
%{_bindir}/gpgme-tool
|
|
|
%{_libdir}/libgpgme*.so
|
|
|
%{_libdir}/cmake/*
|
|
@@ -123,7 +156,20 @@ fi
|
|
|
%{_includedir}/*
|
|
|
%{_infodir}/*
|
|
|
|
|
|
+%files -n python-gpg
|
|
|
+%doc lang/python/README
|
|
|
+%{python_sitearch}/gpg-*.egg-info
|
|
|
+%{python_sitearch}/gpg/
|
|
|
+
|
|
|
+%files -n python3-gpg
|
|
|
+%doc lang/python/README
|
|
|
+%{python3_sitearch}/gpg-*.egg-info
|
|
|
+%{python3_sitearch}/gpg/
|
|
|
+
|
|
|
%changelog
|
|
|
+* Fri Nov 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-2
|
|
|
+- enabled python{2,3} bindings.
|
|
|
+
|
|
|
* Mon Nov 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-1
|
|
|
- new upstream release.
|
|
|
|