Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=24
This commit is contained in:
parent
3160858220
commit
51c5e6e697
@ -16,30 +16,28 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without tests
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without tests
|
||||||
Name: python-rsa
|
Name: python-rsa
|
||||||
Version: 3.4.2
|
Version: 3.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://stuvel.eu/rsa
|
|
||||||
Summary: Pure-Python RSA Implementation
|
Summary: Pure-Python RSA Implementation
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
URL: http://stuvel.eu/rsa
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: %{python_module pyasn1 >= 0.1.3}
|
BuildRequires: %{python_module pyasn1 >= 0.1.3}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-pyasn1 >= 0.1.3
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(pre): coreutils
|
||||||
|
Requires(preun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
%endif
|
%endif
|
||||||
Requires: python-pyasn1 >= 0.1.3
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires(pre): coreutils
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(preun): update-alternatives
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,8 +76,8 @@ PKCS#1 version 1.5.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc CHANGELOG.txt LICENSE README.md
|
%doc CHANGELOG.txt README.md
|
||||||
%python_alternative %{_bindir}/pyrsa-decrypt
|
%python_alternative %{_bindir}/pyrsa-decrypt
|
||||||
%python_alternative %{_bindir}/pyrsa-decrypt-bigfile
|
%python_alternative %{_bindir}/pyrsa-decrypt-bigfile
|
||||||
%python_alternative %{_bindir}/pyrsa-encrypt
|
%python_alternative %{_bindir}/pyrsa-encrypt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user