12 Commits

Author SHA1 Message Date
069048e86b automatic version update by autodist [release 2.1.0-1mamba;Wed Jul 09 2025] 2025-07-09 20:09:31 +02:00
7afd6e407c automatic version update by autodist [release 2.0.0-1mamba;Tue Feb 11 2025] 2025-04-08 20:59:17 +02:00
bc2c351d9c automatic version update by autodist [release 1.15.0-1mamba;Thu Jan 23 2025] 2025-01-26 11:50:29 +01:00
a3a04890ba automatic version update by autodist [release 1.14.0-1mamba;Fri Dec 01 2023] 2024-01-06 11:20:09 +01:00
8a46b4a1b6 rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba [release 1.13.0-3mamba;Tue Sep 26 2023] 2024-01-06 11:20:09 +01:00
4885e0333d rebuilt with python 3.10 [release 1.13.0-2mamba;Tue Jul 18 2023] 2024-01-06 11:20:08 +01:00
65fe6f7928 automatic version update by autodist [release 1.13.0-1mamba;Fri Mar 11 2022] 2024-01-06 11:20:08 +01:00
79f7a4c6e9 automatic version update by autodist [release 1.12.0-1mamba;Thu Jan 13 2022] 2024-01-06 11:20:08 +01:00
f60526f7b9 automatic version update by autodist [release 1.11.0-1mamba;Thu Nov 18 2021] 2024-01-06 11:20:08 +01:00
8a73519b12 automatic version update by autodist [release 1.10.0-1mamba;Tue Sep 28 2021] 2024-01-06 11:20:08 +01:00
75699cdcb1 automatic version update by autodist [release 1.9.0-1mamba;Fri Sep 10 2021] 2024-01-06 11:20:08 +01:00
14a7dfe30d rebuilt with distdeps [release 1.8.0-2mamba;Fri Apr 09 2021] 2024-01-06 11:20:07 +01:00

View File

@ -1,71 +1,94 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-josepy
Version: 1.8.0
Version: 2.1.0
Release: 1mamba
Summary: JOSE protocol implementation in Python using cryptography
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.python.org/pypi/josepy
URL: https://pypi.org/project/josepy/
Source: https://pypi.debian.net/josepy/josepy-%{version}.tar.gz
License: Apache License 2.0
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(cryptography)
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
Requires: python-pyOpenSSL
BuildRequires: python3-devel >= 3.11.5-3mamba
%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
%setup -q -n josepy-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%if "%{?pyappend}" != "py3"
rm -f %{buildroot}%{_bindir}/jws
sed -i "/\/usr\/bin\/jws/d" %{name}.filelist
%if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/jws; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend} -f %{name}.filelist
rm -f %{buildroot}%{python_sitelib}/{CHANGELOG.rst,CONTRIBUTING.md}
%files %{?pyappend}
%defattr(-,root,root)
%{_bindir}/jws*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE.txt
%changelog
* Wed Jul 09 2025 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
- automatic version update by autodist
* Tue Feb 11 2025 Automatic Build System <autodist@openmamba.org> 2.0.0-1mamba
- automatic version update by autodist
* Thu Jan 23 2025 Automatic Build System <autodist@openmamba.org> 1.15.0-1mamba
- automatic version update by autodist
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.14.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 1.13.0-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Tue Jul 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.0-2mamba
- rebuilt with python 3.10
* Fri Mar 11 2022 Automatic Build System <autodist@mambasoft.it> 1.13.0-1mamba
- automatic version update by autodist
* Thu Jan 13 2022 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
- automatic version update by autodist
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 1.11.0-1mamba
- automatic version update by autodist
* Tue Sep 28 2021 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Fri Sep 10 2021 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Fri Apr 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-2mamba
- rebuilt with distdeps
* Wed Mar 17 2021 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist