summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 19:39:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 19:39:53 +0000
commit2e229e5983a9e964f8c551f6a74e6adebaa9d1aa (patch)
tree985105243ad8457ccd0d9f1b8b29e0a843fe331b
parentd686b51b8f0474a358f56bd2f7c1f7ba607b0290 (diff)
automatic import of python-pyre2
-rw-r--r--.gitignore1
-rw-r--r--python-pyre2.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cb67792 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyre2-0.3.6.tar.gz
diff --git a/python-pyre2.spec b/python-pyre2.spec
new file mode 100644
index 0000000..b798061
--- /dev/null
+++ b/python-pyre2.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyre2
+Version: 0.3.6
+Release: 1
+Summary: Python wrapper for Google\'s RE2 using Cython
+License: BSD
+URL: https://github.com/andreasvc/pyre2
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/71/e38ed302e3a01df2e233e77802e7ec92436621893a12824ad2f0e388dca0/pyre2-0.3.6.tar.gz
+
+Requires: python3-regex
+Requires: python3-pytest
+
+%description
+
+
+%package -n python3-pyre2
+Summary: Python wrapper for Google\'s RE2 using Cython
+Provides: python-pyre2
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pyre2
+
+
+%package help
+Summary: Development documents and examples for pyre2
+Provides: python3-pyre2-doc
+%description help
+
+
+%prep
+%autosetup -n pyre2-0.3.6
+
+%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-pyre2 -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..276ad7e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0a82005f47a2c4a34f2147594422228a pyre2-0.3.6.tar.gz