|
|
|
@ -1,74 +1,118 @@
|
|
|
|
|
%global pypi_name docopt
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 3;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: python-docopt
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 0.6.2
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Pythonic argument parser, that will make you smile
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/docopt/docopt
|
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
# PyPI tarball doesn't have tests
|
|
|
|
|
Source: %{url}/archive/%{version}/docopt-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# pytest 6.2+ support
|
|
|
|
|
Patch1: %{url}/pull/493.patch
|
|
|
|
|
Patch: %{url}/pull/493.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Isn't it awesome how optparse and argparse generate help messages based on your
|
|
|
|
|
code?!
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Isn't it awesome how optparse and argparse generate help messages
|
|
|
|
|
based on your code?!
|
|
|
|
|
Hell no! You know what's awesome? It's when the option parser is generated
|
|
|
|
|
based on the beautiful help message that you write yourself! This way you
|
|
|
|
|
don't need to write this stupid repeatable parser-code, and instead can write
|
|
|
|
|
only the help message--the way you want it.}
|
|
|
|
|
|
|
|
|
|
Hell no! You know what's awesome? It's when the option parser is
|
|
|
|
|
generated based on the beautiful help message that you write yourself!
|
|
|
|
|
This way you don't need to write thisstupid repeatable parser-code,
|
|
|
|
|
and instead can write only the help message--*the way you want it*.
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-docopt
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
Isn't it awesome how optparse and argparse generate help messages
|
|
|
|
|
based on your code?!
|
|
|
|
|
|
|
|
|
|
Hell no! You know what's awesome? It's when the option parser is
|
|
|
|
|
generated based on the beautiful help message that you write yourself!
|
|
|
|
|
This way you don't need to write thisstupid repeatable parser-code,
|
|
|
|
|
and instead can write only the help message--*the way you want it*.
|
|
|
|
|
%description -n python3-docopt %{_description}
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
%autosetup -n docopt-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
# A stopgap measure to work with pytest 6.0.
|
|
|
|
|
# This will no longer work with pytest 6.1.
|
|
|
|
|
echo "[pytest]" >> tox.ini
|
|
|
|
|
echo "filterwarnings =" >> tox.ini
|
|
|
|
|
echo " ignore::pytest.PytestDeprecationWarning" >> tox.ini
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files docopt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
py.test-%{python3_version} -v
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
|
|
|
|
|
%files -n python3-docopt -f %{pyproject_files}
|
|
|
|
|
%license LICENSE-MIT
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}.py
|
|
|
|
|
%{python3_sitelib}/__pycache__/%{pypi_name}.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.6.2-21
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.6.2-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.6.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1:0.6.2-2
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Wed Mar 06 2024 Carl George <carlwgeorge@fedoraproject.org> - 1:0.6.2-1
|
|
|
|
|
- Switch back to the old docopt upstream
|
|
|
|
|
- Related: rhbz#2267060
|
|
|
|
|
|
|
|
|
|
* Sat Mar 02 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.9.0-1
|
|
|
|
|
- Switch to docopt-ng upstream rhbz#2267060
|
|
|
|
|
- Convert to pyproject macros
|
|
|
|
|
- Confirmed SPDX license identifier
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-29
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-28
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-27
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.6.2-26
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-25
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.2-23
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-21
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
@ -174,3 +218,4 @@ py.test-%{python3_version} -v
|
|
|
|
|
* Mon Jan 14 2013 Martin Sivak <msivak@redhat.com> - 0.5.0-1
|
|
|
|
|
- Initial release
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|