From 37db6ae3b882c5fedef10afb0e2bad1c812894d1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 17:12:02 +0000 Subject: automatic import of python-ssdeep --- .gitignore | 1 + python-ssdeep.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 python-ssdeep.spec create mode 100644 sources 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 - 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 -- cgit v1.2.3