## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global pypi_name sshtunnel # tests are enabled by default %bcond_without tests Name: python-%{pypi_name} Version: 0.4.0 Release: %autorelease Summary: Pure python SSH tunnels License: MIT URL: https://github.com/pahaz/sshtunnel Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: openssh-clients BuildRequires: python3-pytest %endif %description Pure python SSH tunnels %package -n python3-%{pypi_name} Summary: %{summary} Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{pypi_name} Pure python SSH tunnels %prep %autosetup -n %{pypi_name}-%{version} # Remove the python shebang from non-executable files. sed -i '1{\@^#!/usr/bin/env python@d}' sshtunnel.py # Update tests to import the built-in mock. sed -i 's/^import mock/from unittest import mock/' tests/*.py %build %pyproject_wheel %generate_buildrequires %pyproject_buildrequires -r %install %pyproject_install %pyproject_save_files sshtunnel %if %{with tests} %check %pytest %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %{_bindir}/sshtunnel %changelog * Tue Nov 09 2021 Major Hayden 0.4.0-3 - Switch to rpmautospec * Fri Jul 23 2021 Fedora Release Engineering 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 14 2021 Major Hayden 0.4.0-1 - Update to 0.4.0 * Fri Jun 04 2021 Python Maint 0.1.5-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering 0.1.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering 0.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok 0.1.5-2 - Rebuilt for Python 3.9 * Tue May 05 2020 Itamar Reis Peixoto 0.1.5-1 - initial import