Compare commits
12 Commits
1.8.0-1mam
...
main
Author | SHA1 | Date | |
---|---|---|---|
069048e86b | |||
7afd6e407c | |||
bc2c351d9c | |||
a3a04890ba | |||
8a46b4a1b6 | |||
4885e0333d | |||
65fe6f7928 | |||
79f7a4c6e9 | |||
f60526f7b9 | |||
8a73519b12 | |||
75699cdcb1 | |||
14a7dfe30d |
@ -1,71 +1,94 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-josepy
|
Name: python-josepy
|
||||||
Version: 1.8.0
|
Version: 2.1.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: JOSE protocol implementation in Python using cryptography
|
Summary: JOSE protocol implementation in Python using cryptography
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
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
|
Source: https://pypi.debian.net/josepy/josepy-%{version}.tar.gz
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
|
BuildArch: noarch
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: libpython311-devel
|
||||||
|
BuildRequires: python3.11dist(cryptography)
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libpython-devel
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||||
Requires: python >= %python_version
|
|
||||||
Requires: python-pyOpenSSL
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%if "%?with_pyver"
|
%if 0%{?with_pyver}
|
||||||
%define pyver %{with_pyver}
|
%pyver_package
|
||||||
%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
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n josepy-%{version}
|
%setup -q -n josepy-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python} setup.py install \
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||||
-O1 --skip-build \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--install-headers=%{python_inc} \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
%if "%{?with_pyver}" != "3"
|
||||||
|
# Rename any conflicting file outside of python site packages tree
|
||||||
%if "%{?pyappend}" != "py3"
|
for f in %{_bindir}/jws; do
|
||||||
rm -f %{buildroot}%{_bindir}/jws
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
||||||
sed -i "/\/usr\/bin\/jws/d" %{name}.filelist
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{?pyappend} -f %{name}.filelist
|
rm -f %{buildroot}%{python_sitelib}/{CHANGELOG.rst,CONTRIBUTING.md}
|
||||||
|
|
||||||
|
%files %{?pyappend}
|
||||||
%defattr(-,root,root)
|
%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
|
%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
|
* Wed Mar 17 2021 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user