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>
|
Sat Nov 08 20:23:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rsa
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-rsa
|
Name: python-rsa
|
||||||
Version: 3.1.2
|
Version: 3.1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://stuvel.eu/rsa
|
Url: http://stuvel.eu/rsa
|
||||||
Summary: Pure-Python RSA Implementation
|
Summary: Pure-Python RSA Implementation
|
||||||
@ -28,6 +28,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-pyasn1
|
BuildRequires: python-pyasn1
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-unittest2
|
||||||
Requires: python-pyasn1
|
Requires: python-pyasn1
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
@ -58,17 +59,17 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
# for update-alternatives
|
||||||
ln -s %{_bindir}/pyrsa-encrypt-%{py_ver} %{buildroot}%{_bindir}/pyrsa-encrypt
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
ln -s %{_bindir}/pyrsa-decrypt-%{py_ver} %{buildroot}%{_bindir}/pyrsa-decrypt
|
for f in pyrsa-priv2pub pyrsa-keygen pyrsa-encrypt pyrsa-decrypt pyrsa-sign \
|
||||||
ln -s %{_bindir}/pyrsa-sign-%{py_ver} %{buildroot}%{_bindir}/pyrsa-sign
|
pyrsa-verify pyrsa-encrypt-bigfile pyrsa-decrypt-bigfile; do
|
||||||
ln -s %{_bindir}/pyrsa-verify-%{py_ver} %{buildroot}%{_bindir}/pyrsa-verify
|
touch %{buildroot}%{_sysconfdir}/alternatives/$f
|
||||||
ln -s %{_bindir}/pyrsa-encrypt-bigfile-%{py_ver} %{buildroot}%{_bindir}/pyrsa-encrypt-bigfile
|
ln -sf %{_sysconfdir}/alternatives/$f %{buildroot}%{_bindir}/$f
|
||||||
ln -s %{_bindir}/pyrsa-decrypt-bigfile-%{py_ver} %{buildroot}%{_bindir}/pyrsa-decrypt-bigfile
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
python run_tests.py
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# Since binaries became ghosted to be used with update-alternatives, we have to get rid
|
# Since binaries became ghosted to be used with update-alternatives, we have to get rid
|
||||||
@ -100,22 +101,30 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE README.rst
|
||||||
%ghost %{_bindir}/pyrsa-priv2pub
|
%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}
|
%{_bindir}/pyrsa-priv2pub-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-keygen
|
%{_bindir}/pyrsa-keygen
|
||||||
%{_bindir}/pyrsa-keygen-%{py_ver}
|
%{_bindir}/pyrsa-keygen-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-encrypt
|
%{_bindir}/pyrsa-encrypt
|
||||||
%{_bindir}/pyrsa-encrypt-%{py_ver}
|
%{_bindir}/pyrsa-encrypt-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-decrypt
|
%{_bindir}/pyrsa-decrypt
|
||||||
%{_bindir}/pyrsa-decrypt-%{py_ver}
|
%{_bindir}/pyrsa-decrypt-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-sign
|
%{_bindir}/pyrsa-sign
|
||||||
%{_bindir}/pyrsa-sign-%{py_ver}
|
%{_bindir}/pyrsa-sign-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-verify
|
%{_bindir}/pyrsa-verify
|
||||||
%{_bindir}/pyrsa-verify-%{py_ver}
|
%{_bindir}/pyrsa-verify-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-encrypt-bigfile
|
%{_bindir}/pyrsa-encrypt-bigfile
|
||||||
%{_bindir}/pyrsa-encrypt-bigfile-%{py_ver}
|
%{_bindir}/pyrsa-encrypt-bigfile-%{py_ver}
|
||||||
%ghost %{_bindir}/pyrsa-decrypt-bigfile
|
%{_bindir}/pyrsa-decrypt-bigfile
|
||||||
%{_bindir}/pyrsa-decrypt-bigfile-%{py_ver}
|
%{_bindir}/pyrsa-decrypt-bigfile-%{py_ver}
|
||||||
%{python_sitelib}/*
|
%{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