summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 06:44:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 06:44:53 +0000
commitf8273dc2551d6fb1616853bd27c48f8d830615c7 (patch)
treea8be533e3fe6a6440827fafe43f198ba38c36bcf
parent89c3d1268cabab37ff260d47209180eeca1f70c3 (diff)
automatic import of python-pyzor
-rw-r--r--.gitignore1
-rw-r--r--python-pyzor.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c9150af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyzor-1.0.0.tar.gz
diff --git a/python-pyzor.spec b/python-pyzor.spec
new file mode 100644
index 0000000..e603fd0
--- /dev/null
+++ b/python-pyzor.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyzor
+Version: 1.0.0
+Release: 1
+Summary: networked spam-signature detection
+License: GPL
+URL: http://www.pyzor.org/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/9d/e38a18d8c932f397537cda0d03a606314611fe1ebd8b24ed8fdd4df23191/pyzor-1.0.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Pyzor is spam-blocking networked system that uses spam signatures
+to identify them.
+
+%package -n python3-pyzor
+Summary: networked spam-signature detection
+Provides: python-pyzor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyzor
+Pyzor is spam-blocking networked system that uses spam signatures
+to identify them.
+
+%package help
+Summary: Development documents and examples for pyzor
+Provides: python3-pyzor-doc
+%description help
+Pyzor is spam-blocking networked system that uses spam signatures
+to identify them.
+
+%prep
+%autosetup -n pyzor-1.0.0
+
+%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-pyzor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..76d0ad8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e77b1cd0afd3884e6f2aa585cb423b46 pyzor-1.0.0.tar.gz