Name: binwalk Version: 2.3.4 Release: 5%{?dist} Summary: Firmware analysis tool License: MIT URL: https://github.com/ReFirmLabs/binwalk Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: binwalk-2.3.3-tests.patch Patch1: %{url}/pull/559/commits/6e7736869d998edb6384728c03a348cd9ab1f9ca.patch Patch2: version-oops.patch # https://github.com/ReFirmLabs/binwalk/issues/507 Patch3: requires-zombie-imp.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools # https://github.com/ReFirmLabs/binwalk/issues/507 BuildRequires: (python%{python3_pkgversion}-zombie-imp if python%{python3_pkgversion}-devel >= 3.12) # For tests BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-coverage %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 8 ) # Optional, for graphs and visualizations Suggests: python%{python3_pkgversion}-pyqtgraph # Optional, for --disasm functionality Suggests: capstone # Optional, for automatic extraction/decompression of files and data Recommends: mtd-utils gzip bzip2 tar arj p7zip p7zip-plugins cabextract squashfs-tools lzop srecord Suggests: sleuthkit %endif %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 python-magic library, so it is compatible with magic signatures created for the Unix file utility. %prep %autosetup -p1 %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test %files %doc API.md INSTALL.md README.md %license LICENSE %{_bindir}/%{name} %{python3_sitelib}/%{name}/ %{python3_sitelib}/%{name}-%{version}*.egg-info %changelog * Thu Dec 07 2023 Michal Ambroz - 2.3.4-5 - build for epel * Wed Jul 19 2023 Fedora Release Engineering - 2.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Scott Talbert - 2.3.4-3 - BR python3-zombie-imp to fix FTBFS with Python 3.12 * Tue Jun 13 2023 Python Maint - 2.3.4-2 - Rebuilt for Python 3.12 * Fri Feb 03 2023 Scott Talbert - 2.3.4-1 - Update to new upstream release 2.3.4 (#2166724) * Fri Jan 27 2023 Scott Talbert - 2.3.3-3 - Fix path traversal in PFS extractor script (#2165006) * Wed Jan 18 2023 Fedora Release Engineering - 2.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 27 2022 Scott Talbert - 2.3.3-1 - Update to new upstream release 2.3.3 (#2003337 #2156566) * Wed Jul 20 2022 Fedora Release Engineering - 2.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.3.2-3 - Rebuilt for Python 3.11 * Wed Jan 19 2022 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Aug 18 2021 Scott Talbert - 2.3.2-1 - Update to new upstream release 2.3.2 (#1994176) * Wed Jul 21 2021 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.3.1-2 - Rebuilt for Python 3.10 * Fri Mar 26 2021 Scott Talbert - 2.3.1-1 - Update to new upstream release 2.3.1 (#1941447) * Tue Jan 26 2021 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.2.0-3 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 15 2019 Scott Talbert - 2.2.0-1 - Update to new upstream release 2.2.0 (#1761636) * Thu Oct 03 2019 Miro Hrončok - 2.1.1-14 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.1.1-13 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 2.1.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 2.1.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 2.1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.1.1-9 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 2.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 13 2017 Scott Talbert - 2.1.1-7 - Add p7zip-plugins as a dependency and change from Suggests to Recommends (#1511958) * Wed Jul 26 2017 Fedora Release Engineering - 2.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.1.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2.1.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 03 2016 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 03 2016 Scott Talbert - 2.1.1-1 - New upstream release 2.1.1 - Remove patches (all upstream/obsolete), switch to noarch, add suggests * Tue Nov 10 2015 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Mon Aug 24 2015 Scott Talbert - 2.0.0-6 - Needed to specify python3 to configure * Mon Aug 24 2015 Scott Talbert - 2.0.0-5 - Cherry-pick patch from upstream for python3 fix - Add weak dependency on python3-pyqtgraph (#1248735) * Thu Jul 30 2015 Scott Talbert - 2.0.0-4 - Switch to python3 * Wed Jun 17 2015 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Nov 1 2014 Ville Skyttä - 2.0.0-2 - Fix *.so permissions for -debuginfo * Mon Sep 29 2014 Scott Talbert - 2.0.0-1 - New upstream release 2.0.0 (#1085059, #1111576) * Sat Jun 07 2014 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Apr 8 2013 Tom Callaway 1.2-1 - update to 1.2 * Wed Feb 13 2013 Fedora Release Engineering - 0.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Oct 26 2012 Adam Jackson 0.4.5-1 - Initial packaging.