Accepting request 307483 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/307483 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rsa?expand=0&rev=10
This commit is contained in:
commit
bbe25ec27f
@ -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>
|
||||
|
||||
|
@ -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}/*
|
||||
|
||||
|
@ -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
3
rsa-3.1.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e2b0b05936c276b1edd2e1525553233b666df9e29b5c3ba223eed738277c82a0
|
||||
size 36181
|
Loading…
Reference in New Issue
Block a user