summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 07:12:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 07:12:57 +0000
commitb7e0bfdbe47fe5bee57363cbde78f470311804d5 (patch)
tree2616d117937972e4dd2630c436f149a651427215
parent27b79fd2e172866d63cf876b57fd103635189919 (diff)
automatic import of python-pyssdeep
-rw-r--r--.gitignore1
-rw-r--r--python-pyssdeep.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..75710eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyssdeep-1.0.0.tar.gz
diff --git a/python-pyssdeep.spec b/python-pyssdeep.spec
new file mode 100644
index 0000000..9d52b0b
--- /dev/null
+++ b/python-pyssdeep.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyssdeep
+Version: 1.0.0
+Release: 1
+Summary: The python-wrapper for ssdeep
+License: MIT
+URL: https://github.com/drobotun/pyssdeep/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/12/9e/2d9a39fa9071dd764c00bbd31acc51d5fc5b9d4b0eec3596c791a801ade8/pyssdeep-1.0.0.tar.gz
+BuildArch: noarch
+
+
+%description
+This package is a Python wrapper for `ssdeep <https://ssdeep-project.github.io/ssdeep/index.html>`_ by Jesse Kornblum, which is a
+library for computing Context Triggered Piecewise Hashes (CTPH).
+
+%package -n python3-pyssdeep
+Summary: The python-wrapper for ssdeep
+Provides: python-pyssdeep
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyssdeep
+This package is a Python wrapper for `ssdeep <https://ssdeep-project.github.io/ssdeep/index.html>`_ by Jesse Kornblum, which is a
+library for computing Context Triggered Piecewise Hashes (CTPH).
+
+%package help
+Summary: Development documents and examples for pyssdeep
+Provides: python3-pyssdeep-doc
+%description help
+This package is a Python wrapper for `ssdeep <https://ssdeep-project.github.io/ssdeep/index.html>`_ by Jesse Kornblum, which is a
+library for computing Context Triggered Piecewise Hashes (CTPH).
+
+%prep
+%autosetup -n pyssdeep-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-pyssdeep -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 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..0e47c4e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+46015a39d4684043cb7ae62f63bfbf50 pyssdeep-1.0.0.tar.gz