From 1448d52a306997a11c84a8d50748e39c6cc5bf48c95e07455aa98680f1d71921 Mon Sep 17 00:00:00 2001 From: Boris Manojlovic Date: Fri, 25 Sep 2020 18:40:23 +0000 Subject: [PATCH] Accepting request 837806 from home:mnhauke - Create (via help2man) and package manpage - Recommend more unpacking programs * capstone, cramfs-tools, cramfsswap, jefferson, lhasa, lzop, sasquatch, sleuthkit, squashfs, srecord, ubi_reader, yaffshiv OBS-URL: https://build.opensuse.org/request/show/837806 OBS-URL: https://build.opensuse.org/package/show/devel:tools/binwalk?expand=0&rev=19 --- binwalk.changes | 8 ++++++++ binwalk.spec | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/binwalk.changes b/binwalk.changes index 8a6ccd1..1232599 100644 --- a/binwalk.changes +++ b/binwalk.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Sep 25 16:08:57 UTC 2020 - Martin Hauke + +- Create (via help2man) and package manpage +- Recommend more unpacking programs + * capstone, cramfs-tools, cramfsswap, jefferson, lhasa, lzop, + sasquatch, sleuthkit, squashfs, srecord, ubi_reader, yaffshiv + ------------------------------------------------------------------- Thu Feb 6 19:05:14 UTC 2020 - Klaus Kämpf diff --git a/binwalk.spec b/binwalk.spec index 1c16ad7..2d3b2af 100644 --- a/binwalk.spec +++ b/binwalk.spec @@ -24,6 +24,7 @@ License: MIT URL: https://github.com/devttys0/binwalk Source: https://github.com/devttys0/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes +BuildRequires: help2man BuildRequires: python-rpm-macros BuildRequires: python3-curses BuildRequires: python3-setuptools @@ -34,10 +35,22 @@ Requires: python3-curses Requires: ssdeep Recommends: bzip2 Recommends: cabextract +Recommends: capstone Recommends: cpio +Recommends: cramfs-tools +Recommends: cramfsswap Recommends: gzip +Recommends: jefferson +Recommends: lhasa +Recommends: lzop +Recommends: sasquatch +Recommends: sleuthkit +Recommends: squashfs +Recommends: srecord +Recommends: ubi_reader Recommends: unrar Recommends: xz +Recommends: yaffshiv Recommends: zlib Suggests: java BuildArch: noarch @@ -60,6 +73,7 @@ bootloaders, filesystems, etc. %prep %setup -q +sed -i -e '/^#!\//, 1d' src/binwalk/plugins/hilink.py %build %python3_build @@ -67,11 +81,16 @@ bootloaders, filesystems, etc. %install %python3_install chmod 644 API.md +export PYTHONPATH=%{buildroot}%{python3_sitelib} +help2man %{buildroot}/%{_bindir}/binwalk --no-discard-stderr --version-string="%{version}" --no-info > binwalk.1 +install -Dpm 0644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1 +%fdupes %{buildroot}%{python3_sitelib} %files %license LICENSE %doc API.md %{_bindir}/%{name} +%{_mandir}/man1/binwalk.1%{?ext_man} %{python3_sitelib}/%{name}/ %{python3_sitelib}/%{name}-*