commit 789bf7465569f3f3aa7ca1dfa5ab124ef0108062
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Fri Apr 22 15:56:28 2016 +0200

    - up to 2.1.1

 binwalk.spec | 49 +++++++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/binwalk.spec b/binwalk.spec
index a8a41fc..3837e88 100644
--- a/binwalk.spec
+++ b/binwalk.spec
@@ -1,51 +1,52 @@
+# TODO:
+# - split library into subpackage?
+#
+%define        module  binwalk
 Summary:       Binary image analyze tool
 Name:          binwalk
-Version:       0.3.8
+Version:       2.1.1
 Release:       1
 License:       MIT
 Group:         Applications/Development
-Source0:       http://binwalk.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: bc145f8b9abd5e79d5bc3aecdc0ab829
-URL:           http://code.google.com/p/binwalk/
-BuildRequires: autoconf >= 2.65
-BuildRequires: curl-devel
-BuildRequires: libmagic-devel
+Source0:       https://github.com/devttys0/binwalk/archive/v%{version}.tar.gz
+# Source0-md5: e5015a8d0eff287eda8c4afeeca89ed6
+URL:           https://github.com/devttys0/binwalk
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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 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. 
+kernels, bootloaders, filesystems, etc.
 
 %prep
 %setup -q
-perl -ne 's/-lz/-lmagic/; print unless /^tar -zxvf \$FILE\.tar\.gz/' -i 
src/configure.ac
-perl -ne 'print unless /FILE/' -i src/Makefile.in
 
 %build
-cd src
-%{__autoconf}
-%configure
-%{__make}
+%py3_build %{?with_tests:test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} -C src install \
-       DESTDIR=$RPM_BUILD_ROOT
+%py3_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc docs/README
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
-%attr(755,root,root) %{_bindir}/%{name}
+%doc API.md README.md
+%attr(755,root,root) %{_bindir}/binwalk
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/binwalk.git/commitdiff/789bf7465569f3f3aa7ca1dfa5ab124ef0108062

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to