2 # - split library into subpackage?
5 Summary: Binary image analyze tool
11 Source0: https://github.com/devttys0/binwalk/archive/v%{version}.tar.gz
12 # Source0-md5: 6a7e53667b24f1cb92c29ec477cb4953
13 URL: https://github.com/devttys0/binwalk
15 BuildRequires: python3-modules
16 BuildRequires: python3-setuptools
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Binwalk is a tool for searching a given binary image for embedded
23 files and executable code. Specifically, it is designed for
24 identifying files and code embedded inside of firmware images. Binwalk
25 uses the libmagic library, so it is compatible with magic signatures
26 created for the Unix file utility.
28 Binwalk also includes a custom magic signature file which contains
29 improved signatures for files that are commonly found in firmware
30 images such as compressed/archived files, firmware headers, Linux
31 kernels, bootloaders, filesystems, etc.
37 %py3_build %{?with_tests:test}
40 rm -rf $RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(755,root,root) %{_bindir}/binwalk
50 %{py3_sitescriptdir}/%{module}
51 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info