rebuilt with py3* packages [release 2.7.2-2mamba;Tue Sep 08 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 16:14:28 +01:00
parent bfe6ea3e99
commit 751289e33f

View File

@ -1,6 +1,6 @@
Name: python-paramiko Name: python-paramiko
Version: 2.7.2 Version: 2.7.2
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
@ -22,40 +22,57 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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"
%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}.
%endif
%prep %prep
%setup -q -n paramiko-%{version} %setup -q -n paramiko-%{version}
# https://bugs.launchpad.net/paramiko/+bug/411099
chmod a-x demos/*
sed -i -e '/^#!/,1d' demos/*
for p in $(find . -name "*.py"); do
sed -i 's|#!/usr/bin/python|#!%{__python}|' $p
sed -i 's|#!/usr/bin/env python|#!%{__python}|' $p
done
%build %build
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build CFLAGS="%{optflags}" %{__python} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot} %{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%dir %{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info %doc LICENSE
%{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info/PKG-INFO #%doc demos/
%{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info/*.txt
%dir %{python_sitelib}/paramiko
%{python_sitelib}/paramiko/*.py*
%doc LICENSE demos/
%changelog %changelog
* Tue Sep 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-2mamba
- rebuilt with py3* packages
* Mon Aug 31 2020 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba * Mon Aug 31 2020 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba
- automatic version update by autodist - automatic version update by autodist