Update package rsa of version 4.8
This commit is contained in:
parent
692e18ea0d
commit
62aa2e03ba
@ -1,55 +1,91 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-rsa
|
||||
Version: 4.7.2
|
||||
Version: 4.8
|
||||
Release: 1
|
||||
Summary: Pure-Python RSA implementation
|
||||
License: ASL 2.0
|
||||
URL: http://stuvel.eu/rsa
|
||||
Source0: https://pypi.python.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
||||
License: Apache-2.0
|
||||
URL: https://stuvel.eu/rsa
|
||||
Source0: https://files.pythonhosted.org/packages/8c/ee/4022542e0fed77dd6ddade38e1e4dea3299f873b7fd4e6d78319953b0f83/rsa-4.8.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%package -n python3-rsa
|
||||
%{?python_provide:%python_provide python3-rsa}
|
||||
%package -n python3-rsa
|
||||
Summary: Pure-Python RSA implementation
|
||||
BuildRequires: python3-devel, python3-setuptools, python3-pyasn1 >= 0.1.3, python3-unittest2
|
||||
BuildRequires: python3-mypy
|
||||
Requires: python3-pyasn1 >= 0.1.3, python3-setuptools
|
||||
|
||||
Provides: python-rsa
|
||||
# Base build requires
|
||||
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
|
||||
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.
|
||||
|
||||
%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
|
||||
%autosetup -n rsa-%{version} -p1
|
||||
%autosetup -n rsa-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%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
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/pyrsa-*-3
|
||||
%{python3_sitelib}/*
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
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
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python3-rsa -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%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
|
||||
- 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