Blame python-mock-ssh-server.spec

da32a9a
%global srcname mock-ssh-server
da32a9a
da32a9a
Name:           python-%{srcname}
da32a9a
Version:        0.8.2
c85a100
Release:        4%{?dist}
da32a9a
Summary:        Mock SSH server for testing purposes
da32a9a
da32a9a
License:        MIT
da32a9a
URL:            https://github.com/carletes/%{srcname}
da32a9a
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz 
da32a9a
BuildArch:      noarch
da32a9a
 
da32a9a
BuildRequires:  python3-devel
da32a9a
BuildRequires:  python3-setuptools
da32a9a
BuildRequires:  python%{python3_pkgversion}-paramiko
da32a9a
da32a9a
%global _description\
da32a9a
An SSH server for testing purposes mocksshserver packs a Python context\
da32a9a
manager that implements an SSH server for testing purposes. It is built\
da32a9a
on top of paramiko, so it does not need OpenSSH binaries to be installed.
da32a9a
da32a9a
%description %{_description}
da32a9a
da32a9a
%package -n     python%{python3_pkgversion}-%{srcname}
da32a9a
Summary:        %{summary}
da32a9a
%{?python_provide:%python_provide python3-%{srcname}}
da32a9a
 
da32a9a
Requires:       python%{python3_pkgversion}-paramiko
da32a9a
da32a9a
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
da32a9a
da32a9a
da32a9a
%prep
da32a9a
%autosetup -n %{srcname}-%{version}
da32a9a
# Remove bundled egg-info
da32a9a
rm -rf *.egg-info
da32a9a
da32a9a
%build
da32a9a
%py3_build
da32a9a
da32a9a
%install
da32a9a
%py3_install
da32a9a
da32a9a
da32a9a
%files -n python%{python3_pkgversion}-%{srcname}
da32a9a
%license LICENSE
da32a9a
%doc README.rst
da32a9a
%{python3_sitelib}/mockssh/
da32a9a
%{python3_sitelib}/mock_ssh_server-%{version}-py%{python3_version}.egg-info
da32a9a
da32a9a
%changelog
c85a100
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
c85a100
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c85a100
a7fcc59
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.2-3
a7fcc59
- Rebuilt for Python 3.10
a7fcc59
da32a9a
* Thu Dec 03 2020 Raphael Groner <raphgro@fedoraproject.org> - 0.8.2-2
da32a9a
- fix minor issues for package review 
da32a9a
da32a9a
* Wed Sep 09 2020 Raphael Groner <raphgro@fedoraproject.org> - 0.8.2-1
da32a9a
- initial