removed requirement for python-setuptools-devel, specfile updated using python-build [release 3.4.0-2mamba;Thu Jan 18 2024]

This commit is contained in:
Silvan Calarco 2024-01-19 09:59:34 +01:00
parent a14dfaf068
commit 3971af4401

View File

@ -1,75 +1,60 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-paramiko
Version: 3.4.0
Release: 1mamba
Release: 2mamba
Summary: Paramiko SSH2 library for Python
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.lag.net/paramiko/
# https://github.com/robey/paramiko
Source: https://github.com/paramiko/paramiko.git/%{version}/paramiko-%{version}.tar.bz2
License: LGPL
Requires: python >= %python_version
Requires: python-crypto
BuildRequires: python-setuptools-devel
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(bcrypt)
BuildRequires: python3.11dist(cryptography)
BuildRequires: python3.11dist(pynacl)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
Requires: python-ecdsa
%description
Paramiko (a combination of the esperanto words for "paranoid" and "friend") is a module for python 2.3 or greater that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines. Unlike SSL (aka TLS), the SSH2 protocol does not require heirarchical certificates signed by a powerful central authority. You may know SSH2 as the protocol that replaced telnet and rsh for secure access to remote shells, but the protocol also includes the ability to open arbitrary channels to remote services across an encrypted tunnel. (This is how sftp works, for example.)
%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-bcrypt-%{?pyappend}
Requires: python-nacl-%{?pyappend}
%py_requires
%description py%{pyver}
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-paramiko-py310 < 3.4.0-2mamba
%pyver_package
%endif
%prep
%setup -q -n paramiko-%{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=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE
#%doc demos/
%changelog
* Thu Jan 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.0-2mamba
- removed requirement for python-setuptools-devel, specfile updated using python-build
* Tue Dec 19 2023 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
- automatic version update by autodist