|
rdobuilder |
467222 |
%global srcname autopage
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
# Macros for pyproject (Fedora) vs. setup.py (CentOS)
|
|
rdobuilder |
467222 |
%if 0%{?fedora} >= 33
|
|
rdobuilder |
467222 |
%bcond_without pyproject
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%bcond_with pyproject
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
# Macros for disabling tests on CentOS 7
|
|
rdobuilder |
467222 |
%if 0%{?el7}
|
|
rdobuilder |
467222 |
%bcond_with enable_tests
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%bcond_without enable_tests
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
Name: python-%{srcname}
|
|
rdobuilder |
467222 |
Version: 0.5.1
|
|
rdobuilder |
467222 |
Release: 1%{?dist}
|
|
rdobuilder |
467222 |
Summary: A Python library to provide automatic paging for console output
|
|
rdobuilder |
467222 |
License: ASL 2.0
|
|
rdobuilder |
467222 |
URL: https://pypi.python.org/pypi/autopage
|
|
rdobuilder |
467222 |
Source0: %{pypi_source}
|
|
rdobuilder |
467222 |
Source1: setup.py
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
BuildArch: noarch
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%global _description %{expand:
|
|
rdobuilder |
467222 |
Autopage is a Python library to provide automatic paging for console output.}
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%description %_description
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%package -n python3-%{srcname}
|
|
rdobuilder |
467222 |
Summary: %{summary}
|
|
rdobuilder |
467222 |
BuildRequires: python3-devel
|
|
rdobuilder |
467222 |
BuildRequires: python3-pytest
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%if %{with enable_tests}
|
|
rdobuilder |
467222 |
BuildRequires: %{py3_dist fixtures}
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%description -n python3-%{srcname} %_description
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%prep
|
|
rdobuilder |
467222 |
%autosetup -n %{srcname}-%{version}
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
%generate_buildrequires
|
|
rdobuilder |
467222 |
%pyproject_buildrequires -e pep8,%{toxenv}
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
cp %{SOURCE1} ./
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%build
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
%pyproject_wheel
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%py3_build
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%install
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
%pyproject_install
|
|
rdobuilder |
467222 |
%pyproject_save_files autopage
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%py3_install
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%check
|
|
rdobuilder |
467222 |
%if %{with enable_tests}
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
%tox
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
pytest -s
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%if %{with pyproject}
|
|
rdobuilder |
467222 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
467222 |
%else
|
|
rdobuilder |
467222 |
%files -n python3-%{srcname}
|
|
rdobuilder |
467222 |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
rdobuilder |
467222 |
%{python3_sitelib}/%{srcname}/
|
|
rdobuilder |
467222 |
%endif
|
|
rdobuilder |
467222 |
%license LICENSE
|
|
rdobuilder |
467222 |
%doc README.md
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
%changelog
|
|
rdobuilder |
467222 |
* Fri May 27 2022 Zane Bitter <zaneb@fedoraproject.org> 0.5.1-1
|
|
rdobuilder |
467222 |
- Update to v0.5.1 to fix test reliability
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Fri Jan 21 2022 Zane Bitter <zaneb@fedoraproject.org> 0.5.0-1
|
|
rdobuilder |
467222 |
- Update to v0.5.0
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
rdobuilder |
467222 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Wed Oct 27 2021 Zane Bitter <zaneb@fedoraproject.org> 0.4.0-2
|
|
rdobuilder |
467222 |
- Update specfile to build for more distros
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Mon Jul 12 2021 Zane Bitter <zaneb@fedoraproject.org> 0.4.0-1
|
|
rdobuilder |
467222 |
- Update to v0.4.0
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Fri Jun 25 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.1-1
|
|
rdobuilder |
467222 |
- Update to v0.3.1 for easier packaging
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Fri Jun 25 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.0-2
|
|
rdobuilder |
467222 |
- Support building for EPEL
|
|
rdobuilder |
467222 |
|
|
rdobuilder |
467222 |
* Fri Jun 18 2021 Zane Bitter <zaneb@fedoraproject.org> 0.3.0-1
|
|
rdobuilder |
467222 |
- Initial build
|