From 01937609faddfc523f4d0b46763395e52a6b542e Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 17:13:43 +0300 Subject: [PATCH] import python-docopt-ng-0.9.0-2.el10 --- .gitignore | 1 + .python-docopt-ng.metadata | 1 + SPECS/python-docopt-ng.spec | 85 +++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 .gitignore create mode 100644 .python-docopt-ng.metadata create mode 100644 SPECS/python-docopt-ng.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d46e1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/docopt_ng-0.9.0.tar.gz diff --git a/.python-docopt-ng.metadata b/.python-docopt-ng.metadata new file mode 100644 index 0000000..ab6df3e --- /dev/null +++ b/.python-docopt-ng.metadata @@ -0,0 +1 @@ +bad08d96d922d1c8e219f2f46bc4fa33875894de SOURCES/docopt_ng-0.9.0.tar.gz diff --git a/SPECS/python-docopt-ng.spec b/SPECS/python-docopt-ng.spec new file mode 100644 index 0000000..e47124d --- /dev/null +++ b/SPECS/python-docopt-ng.spec @@ -0,0 +1,85 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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-ng +Version: 0.9.0 +Release: %autorelease +Summary: Humane command line arguments parser +License: MIT +URL: https://github.com/jazzband/docopt-ng +Source: %{pypi_source docopt_ng} +BuildArch: noarch + +%global _description %{expand: +docopt-ng helps you create beautiful command-line interfaces. The option +parser is generated based on the docstring that is passed to docopt function. +docopt parses the usage pattern ("Usage: ...") and option descriptions (lines +starting with dash "-") and ensures that the program invocation matches the +usage pattern; it parses options, arguments and commands based on that. The +basic idea is that a good help message has all necessary information in it to +make a parser.} + + +%description %{_description} + + +%package -n python3-docopt-ng +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-pytest + +# This software is a fork of the original docopt. The fork switched from a +# python module (docopt.py) to a python package (docopt/__init__.py), so +# technically the rpm packages could be co-installable. However, they are not +# co-usable, because python code can only import one or the other. For this +# reason, we will go ahead and conflict with other rpm package. +Conflicts: python3-docopt + + +%description -n python3-docopt-ng %{_description} + + +%prep +%autosetup -n docopt_ng-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files docopt + + +%check +%pytest + + +%files -n python3-docopt-ng -f %{pyproject_files} +%license LICENSE-MIT +%doc README.md + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.9.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Mar 07 2024 Carl George - 0.9.0-2 +- Conflict with python3-docopt + +* Wed Mar 06 2024 Carl George - 0.9.0-1 +- Initial package rhbz#2268249 +## END: Generated by rpmautospec