require pyOpenSSL[-py3*] [release 1.3.0-3mamba;Sat Apr 11 2020]
This commit is contained in:
parent
dd5d8eec28
commit
ec86464b99
@ -1,6 +1,6 @@
|
||||
Name: python-josepy
|
||||
Version: 1.3.0
|
||||
Release: 1mamba
|
||||
Release: 3mamba
|
||||
Summary: JOSE protocol implementation in Python using cryptography
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -14,13 +14,32 @@ BuildRequires: libpython-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libpython-devel
|
||||
Requires: python >= %python_version
|
||||
Requires: python-pyOpenSSL
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%pyver_package
|
||||
%if "%?with_pyver"
|
||||
%define pyver %{with_pyver}
|
||||
%define pyappend py%{with_pyver}
|
||||
%define __python %(rpm --eval %{__python%{with_pyver}})
|
||||
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
||||
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
||||
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
||||
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
||||
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
||||
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
||||
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
||||
|
||||
%package py%{pyver}
|
||||
Group: System/Libraries/Python
|
||||
Summary: %{summary}.
|
||||
Requires: python-pyOpenSSL-%{?pyappend}
|
||||
%py_requires
|
||||
|
||||
%description py%{pyver}
|
||||
%{summary}.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
@ -40,10 +59,21 @@ CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
|
||||
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
||||
|
||||
%if "%{?pyappend}" != "py3"
|
||||
rm -f %{buildroot}%{_bindir}/jws
|
||||
sed -i "/\/usr\/bin\/jws/d" %{name}.filelist
|
||||
%endif
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-3mamba
|
||||
- require pyOpenSSL[-py3*]
|
||||
|
||||
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-2mamba
|
||||
- rebuilt with py3* packages
|
||||
|
||||
* Sun Feb 02 2020 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user