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