summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 17:12:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 17:12:02 +0000
commit37db6ae3b882c5fedef10afb0e2bad1c812894d1 (patch)
tree7f67efffbaefcd7dea29322b38d6fd6d8c9481e2
parentd85b0f972ead6ca6ea992792fcdaf82e2c0b8f00 (diff)
automatic import of python-ssdeep
-rw-r--r--.gitignore1
-rw-r--r--python-ssdeep.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..651dfb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ssdeep-3.4.tar.gz
diff --git a/python-ssdeep.spec b/python-ssdeep.spec
new file mode 100644
index 0000000..01faaff
--- /dev/null
+++ b/python-ssdeep.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ssdeep
+Version: 3.4
+Release: 1
+Summary: Python wrapper for the ssdeep library
+License: LGPLv3+
+URL: http://github.com/DinoTools/python-ssdeep
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/d3/f17602a7dde1231d332f4067fdd421057ffe335c3bbc295e7ccfab769d95/ssdeep-3.4.tar.gz
+BuildArch: noarch
+
+
+%description
+This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context
+triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
+have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
+content and length.
+
+%package -n python3-ssdeep
+Summary: Python wrapper for the ssdeep library
+Provides: python-ssdeep
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ssdeep
+This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context
+triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
+have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
+content and length.
+
+%package help
+Summary: Development documents and examples for ssdeep
+Provides: python3-ssdeep-doc
+%description help
+This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context
+triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
+have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
+content and length.
+
+%prep
+%autosetup -n ssdeep-3.4
+
+%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-ssdeep -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 3.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..95b5a83
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8439f88b0f2942c5bc432b87685cee59 ssdeep-3.4.tar.gz