diff --git a/python-josepy.spec b/python-josepy.spec index 52bb05a..e2c7432 100644 --- a/python-josepy.spec +++ b/python-josepy.spec @@ -1,6 +1,6 @@ Name: python-josepy Version: 1.8.0 -Release: 1mamba +Release: 2mamba Summary: JOSE protocol implementation in Python using cryptography Group: System/Libraries Vendor: openmamba @@ -10,34 +10,17 @@ URL: https://pypi.python.org/pypi/josepy Source: https://pypi.debian.net/josepy/josepy-%{version}.tar.gz License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(cryptography) +BuildRequires: python3.7dist(pyopenssl) +BuildRequires: python3.7dist(setuptools) ## AUTOBUILDREQ-END -BuildRequires: libpython-devel -Requires: python >= %python_version -Requires: python-pyOpenSSL %description %{summary}. -%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}. +%if 0%{?with_pyver} +%pyver_package %endif %prep @@ -55,7 +38,7 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %if "%{?pyappend}" != "py3" rm -f %{buildroot}%{_bindir}/jws @@ -64,8 +47,13 @@ sed -i "/\/usr\/bin\/jws/d" %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/josepy-%{version}-py*.egg-info +%{python_sitearch}/josepy-%{version}-py*.egg-info/* %changelog +* Fri Apr 09 2021 Silvan Calarco 1.8.0-2mamba +- rebuilt with distdeps + * Wed Mar 17 2021 Automatic Build System 1.8.0-1mamba - automatic version update by autodist