]> git.pld-linux.org Git - packages/binwalk.git/blame - binwalk.spec
- add "BuildArch: noarch"
[packages/binwalk.git] / binwalk.spec
CommitLineData
789bf746
AM
1# TODO:
2# - split library into subpackage?
3#
4%define module binwalk
17e8446a
TP
5Summary: Binary image analyze tool
6Name: binwalk
789bf746 7Version: 2.1.1
0883814e 8Release: 3
17e8446a
TP
9License: MIT
10Group: Applications/Development
789bf746
AM
11Source0: https://github.com/devttys0/binwalk/archive/v%{version}.tar.gz
12# Source0-md5: e5015a8d0eff287eda8c4afeeca89ed6
13URL: https://github.com/devttys0/binwalk
14%if %{with python3}
15BuildRequires: python3-modules
16BuildRequires: python3-setuptools
17%endif
17e8446a 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0883814e 19BuildArch: noarch
17e8446a
TP
20
21%description
789bf746
AM
22Binwalk is a tool for searching a given binary image for embedded
23files and executable code. Specifically, it is designed for
24identifying files and code embedded inside of firmware images. Binwalk
25uses the libmagic library, so it is compatible with magic signatures
26created for the Unix file utility.
17e8446a
TP
27
28Binwalk also includes a custom magic signature file which contains
29improved signatures for files that are commonly found in firmware
30images such as compressed/archived files, firmware headers, Linux
789bf746 31kernels, 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
40rm -rf $RPM_BUILD_ROOT
41
789bf746 42%py3_install
17e8446a
TP
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
789bf746
AM
49%doc API.md README.md
50%attr(755,root,root) %{_bindir}/binwalk
51%{py3_sitescriptdir}/%{module}
52%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
53
This page took 0.050664 seconds and 4 git commands to generate.