summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-05-14 09:27:21 +0000
committerCoprDistGit <infra@openeuler.org>2025-05-14 09:27:21 +0000
commit841e06b732bf9c278b84efc57912d3afcae09865 (patch)
tree2210959ebdf4c5d303922ad06060e369933e15ed
parent7363e656dab34c5daa2d6e6cbe45a9216342bac1 (diff)
automatic import of python-backrefs
-rw-r--r--.gitignore1
-rw-r--r--python-backrefs.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
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 <dongxing.wang_a@thundersoft.com> - 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