2011-09-06 06:29:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: binwalk
|
2013-09-24 09:06:17 +00:00
|
|
|
Version: 1.2.1
|
2011-09-06 06:29:59 +00:00
|
|
|
Release: 0
|
|
|
|
License: MIT
|
|
|
|
Summary: Firmware Analysis Tool
|
|
|
|
Url: http://code.google.com/p/binwalk/
|
|
|
|
Group: Development/Tools/Debuggers
|
2012-10-30 13:13:25 +00:00
|
|
|
Source0: http://binwalk.googlecode.com/files/%{name}-%{version}.tar.gz
|
2013-09-24 09:06:17 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-magic
|
|
|
|
BuildRequires: python-matplotlib
|
|
|
|
BuildRequires: python-matplotlib-tk
|
|
|
|
Requires: python
|
|
|
|
Requires: python-magic
|
|
|
|
Requires: python-matplotlib
|
|
|
|
Requires: python-matplotlib-tk
|
2011-09-06 06:29:59 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Binwalk is a tool for searching a given binary image for embedded files and executable code.
|
|
|
|
Specifically, it is designed for identifying files and code embedded inside of firmware images.
|
|
|
|
Binwalk uses the libmagic library, so it is compatible with magic signatures created for the Unix file utility.
|
|
|
|
Binwalk also includes a custom magic signature file which contains improved signatures for files that are commonly
|
|
|
|
found in firmware images such as compressed/archived files, firmware headers, Linux kernels, bootloaders, filesystems, etc.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2013-09-24 09:06:17 +00:00
|
|
|
pushd src
|
|
|
|
%{__python} setup.py build
|
|
|
|
popd
|
2011-09-06 06:29:59 +00:00
|
|
|
|
|
|
|
%install
|
2013-09-24 09:06:17 +00:00
|
|
|
pushd src
|
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
popd
|
2011-09-06 06:29:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-09-24 09:06:17 +00:00
|
|
|
%doc docs/*
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{python_sitelib}/%{name}/
|
|
|
|
%{python_sitelib}/binwalk-1.2-py2.7.egg-info
|
|
|
|
|
2011-09-06 06:29:59 +00:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
|