|
rdobuilder |
9dee3f |
%global srcname autopage
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
# Macros for pyproject (Fedora) vs. setup.py (CentOS)
|
|
rdobuilder |
9dee3f |
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 10
|
|
rdobuilder |
9dee3f |
%bcond_without pyproject
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%bcond_with pyproject
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
# Disable tests because of missing fixtures[streams]
|
|
rdobuilder |
9dee3f |
%bcond_with enable_tests
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
Name: python-%{srcname}
|
|
rdobuilder |
9dee3f |
Version: 0.5.2
|
|
rdobuilder |
9dee3f |
Release: 3%{?dist}
|
|
rdobuilder |
9dee3f |
Summary: A Python library to provide automatic paging for console output
|
|
rdobuilder |
9dee3f |
License: ASL 2.0
|
|
rdobuilder |
9dee3f |
URL: https://pypi.python.org/pypi/autopage
|
|
rdobuilder |
9dee3f |
Source0: %{pypi_source}
|
|
rdobuilder |
9dee3f |
Source1: setup.py
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
BuildArch: noarch
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%global _description %{expand:
|
|
rdobuilder |
9dee3f |
Autopage is a Python library to provide automatic paging for console output.}
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%description %_description
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%package -n python3-%{srcname}
|
|
rdobuilder |
9dee3f |
Summary: %{summary}
|
|
rdobuilder |
9dee3f |
BuildRequires: python3-devel
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%if %{with enable_tests}
|
|
rdobuilder |
9dee3f |
BuildRequires: %{py3_dist fixtures}
|
|
rdobuilder |
9dee3f |
BuildRequires: %{py3_dist fixtures[streams]}
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%description -n python3-%{srcname} %_description
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%prep
|
|
rdobuilder |
9dee3f |
%autosetup -n %{srcname}-%{version}
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
%generate_buildrequires
|
|
rdobuilder |
9dee3f |
%pyproject_buildrequires -t
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
cp %{SOURCE1} ./
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%build
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
%pyproject_wheel
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%py3_build
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%install
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
%pyproject_install
|
|
rdobuilder |
9dee3f |
%pyproject_save_files autopage
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%py3_install
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%check
|
|
rdobuilder |
9dee3f |
%if %{with enable_tests}
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
%tox
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%{python3} setup.py test
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%if %{with pyproject}
|
|
rdobuilder |
9dee3f |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
9dee3f |
%else
|
|
rdobuilder |
9dee3f |
%files -n python3-%{srcname}
|
|
rdobuilder |
9dee3f |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
rdobuilder |
9dee3f |
%{python3_sitelib}/%{srcname}/
|
|
rdobuilder |
9dee3f |
%endif
|
|
rdobuilder |
9dee3f |
%license LICENSE
|
|
rdobuilder |
9dee3f |
%doc README.md
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
%changelog
|
|
rdobuilder |
9dee3f |
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
|
|
rdobuilder |
9dee3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Wed Oct 25 2023 Zane Bitter <zaneb@fedoraproject.org> 0.5.2-2
|
|
rdobuilder |
9dee3f |
- Depend on fixtures[streams] directly
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Mon Oct 16 2023 Zane Bitter <zaneb@fedoraproject.org> 0.5.2-1
|
|
rdobuilder |
9dee3f |
- Fix tests with less v633
|
|
rdobuilder |
9dee3f |
- Fix test reliability
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-7
|
|
rdobuilder |
9dee3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 0.5.1-6
|
|
rdobuilder |
9dee3f |
- Rebuilt for Python 3.12
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Mon Jul 03 2023 Karolina Surma <ksurma@redhat.com> - 0.5.1-5
|
|
rdobuilder |
9dee3f |
- Add the missing test dependency on python-testtools
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
|
rdobuilder |
9dee3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
|
|
rdobuilder |
9dee3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.5.1-2
|
|
rdobuilder |
9dee3f |
- Rebuilt for Python 3.11
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri May 27 2022 Zane Bitter <zaneb@fedoraproject.org> 0.5.1-1
|
|
rdobuilder |
9dee3f |
- Update to v0.5.1 to fix test reliability
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jan 21 2022 Zane Bitter <zaneb@fedoraproject.org> 0.5.0-1
|
|
rdobuilder |
9dee3f |
- Update to v0.5.0
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
rdobuilder |
9dee3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Wed Oct 27 2021 Zane Bitter <zaneb@fedoraproject.org> 0.4.0-2
|
|
rdobuilder |
9dee3f |
- Update specfile to build for more distros
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Mon Jul 12 2021 Zane Bitter <zaneb@fedoraproject.org> 0.4.0-1
|
|
rdobuilder |
9dee3f |
- Update to v0.4.0
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jun 25 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.1-1
|
|
rdobuilder |
9dee3f |
- Update to v0.3.1 for easier packaging
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jun 25 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.0-2
|
|
rdobuilder |
9dee3f |
- Support building for EPEL
|
|
rdobuilder |
9dee3f |
|
|
rdobuilder |
9dee3f |
* Fri Jun 18 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.0-1
|
|
rdobuilder |
9dee3f |
- Initial build
|