%global pypi_name port-for
%global name_with_underscore port_for
Name: python-%{pypi_name}
Version: 0.6.1
Release: 3%{?dist}
Summary: Utility that helps with local TCP ports management
License: MIT
URL: https://github.com/kmike/port-for/
Source0: https://github.com/kmike/port-for/archive/v%{version}.tar.gz
# https://github.com/kmike/port-for/pull/39
Patch0: 0001-Remove-dep-on-mock-as-is-part-of-python-3.6.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
%description
It can find an unused TCP local host port and remember the association.
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name}
It can find an unused TCP local host port and remember the association.
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r -x tests
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{name_with_underscore}
%check
%pytest --no-cov
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGES.rst README.rst
%license LICENSE.txt
%{_bindir}/%{pypi_name}
%changelog
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Aug 10 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 0.6.1-2
- Changes based on #1991096 review
* Fri Aug 06 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 0.6.1-1
- Version update to 0.6.1
* Mon Feb 25 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4-8
- Subpackage python2-port-for has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4-5
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4-3
- Fix creation of python2- subpackage
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 21 2017 Sundeep Anand <suanand@redhat.com> - 0.4-1
- Update to upstream version 0.4
* Wed Jan 27 2016 Sundeep Anand <suanand@redhat.com> - 0.3.1-2
- Fix binary shebang in python3 package
* Fri Jan 22 2016 Sundeep Anand <suanand@redhat.com> - 0.3.1-1
- Initial RPM Package