summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 05:20:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 05:20:16 +0000
commitf18b3764926684dc95bfc81576d6c97b601383b8 (patch)
treee28246aec0d04754da3816a71ebe9e997aeaf4d6
parenta059f0134ef6aeeb82ebcbf339072f157d70f8ab (diff)
automatic import of python-nr-utils-re
-rw-r--r--.gitignore1
-rw-r--r--python-nr-utils-re.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..23119c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nr.utils.re-0.3.1.tar.gz
diff --git a/python-nr-utils-re.spec b/python-nr-utils-re.spec
new file mode 100644
index 0000000..fa27f9c
--- /dev/null
+++ b/python-nr-utils-re.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-nr.utils.re
+Version: 0.3.1
+Release: 1
+Summary: This module provides some utility functions for applying regular expressions.
+License: MIT
+URL: https://git.niklasrosenstein.com/NiklasRosenstein/nr
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e6/30/2fa64f30c4b62dc50e3019ad53282b0cf6a96c8713c2bc4469ebfcc44ce0/nr.utils.re-0.3.1.tar.gz
+BuildArch: noarch
+
+
+%description
+<p align="center">Copyright &copy; 2020 Niklas Rosenstein</p>
+
+%package -n python3-nr.utils.re
+Summary: This module provides some utility functions for applying regular expressions.
+Provides: python-nr.utils.re
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-nr.utils.re
+<p align="center">Copyright &copy; 2020 Niklas Rosenstein</p>
+
+%package help
+Summary: Development documents and examples for nr.utils.re
+Provides: python3-nr.utils.re-doc
+%description help
+<p align="center">Copyright &copy; 2020 Niklas Rosenstein</p>
+
+%prep
+%autosetup -n nr.utils.re-0.3.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-nr.utils.re -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0a90ca0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b5c390f8c55051533df73b20126e54c5 nr.utils.re-0.3.1.tar.gz