forked from pool/ubi_reader
* fix path traversal vulnerability * Ignore block align, let fail if data actually is missing * fix old block crc check * python 3.x related cleanups OBS-URL: https://build.opensuse.org/package/show/devel:tools/ubi_reader?expand=0&rev=9
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package ubi_reader
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2018-2022, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ubi_reader
|
|
Version: 0.8.5
|
|
Release: 0
|
|
Summary: Extract files from UBI and UBIFS images
|
|
License: LGPL-3.0-or-later
|
|
Group: Development/Tools/Other
|
|
URL: https://github.com/jrspruitt/ubi_reader
|
|
Source: https://github.com/jrspruitt/ubi_reader/archive/v%{version}-master.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python3-python-lzo
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Collection of Python scripts for reading information about and extracting
|
|
data from UBI and UBIFS images.
|
|
|
|
The following tools are included:
|
|
- ubireader_display_info:
|
|
Show information about UBI or UBIFS image.
|
|
- ubireader_extract_files:
|
|
Extract contents of a UBI or UBIFS image.
|
|
- ubireader_extract_images:
|
|
Extract UBI or UBIFS images from file containing UBI data in it.
|
|
- ubireader_list_files:
|
|
List and Extract files of a UBI or UBIFS image.
|
|
- ubireader_utils_info:
|
|
Determine settings for recreating UBI image.
|
|
|
|
%prep
|
|
%setup -q -n ubi_reader-%{version}-master
|
|
chmod -x README.md
|
|
find ubireader -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
|
|
|
|
%build
|
|
%python3_build
|
|
|
|
%install
|
|
%python3_install
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/ubireader_display_blocks
|
|
%{_bindir}/ubireader_display_info
|
|
%{_bindir}/ubireader_extract_files
|
|
%{_bindir}/ubireader_extract_images
|
|
%{_bindir}/ubireader_utils_info
|
|
%{_bindir}/ubireader_list_files
|
|
%{python3_sitelib}/ubi*
|
|
|
|
%changelog
|