From 73c3234cf456a623f4625ad0f30e6910169fe25627135aa37eb10b12d9df759f Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Sat, 16 May 2015 13:22:48 +0000 Subject: [PATCH] Accepting request 306577 from home:benoit_monin:branches:devel:languages:python - update to version 3.1.4 - add test dependency python-unittest2 - fix update-alternatives - run the tests with run_tests.py - add README.rst to the package documentation OBS-URL: https://build.opensuse.org/request/show/306577 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=11 --- python-rsa.changes | 10 ++++++++++ python-rsa.spec | 49 +++++++++++++++++++++++++++------------------- rsa-3.1.2.tar.gz | 3 --- rsa-3.1.4.tar.gz | 3 +++ 4 files changed, 42 insertions(+), 23 deletions(-) delete mode 100644 rsa-3.1.2.tar.gz create mode 100644 rsa-3.1.4.tar.gz diff --git a/python-rsa.changes b/python-rsa.changes index 60edfc4..cfa6144 100644 --- a/python-rsa.changes +++ b/python-rsa.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue May 12 14:50:12 UTC 2015 - benoit.monin@gmx.fr + +- update to version 3.1.4: + * no changelog available +- add test dependency python-unittest2 +- fix update-alternatives +- run the tests with run_tests.py +- add README.rst to the package documentation + ------------------------------------------------------------------- Sat Nov 08 20:23:00 UTC 2014 - Led diff --git a/python-rsa.spec b/python-rsa.spec index 35f7fcb..05d3598 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,7 +1,7 @@ # # spec file for package python-rsa # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-rsa -Version: 3.1.2 +Version: 3.1.4 Release: 0 Url: http://stuvel.eu/rsa Summary: Pure-Python RSA Implementation @@ -28,6 +28,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-pyasn1 BuildRequires: python-setuptools +BuildRequires: python-unittest2 Requires: python-pyasn1 Requires(post): update-alternatives Requires(postun): update-alternatives @@ -58,17 +59,17 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_bindir}/pyrsa-priv2pub-%{py_ver} %{buildroot}%{_bindir}/pyrsa-priv2pub -ln -s %{_bindir}/pyrsa-keygen-%{py_ver} %{buildroot}%{_bindir}/pyrsa-keygen -ln -s %{_bindir}/pyrsa-encrypt-%{py_ver} %{buildroot}%{_bindir}/pyrsa-encrypt -ln -s %{_bindir}/pyrsa-decrypt-%{py_ver} %{buildroot}%{_bindir}/pyrsa-decrypt -ln -s %{_bindir}/pyrsa-sign-%{py_ver} %{buildroot}%{_bindir}/pyrsa-sign -ln -s %{_bindir}/pyrsa-verify-%{py_ver} %{buildroot}%{_bindir}/pyrsa-verify -ln -s %{_bindir}/pyrsa-encrypt-bigfile-%{py_ver} %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile -ln -s %{_bindir}/pyrsa-decrypt-bigfile-%{py_ver} %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile + +# for update-alternatives +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for f in pyrsa-priv2pub pyrsa-keygen pyrsa-encrypt pyrsa-decrypt pyrsa-sign \ + pyrsa-verify pyrsa-encrypt-bigfile pyrsa-decrypt-bigfile; do + touch %{buildroot}%{_sysconfdir}/alternatives/$f + ln -sf %{_sysconfdir}/alternatives/$f %{buildroot}%{_bindir}/$f +done %check -python setup.py test +python run_tests.py %pre # Since binaries became ghosted to be used with update-alternatives, we have to get rid @@ -100,22 +101,30 @@ fi %files %defattr(-,root,root,-) -%doc LICENSE -%ghost %{_bindir}/pyrsa-priv2pub +%doc LICENSE README.rst +%ghost %{_sysconfdir}/alternatives/pyrsa-priv2pub +%ghost %{_sysconfdir}/alternatives/pyrsa-keygen +%ghost %{_sysconfdir}/alternatives/pyrsa-encrypt +%ghost %{_sysconfdir}/alternatives/pyrsa-decrypt +%ghost %{_sysconfdir}/alternatives/pyrsa-sign +%ghost %{_sysconfdir}/alternatives/pyrsa-verify +%ghost %{_sysconfdir}/alternatives/pyrsa-encrypt-bigfile +%ghost %{_sysconfdir}/alternatives/pyrsa-decrypt-bigfile +%{_bindir}/pyrsa-priv2pub %{_bindir}/pyrsa-priv2pub-%{py_ver} -%ghost %{_bindir}/pyrsa-keygen +%{_bindir}/pyrsa-keygen %{_bindir}/pyrsa-keygen-%{py_ver} -%ghost %{_bindir}/pyrsa-encrypt +%{_bindir}/pyrsa-encrypt %{_bindir}/pyrsa-encrypt-%{py_ver} -%ghost %{_bindir}/pyrsa-decrypt +%{_bindir}/pyrsa-decrypt %{_bindir}/pyrsa-decrypt-%{py_ver} -%ghost %{_bindir}/pyrsa-sign +%{_bindir}/pyrsa-sign %{_bindir}/pyrsa-sign-%{py_ver} -%ghost %{_bindir}/pyrsa-verify +%{_bindir}/pyrsa-verify %{_bindir}/pyrsa-verify-%{py_ver} -%ghost %{_bindir}/pyrsa-encrypt-bigfile +%{_bindir}/pyrsa-encrypt-bigfile %{_bindir}/pyrsa-encrypt-bigfile-%{py_ver} -%ghost %{_bindir}/pyrsa-decrypt-bigfile +%{_bindir}/pyrsa-decrypt-bigfile %{_bindir}/pyrsa-decrypt-bigfile-%{py_ver} %{python_sitelib}/* diff --git a/rsa-3.1.2.tar.gz b/rsa-3.1.2.tar.gz deleted file mode 100644 index 32519bf..0000000 --- a/rsa-3.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:66eb8752a1de9b92d7679ea0e1556cf2e4a155161d0024e97e06999041e35f58 -size 35237 diff --git a/rsa-3.1.4.tar.gz b/rsa-3.1.4.tar.gz new file mode 100644 index 0000000..6156f0e --- /dev/null +++ b/rsa-3.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2b0b05936c276b1edd2e1525553233b666df9e29b5c3ba223eed738277c82a0 +size 36181