]>
Commit | Line | Data |
---|---|---|
789bf746 AM |
1 | # TODO: |
2 | # - split library into subpackage? | |
3 | # | |
4 | %define module binwalk | |
17e8446a TP |
5 | Summary: Binary image analyze tool |
6 | Name: binwalk | |
789bf746 | 7 | Version: 2.1.1 |
26ab43d6 | 8 | Release: 5 |
17e8446a | 9 | License: MIT |
060b59c6 | 10 | Group: Development |
789bf746 AM |
11 | Source0: https://github.com/devttys0/binwalk/archive/v%{version}.tar.gz |
12 | # Source0-md5: e5015a8d0eff287eda8c4afeeca89ed6 | |
13 | URL: https://github.com/devttys0/binwalk | |
14 | %if %{with python3} | |
15 | BuildRequires: python3-modules | |
16 | BuildRequires: python3-setuptools | |
17 | %endif | |
0883814e | 18 | BuildArch: noarch |
060b59c6 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17e8446a TP |
20 | |
21 | %description | |
789bf746 AM |
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. | |
17e8446a TP |
27 | |
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 | |
789bf746 | 31 | kernels, bootloaders, filesystems, etc. |
17e8446a TP |
32 | |
33 | %prep | |
34 | %setup -q | |
17e8446a TP |
35 | |
36 | %build | |
789bf746 | 37 | %py3_build %{?with_tests:test} |
17e8446a TP |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
789bf746 | 41 | %py3_install |
17e8446a TP |
42 | |
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
789bf746 AM |
48 | %doc API.md README.md |
49 | %attr(755,root,root) %{_bindir}/binwalk | |
50 | %{py3_sitescriptdir}/%{module} | |
51 | %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info | |
52 |