!19 Update package rsa of version 4.8
From: @A_L_I_E_Z Reviewed-by: @myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
b86c542d01
@ -1,55 +1,91 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-rsa
|
Name: python-rsa
|
||||||
Version: 4.7.2
|
Version: 4.8
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Pure-Python RSA implementation
|
Summary: Pure-Python RSA implementation
|
||||||
License: ASL 2.0
|
License: Apache-2.0
|
||||||
URL: http://stuvel.eu/rsa
|
URL: https://stuvel.eu/rsa
|
||||||
Source0: https://pypi.python.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/8c/ee/4022542e0fed77dd6ddade38e1e4dea3299f873b7fd4e6d78319953b0f83/rsa-4.8.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Python-RSA is a pure-Python RSA implementation. It supports
|
Python-RSA is a pure-Python RSA implementation. It supports
|
||||||
encryption and decryption, signing and verifying signatures,
|
encryption and decryption, signing and verifying signatures,
|
||||||
and key generation according to PKCS#1 version 1.5.
|
and key generation according to PKCS#1 version 1.5.
|
||||||
|
|
||||||
%package -n python3-rsa
|
%package -n python3-rsa
|
||||||
%{?python_provide:%python_provide python3-rsa}
|
|
||||||
Summary: Pure-Python RSA implementation
|
Summary: Pure-Python RSA implementation
|
||||||
BuildRequires: python3-devel, python3-setuptools, python3-pyasn1 >= 0.1.3, python3-unittest2
|
Provides: python-rsa
|
||||||
BuildRequires: python3-mypy
|
# Base build requires
|
||||||
Requires: python3-pyasn1 >= 0.1.3, python3-setuptools
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-pyasn1
|
||||||
|
# General requires
|
||||||
|
Requires: python3-pyasn1
|
||||||
%description -n python3-rsa
|
%description -n python3-rsa
|
||||||
Python-RSA is a pure-Python RSA implementation. It supports
|
Python-RSA is a pure-Python RSA implementation. It supports
|
||||||
encryption and decryption, signing and verifying signatures,
|
encryption and decryption, signing and verifying signatures,
|
||||||
and key generation according to PKCS#1 version 1.5.
|
and key generation according to PKCS#1 version 1.5.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Pure-Python RSA implementation
|
||||||
|
Provides: python3-rsa-doc
|
||||||
|
%description help
|
||||||
|
Python-RSA is a pure-Python RSA implementation. It supports
|
||||||
|
encryption and decryption, signing and verifying signatures,
|
||||||
|
and key generation according to PKCS#1 version 1.5.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n rsa-%{version} -p1
|
%autosetup -n rsa-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-priv2pub $RPM_BUILD_ROOT%{_bindir}/pyrsa-priv2pub-3
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-keygen $RPM_BUILD_ROOT%{_bindir}/pyrsa-keygen-3
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-encrypt $RPM_BUILD_ROOT%{_bindir}/pyrsa-encrypt-3
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-decrypt $RPM_BUILD_ROOT%{_bindir}/pyrsa-decrypt-3
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-sign $RPM_BUILD_ROOT%{_bindir}/pyrsa-sign-3
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/pyrsa-verify $RPM_BUILD_ROOT%{_bindir}/pyrsa-verify-3
|
|
||||||
|
|
||||||
%files -n python3-rsa
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
%doc README.md
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
%license LICENSE
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
%{_bindir}/pyrsa-*-3
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
%{python3_sitelib}/*
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
|
%files -n python3-rsa -f filelist.lst
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 31 2022 OpenStack_SIG <openstack@openeuler.org> - 4.8-1
|
||||||
|
- Upgrade package python3-rsa to version 4.8
|
||||||
|
|
||||||
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 4.7.2-1
|
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 4.7.2-1
|
||||||
- Package update to 4.7.2
|
- Package update to 4.7.2
|
||||||
|
|
||||||
|
|||||||
BIN
rsa-4.7.2.tar.gz
BIN
rsa-4.7.2.tar.gz
Binary file not shown.
BIN
rsa-4.8.tar.gz
Normal file
BIN
rsa-4.8.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user