summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 03:36:17 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 03:36:17 +0000
commit89f620e2881e47875cedd9935435b2fd3088fef9 (patch)
treeeeba3cf6b6b52b902249840d43f14bc21d68d2c5
parent2768035a8238160f82f74e286ad10ff9198d1002 (diff)
automatic import of python-cysignals
-rw-r--r--.gitignore1
-rw-r--r--python-cysignals.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bcfd474 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cysignals-1.11.2.tar.gz
diff --git a/python-cysignals.spec b/python-cysignals.spec
new file mode 100644
index 0000000..71dc82f
--- /dev/null
+++ b/python-cysignals.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cysignals
+Version: 1.11.2
+Release: 1
+Summary: Interrupt and signal handling for Cython
+License: GNU Lesser General Public License, version 3 or later
+URL: https://github.com/sagemath/cysignals
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9e/1b/110010626a25650d6c87068f28749a7f82a04c7a8c8f3e24c67f3dfafd17/cysignals-1.11.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-Cython
+
+%description
+
+
+%package -n python3-cysignals
+Summary: Interrupt and signal handling for Cython
+Provides: python-cysignals
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cysignals
+
+
+%package help
+Summary: Development documents and examples for cysignals
+Provides: python3-cysignals-doc
+%description help
+
+
+%prep
+%autosetup -n cysignals-1.11.2
+
+%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-cysignals -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.11.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2d47eb7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+424a762509abdd80a7b55d302b83aa6e cysignals-1.11.2.tar.gz