diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 05:20:16 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 05:20:16 +0000 |
| commit | f18b3764926684dc95bfc81576d6c97b601383b8 (patch) | |
| tree | e28246aec0d04754da3816a71ebe9e997aeaf4d6 | |
| parent | a059f0134ef6aeeb82ebcbf339072f157d70f8ab (diff) | |
automatic import of python-nr-utils-re
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-nr-utils-re.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -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 © 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 © 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 © 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 @@ -0,0 +1 @@ +b5c390f8c55051533df73b20126e54c5 nr.utils.re-0.3.1.tar.gz |
