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 --- python-backrefs.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 python-backrefs.spec (limited to 'python-backrefs.spec') 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 -- cgit v1.2.3