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
This commit is contained in:
Denisart Benjamin 2015-05-16 13:22:48 +00:00 committed by Git OBS Bridge
parent de84d1b259
commit 73c3234cf4
4 changed files with 42 additions and 23 deletions

View File

@ -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 <ledest@gmail.com>

View File

@ -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}/*

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66eb8752a1de9b92d7679ea0e1556cf2e4a155161d0024e97e06999041e35f58
size 35237

3
rsa-3.1.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2b0b05936c276b1edd2e1525553233b666df9e29b5c3ba223eed738277c82a0
size 36181