b7bed8a
# Created by pyp2rpm-3.3.2
b7bed8a
%global pypi_name portend
1da8d22
# theres a dependency resolution issue with
1da8d22
# sphinx to build docs. Turning it off for now
1da8d22
%global with_docs 0
e09cbb5
%{?python_enable_dependency_generator}
b7bed8a
b7bed8a
Name:           python-%{pypi_name}
0373477
Version:        3.2.0
a17fa7f
Release:        4%{?dist}
b7bed8a
Summary:        TCP port monitoring utilities
b7bed8a
b7bed8a
License:        MIT
b7bed8a
URL:            https://github.com/jaraco/portend
b7bed8a
Source0:        %{pypi_source}
b7bed8a
BuildArch:      noarch
b7bed8a
 
1da8d22
BuildRequires:  python3-devel
1da8d22
BuildRequires:  python3-pytest
1da8d22
%generate_buildrequires
1da8d22
%pyproject_buildrequires
1da8d22
b7bed8a
%description
b7bed8a
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
b7bed8a
momentous or calamitous) is likely to happen.
b7bed8a
b7bed8a
%package -n python3-%{pypi_name}
b7bed8a
Summary:        portend documentation
b7bed8a
b7bed8a
%description -n python3-%{pypi_name}
b7bed8a
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
b7bed8a
momentous or calamitous) is likely to happen.
b7bed8a
b7bed8a
%if 0%{?with_docs}
e423ef7
%package -n python-%{pypi_name}-doc
b7bed8a
Summary:        portend documentation
b7bed8a
21834b7
BuildRequires:  python3dist(jaraco-packaging) >= 3.2
1da8d22
BuildRequires:  python3dist(pip)
21834b7
BuildRequires:  python3dist(rst-linker) >= 1.9
b7bed8a
BuildRequires:  python3dist(sphinx)
1da8d22
BuildRequires:  python3dist(tox)
df9cbe0
BuildRequires:  python3-more-itertools
b7bed8a
e423ef7
%description -n python-%{pypi_name}-doc
b7bed8a
Documentation for portend
b7bed8a
%endif
b7bed8a
b7bed8a
%prep
b7bed8a
%autosetup -n %{pypi_name}-%{version}
a7e366f
b7bed8a
%build
1da8d22
%pyproject_wheel
b7bed8a
b7bed8a
%if 0%{?with_docs}
b7bed8a
# generate html docs 
b7bed8a
PYTHONPATH=${PWD} sphinx-build-3 docs html
b7bed8a
# remove the sphinx-build leftovers
b7bed8a
rm -rf html/.{doctrees,buildinfo}
b7bed8a
%endif
b7bed8a
b7bed8a
%install
1da8d22
%pyproject_install
b7bed8a
b7bed8a
%check
df9cbe0
%if 0%{?el8}
df9cbe0
# disable flake8 in the tests, need a newer version of pytest (3.5) which is not
df9cbe0
# available on EL8, and is pulled in by python-pytest-flake8.
df9cbe0
sed -i 's/ --flake8//' pytest.ini
df9cbe0
%endif
b7bed8a
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
b7bed8a
b7bed8a
%files -n python3-%{pypi_name}
b7bed8a
%license LICENSE
b7bed8a
%doc README.rst
b7bed8a
%{python3_sitelib}/__pycache__/*
b7bed8a
%{python3_sitelib}/%{pypi_name}.py
1da8d22
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info
b7bed8a
b7bed8a
%if 0%{?with_docs}
b7bed8a
%files -n python-%{pypi_name}-doc
b7bed8a
%doc html
b7bed8a
%license LICENSE
b7bed8a
%endif
b7bed8a
b7bed8a
%changelog
a17fa7f
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
a17fa7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a17fa7f
c791aac
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
c791aac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c791aac
145f627
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
145f627
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
145f627
0373477
* Mon Jul 10 2023 Dan Radez <dradez@redhat.com> - 3.2.0-1
0373477
- update to 3.2.0 rhbz#2218397
0373477
738666e
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 3.1.0-9
738666e
- Rebuilt for Python 3.12
738666e
60312b0
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-8
60312b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
60312b0
fcf46d3
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-7
fcf46d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
fcf46d3
adb77d6
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.1.0-6
adb77d6
- Rebuilt for Python 3.11
adb77d6
4900bf9
* Mon Apr 04 2022 Dan Radez <dradez@redhat.com> - 3.1.0-5
1da8d22
- Turning off docs build. There's an issue with sphinx deps resolution
1da8d22
- switching to pyproject macros
9af24b2
- Fixes: rhbz#2069669
1da8d22
1da8d22
* Wed Feb 09 2022 Dan Radez <dradez@redhat.com> - 3.1.0-3
cce6315
- Don't remove egginfo
cce6315
1a1ee08
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
1a1ee08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1a1ee08
480075d
* Mon Dec 06 2021 Dan radez <dradez@redhat.com> - 3.1.0-1
480075d
- update to 3.1.0
480075d
1d86758
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3
1d86758
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1d86758
3385264
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.7.1-2
3385264
- Rebuilt for Python 3.10
3385264
625c83e
* Mon Feb 15 2021 Dan radez <dradez@redhat.com> - 2.7.1-1
625c83e
- update to 2.7.1
625c83e
60ed960
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
60ed960
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
60ed960
5ac0c04
* Wed Dec 09 2020 Dan Radez <dradez@redhat.com> - 2.7.0-1
5ac0c04
- update to 2.7
5ac0c04
70a168b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-4
70a168b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70a168b
93e197a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6-3
93e197a
- Rebuilt for Python 3.9
93e197a
86c0571
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
86c0571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
86c0571
e108018
* Tue Nov 05 2019 Dan Radez <dradez@redhat.com> - 2.6-1
e108018
- update to 2.6
d336e8e
- reenable flake8
d336e8e
- add coverage build dep
e108018
9022707
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5-4
9022707
- Rebuilt for Python 3.8.0rc1 (#1748018)
9022707
311580e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5-3
311580e
- Rebuilt for Python 3.8
311580e
04acc3a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
04acc3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
04acc3a
e423ef7
* Tue Jun 11 2019 Dan Radez <dradez@redhat.com> - 2.5-1
e423ef7
- Update to 2.5
e423ef7
b7bed8a
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.3-1
b7bed8a
- Initial package.