|
|
bf5794a |
|
|
|
a229517 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
fafe6f2 |
# we are excluding some BRs from automatic generator
|
|
|
fafe6f2 |
%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order sphinx coverage stestr
|
|
|
aa03494 |
|
|
|
aa03494 |
%global modname cliff
|
|
|
aa03494 |
|
|
|
b4bd580 |
%global common_desc \
|
|
|
b4bd580 |
cliff is a framework for building command line programs. It uses setuptools \
|
|
|
b4bd580 |
entry points to provide subcommands, output formatters, and other \
|
|
|
b4bd580 |
extensions. \
|
|
|
b4bd580 |
\
|
|
|
b4bd580 |
Documentation for cliff is hosted on readthedocs.org at \
|
|
|
b4bd580 |
http://readthedocs.org/docs/cliff/en/latest/
|
|
|
b4bd580 |
|
|
|
b4bd580 |
%global common_desc_tests This package contains tests for the python cliff library.
|
|
|
b4bd580 |
|
|
|
a229517 |
Name: python-%{modname}
|
|
|
fafe6f2 |
Version: 4.3.0
|
|
|
1727dbc |
Release: 3%{?dist}
|
|
|
aa03494 |
Summary: Command Line Interface Formulation Framework
|
|
|
aa03494 |
|
|
|
bf5794a |
Group: Development/Libraries
|
|
|
fafe6f2 |
License: Apache-2.0
|
|
|
a229517 |
URL: https://pypi.io/pypi/cliff
|
|
|
b4bd580 |
Source0: https://pypi.io/packages/source/c/cliff/cliff-%{version}.tar.gz
|
|
|
aa03494 |
|
|
|
aa03494 |
BuildArch: noarch
|
|
|
aa03494 |
|
|
|
c47844d |
%package -n python3-%{modname}
|
|
|
bf5794a |
Summary: Command Line Interface Formulation Framework
|
|
|
c47844d |
|
|
|
c47844d |
BuildRequires: python3-devel
|
|
|
fafe6f2 |
BuildRequires: pyproject-rpm-macros
|
|
|
c47844d |
%description -n python3-%{modname}
|
|
|
b4bd580 |
%{common_desc}
|
|
|
a229517 |
|
|
|
c47844d |
%package -n python3-%{modname}-tests
|
|
|
a229517 |
Summary: Command Line Interface Formulation Framework
|
|
|
bf5794a |
|
|
|
a229517 |
BuildRequires: bash
|
|
|
a229517 |
BuildRequires: which
|
|
|
fafe6f2 |
# cliff imports docutils in code which is not in requirements.txt and it is
|
|
|
fafe6f2 |
# needed to run tests.
|
|
|
c47844d |
BuildRequires: python3-docutils
|
|
|
c47844d |
Requires: python3-%{modname} = %{version}-%{release}
|
|
|
a229517 |
Requires: bash
|
|
|
a229517 |
Requires: which
|
|
|
fafe6f2 |
# Keep manual runtime reqs in -tests subpackages for now
|
|
|
c47844d |
Requires: python3-subunit
|
|
|
c47844d |
Requires: python3-testtools
|
|
|
c47844d |
Requires: python3-testscenarios
|
|
|
c47844d |
Requires: python3-PyYAML
|
|
|
c47844d |
|
|
|
c47844d |
%description -n python3-%{modname}-tests
|
|
|
b4bd580 |
%{common_desc_tests}
|
|
|
b4bd580 |
|
|
|
b4bd580 |
%description
|
|
|
b4bd580 |
%{common_desc}
|
|
|
aa03494 |
|
|
|
aa03494 |
%prep
|
|
|
7ec3534 |
%setup -q -n %{modname}-%{upstream_version}
|
|
|
aa03494 |
|
|
|
a229517 |
# Remove bundled egg info
|
|
|
a229517 |
rm -rf *.egg-info
|
|
|
2256126 |
|
|
|
fafe6f2 |
sed -i /.*-c{env:TOX_CONSTRAINTS_FILE.*/d tox.ini
|
|
|
fafe6f2 |
sed -i /^minversion.*/d tox.ini
|
|
|
fafe6f2 |
sed -i /^requires.*virtualenv.*/d tox.ini
|
|
|
fafe6f2 |
|
|
|
fafe6f2 |
# Exclude some bad-known BRs
|
|
|
fafe6f2 |
for pkg in %{excluded_brs};do
|
|
|
fafe6f2 |
for reqfile in doc/requirements.txt test-requirements.txt; do
|
|
|
fafe6f2 |
if [ -f $reqfile ]; then
|
|
|
fafe6f2 |
sed -i /^${pkg}.*/d $reqfile
|
|
|
fafe6f2 |
fi
|
|
|
fafe6f2 |
done
|
|
|
fafe6f2 |
done
|
|
|
fafe6f2 |
|
|
|
fafe6f2 |
# Avoid sphinx as BR as we are not building doc
|
|
|
fafe6f2 |
rm cliff/tests/test_sphinxext.py
|
|
|
fafe6f2 |
|
|
|
fafe6f2 |
%generate_buildrequires
|
|
|
fafe6f2 |
%pyproject_buildrequires -t -e %{default_toxenv}
|
|
|
fafe6f2 |
|
|
|
aa03494 |
%build
|
|
|
fafe6f2 |
%pyproject_wheel
|
|
|
aa03494 |
|
|
|
aa03494 |
%install
|
|
|
fafe6f2 |
%pyproject_install
|
|
|
aa03494 |
|
|
|
aa03494 |
%check
|
|
|
fafe6f2 |
# stestr depends on cliff which introduces cyclic dep so i'm avoiding stestr.
|
|
|
c47844d |
PYTHON=python3 python3 setup.py test
|
|
|
aa03494 |
|
|
|
fafe6f2 |
|
|
|
c47844d |
%files -n python3-%{modname}
|
|
|
b92f323 |
%license LICENSE
|
|
|
26e4595 |
%doc doc/ README.rst ChangeLog AUTHORS CONTRIBUTING.rst
|
|
|
c47844d |
%{python3_sitelib}/%{modname}
|
|
|
fafe6f2 |
%{python3_sitelib}/%{modname}-*.dist-info
|
|
|
c47844d |
%exclude %{python3_sitelib}/%{modname}/tests
|
|
|
a229517 |
|
|
|
c47844d |
%files -n python3-%{modname}-tests
|
|
|
c47844d |
%{python3_sitelib}/%{modname}/tests
|
|
|
aa03494 |
|
|
|
aa03494 |
%changelog
|
|
|
1727dbc |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-3
|
|
|
1727dbc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
1727dbc |
|
|
|
bc3fb64 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
|
|
|
bc3fb64 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
bc3fb64 |
|
|
|
fafe6f2 |
* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 4.3.0-1
|
|
|
fafe6f2 |
- Update to upstream version 4.3.0
|
|
|
fafe6f2 |
|
|
|
892ecdd |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-4
|
|
|
892ecdd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
892ecdd |
|
|
|
4d4cf06 |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 4.2.0-3
|
|
|
4d4cf06 |
- Rebuilt for Python 3.12
|
|
|
4d4cf06 |
|
|
|
0b2827b |
* Tue Jun 06 2023 Joel Capitao <jcapitao@redhat.com> 4.2.0-2
|
|
|
0b2827b |
- Remove mock and testrepository BR
|
|
|
0b2827b |
|
|
|
7ec3534 |
* Fri Apr 21 2023 Karolina Kula <kkula@redhat.com> 4.2.0-1
|
|
|
7ec3534 |
- Update to upstream version 4.2.0
|
|
|
7ec3534 |
|
|
|
feadd8c |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
|
|
|
feadd8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
feadd8c |
|
|
|
41515d7 |
* Wed Sep 28 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 4.0.0-2
|
|
|
41515d7 |
- Fix missing importlib_metadata runtime dependency
|
|
|
41515d7 |
|
|
|
4c18ae4 |
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 4.0.0-1
|
|
|
4c18ae4 |
- Update to 4.0.0. Fixes rhbz#2117683
|
|
|
4c18ae4 |
|
|
|
56fae2a |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-4
|
|
|
56fae2a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
56fae2a |
|
|
|
5676d60 |
* Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.10.1-3
|
|
|
5676d60 |
- Rebuilt for pyparsing-3.0.9
|
|
|
5676d60 |
|
|
|
31a2b6e |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 3.10.1-2
|
|
|
31a2b6e |
- Rebuilt for Python 3.11
|
|
|
31a2b6e |
|
|
|
de1d038 |
* Thu May 19 2022 Joel Capitao <jcapitao@redhat.com> 3.10.1-1
|
|
|
de1d038 |
- Update to upstream version 3.10.1
|
|
|
de1d038 |
|
|
|
7ba1981 |
* Thu Jan 27 2022 Joel Capitao <jcapitao@redhat.com> - 3.10.0-3
|
|
|
7ba1981 |
- Requires autopage to fix F36/FTBFS
|
|
|
7ba1981 |
|
|
|
8780985 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-2
|
|
|
8780985 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
8780985 |
|
|
|
11aaa2e |
* Sat Jan 08 2022 Kevin Fenzi <kevin@scrye.com> - 3.10.0-1
|
|
|
11aaa2e |
- Update to 3.10.0. Fixes rhbz#2026719
|
|
|
11aaa2e |
|
|
|
5872611 |
* Sat Nov 06 2021 Kevin Fenzi <kevin@scrye.com> - 3.9.0-1
|
|
|
5872611 |
- Update to 3.9.1. Fixes rhbz#1997441
|
|
|
5872611 |
|
|
|
ce1b242 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
|
|
|
ce1b242 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
ce1b242 |
|
|
|
bf82007 |
* Sat Jun 19 2021 Kevin Fenzi <kevin@scrye.com> - 3.8.0-1
|
|
|
bf82007 |
- Update to 3.8.0. Fixes rhbz#1965278
|
|
|
bf82007 |
|
|
|
6a073f7 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.7.0-2
|
|
|
6a073f7 |
- Rebuilt for Python 3.10
|
|
|
6a073f7 |
|
|
|
f0b360b |
* Thu Feb 18 2021 Kevin Fenzi <kevin@scrye.com> - 3.7.0-1
|
|
|
f0b360b |
- Update to 3.7.0. Fixes rhbz#1929150
|
|
|
f0b360b |
|
|
|
cf15d97 |
* Thu Jan 28 2021 Kevin Fenzi <kevin@scrye.com> - 3.6.0-1
|
|
|
cf15d97 |
- Update to 3.6.0. Fixes rhbz#1917619
|
|
|
cf15d97 |
|
|
|
e11a82f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
|
|
|
e11a82f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
e11a82f |
|
|
|
7e5cdab |
* Fri Jan 01 2021 Kevin Fenzi <kevin@scrye.com> - 3.5.0-1
|
|
|
7e5cdab |
- Update to 3.5.0. Fixes rhbz#1896811
|
|
|
7e5cdab |
|
|
|
45e3d1c |
* Sun Sep 27 2020 Kevin Fenzi <kevin@scrye.com> - 3.4.0-1
|
|
|
45e3d1c |
- Update to 3.4.0. Fixes #1783966
|
|
|
45e3d1c |
|
|
|
667499c |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
|
|
|
667499c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
667499c |
|
|
|
c47844d |
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 3.1.0-1
|
|
|
c47844d |
- Update to upstream version 3.1.0
|
|
|
c47844d |
|
|
|
5d24695 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.16.0-4
|
|
|
5d24695 |
- Rebuilt for Python 3.9
|
|
|
5d24695 |
|
|
|
46a08c4 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.16.0-3
|
|
|
46a08c4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
46a08c4 |
|
|
|
bf5794a |
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 2.16.0-2
|
|
|
bf5794a |
- Update to upstream version 2.16.0
|
|
|
bf5794a |
|
|
|
e44edf1 |
* Sun Oct 06 2019 Kevin Fenzi <kevin@scrye.com> - 2.16.0-1
|
|
|
e44edf1 |
- Update to 2.16.0. Fixes bug #1749959
|
|
|
e44edf1 |
|
|
|
c20e350 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.15.0-4
|
|
|
c20e350 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
c20e350 |
|
|
|
7c18f56 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.15.0-3
|
|
|
7c18f56 |
- Rebuilt for Python 3.8
|
|
|
7c18f56 |
|
|
|
225273c |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.15.0-2
|
|
|
225273c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
225273c |
|
|
|
6f31261 |
* Sat Jun 29 2019 Kevin Fenzi <kevin@scrye.com> - 2.15.0-1
|
|
|
6f31261 |
- Update to 2.15.0. Fixed bug #1686683
|
|
|
6f31261 |
|
|
|
b4bd580 |
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 2.14.1-1
|
|
|
b4bd580 |
- Update to 2.14.1
|
|
|
aa03494 |
|