From 841e06b732bf9c278b84efc57912d3afcae09865 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 14 May 2025 09:27:21 +0000 Subject: automatic import of python-backrefs --- .gitignore | 1 + python-backrefs.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 python-backrefs.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..6e2b79a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/backrefs-5.8.tar.gz diff --git a/python-backrefs.spec b/python-backrefs.spec new file mode 100644 index 0000000..eb73ae2 --- /dev/null +++ b/python-backrefs.spec @@ -0,0 +1,61 @@ +# Created by pyp2rpm-3.3.5 +%global pypi_name backrefs + +Name: python-%{pypi_name} +Version: 5.8 +Release: 1 +Summary: A wrapper around re and regex that adds additional back references + +License: MIT +URL: https://github.com/facelessuser/backrefs +Source0: %{pypi_source %{pypi_name} %{version}} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(regex) +BuildRequires: python3dist(setuptools) + +%description +Backrefs is a wrapper around Python's built-in Re and the 3rd party Regex +library. Backrefs adds various additional back references (and a couple other +features) that are known to some regular expression engines, but not to +Python's Re and/or Regex. The supported back references actually vary depending +on the regular expression engine being used as the engine may already have +support for some. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +Backrefs is a wrapper around Python's built-in Re and the 3rd party Regex +library. Backrefs adds various additional back references (and a couple other +features) that are known to some regular expression engines, but not to +Python's Re and/or Regex. The supported back references actually vary depending +on the regular expression engine being used as the engine may already have +support for some. + +%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypi_name} -i %{python3_sitelib}/%{pypi_name}-%{version}.dist-info extras} + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_build + + +%install +%pyproject_install + +%check +%pytest + +%files -n python3-%{pypi_name} +%license LICENSE.md +%doc README.md +%{python3_sitelib}/backrefs +%{python3_sitelib}/backrefs-*.dist-info/ + +%changelog +* Wed May 14 2025 Dongxing Wang - 5.8-1 +- Init package diff --git a/sources b/sources new file mode 100644 index 0000000..4b50c4b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d1e965149c7737a0bd4552854d190107 backrefs-5.8.tar.gz -- cgit v1.2.3