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:
parent
a14dfaf068
commit
3971af4401
@ -1,75 +1,60 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-paramiko
|
Name: python-paramiko
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Paramiko SSH2 library for Python
|
Summary: Paramiko SSH2 library for Python
|
||||||
Group: System/Libraries/Python
|
Group: System/Libraries/Python
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Automatic Build System <autodist@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://www.lag.net/paramiko/
|
URL: https://www.lag.net/paramiko/
|
||||||
# https://github.com/robey/paramiko
|
|
||||||
Source: https://github.com/paramiko/paramiko.git/%{version}/paramiko-%{version}.tar.bz2
|
Source: https://github.com/paramiko/paramiko.git/%{version}/paramiko-%{version}.tar.bz2
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Requires: python >= %python_version
|
|
||||||
Requires: python-crypto
|
|
||||||
BuildRequires: python-setuptools-devel
|
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: libpython311-devel
|
BuildRequires: libpython311-devel
|
||||||
|
BuildRequires: python3.11dist(bcrypt)
|
||||||
|
BuildRequires: python3.11dist(cryptography)
|
||||||
|
BuildRequires: python3.11dist(pynacl)
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: python3-devel >= 3.11.5-3mamba
|
|
||||||
Requires: python-ecdsa
|
|
||||||
|
|
||||||
%description
|
%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.)
|
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"
|
%if 0%{?with_pyver}
|
||||||
%define pyver %{with_pyver}
|
%define py_requires_append \
|
||||||
%define pyappend py%{with_pyver}
|
Obsoletes: python-paramiko-py310 < 3.4.0-2mamba
|
||||||
%define __python %(rpm --eval %{__python%{with_pyver}})
|
%pyver_package
|
||||||
%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}.
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n paramiko-%{version}
|
%setup -q -n paramiko-%{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=%{_includedir}/python \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
%clean
|
#%if "%{?with_pyver}" != "3"
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
## 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)
|
%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 LICENSE
|
||||||
#%doc demos/
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 19 2023 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user