Dan Callaghan e480556
%global module_name bmaptools
Dan Callaghan e480556
Dan Callaghan e480556
Name:           bmap-tools
77f6557
Version:        3.6
aekoroglu 4b49b90
Release:        4%{?dist}
Dan Callaghan e480556
Summary:        Tools to generate and flash sparse images using the "block map" (bmap) format
Dan Callaghan e480556
License:        GPLv2+
Dan Callaghan e480556
URL:            https://github.com/intel/bmap-tools
Dan Callaghan e480556
Source0:        https://github.com/intel/bmap-tools/archive/v%{version}/%{name}-%{version}.tar.gz
Dan Callaghan e480556
BuildArch:      noarch
Dan Callaghan 0892717
# Base package contains the command line tool, which uses the Python library
Dan Callaghan 0892717
Requires:       python3-%{module_name} = %{version}-%{release}
Dan Callaghan e480556
Dan Callaghan e480556
%description
aekoroglu 96a71ca
Bmaptool is a generic tool for creating the block map (bmap) for a file and 
aekoroglu 96a71ca
copying files using the block map. The idea is that large files, like raw 
aekoroglu 96a71ca
system image files, can be copied or flashed a lot faster and more reliably 
aekoroglu 96a71ca
with bmaptool than with traditional tools, like dd or cp.
aekoroglu 96a71ca
aekoroglu 96a71ca
Bmaptool was originally created for the "Tizen IVI" project and it was used for
aekoroglu 96a71ca
flashing system images to USB sticks and other block devices. Bmaptool can also
aekoroglu 96a71ca
be used for general image flashing purposes, for example, flashing Fedora Linux
aekoroglu 96a71ca
OS distribution images to USB sticks.
Dan Callaghan e480556
Dan Callaghan e480556
%package -n python3-%{module_name}
aekoroglu 96a71ca
Summary:        Python library for bmap-tools
Dan Callaghan e480556
%{?python_provide:%python_provide python3-%{module_name}}
Dan Callaghan e480556
BuildRequires:  python3-devel
Dan Callaghan e480556
BuildRequires:  python3-setuptools
Dan Callaghan e480556
BuildRequires:  python3-six
Dan Callaghan e480556
Requires:       python3-six
Dan Callaghan e480556
Requires:       python3-gpg
Dan Callaghan e480556
Requires:       bzip2
Dan Callaghan e480556
Requires:       pbzip2
Dan Callaghan e480556
Requires:       gzip
Dan Callaghan e480556
Requires:       xz
Dan Callaghan e480556
Requires:       tar
Dan Callaghan e480556
Requires:       unzip
Dan Callaghan e480556
Requires:       lzop
Dan Callaghan e480556
Requires:       pigz
aekoroglu 4b49b90
Requires:       zstd
Dan Callaghan e480556
Dan Callaghan e480556
%description -n python3-%{module_name}
aekoroglu 96a71ca
Python library to manipulate sparse images in the "block map" (bmap) format.
Dan Callaghan e480556
Dan Callaghan e480556
%prep
Dan Callaghan e480556
%setup -q
Dan Callaghan 0892717
# Remove unnecessary shebang
Dan Callaghan 0892717
sed -i -e '/^#!/,1d' bmaptools/CLI.py
Dan Callaghan e480556
Dan Callaghan e480556
%build
Dan Callaghan e480556
%py3_build
Dan Callaghan e480556
Dan Callaghan e480556
%install
Dan Callaghan e480556
%py3_install
Dan Callaghan e480556
install -d %{buildroot}/%{_mandir}/man1
Dan Callaghan e480556
install -m644 docs/man1/bmaptool.1 %{buildroot}/%{_mandir}/man1
Dan Callaghan e480556
Dan Callaghan 0892717
%files
Dan Callaghan 0892717
%{_bindir}/bmaptool
Dan Callaghan 0892717
%{_mandir}/man1/bmaptool.1*
Dan Callaghan 0892717
Dan Callaghan e480556
%files -n python3-%{module_name}
Dan Callaghan e480556
%doc docs/README docs/RELEASE_NOTES
Dan Callaghan e480556
%license COPYING
Dan Callaghan e480556
%{python3_sitelib}/%{module_name}
Dan Callaghan e480556
%{python3_sitelib}/bmap_tools*.egg-info
Dan Callaghan e480556
Dan Callaghan e480556
%changelog
aekoroglu 4b49b90
* Tue Mar 15 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 3.6-4
aekoroglu 4b49b90
- Missing zstd dependency added
aekoroglu 4b49b90
aekoroglu 30d6fcf
* Tue Mar 15 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 3.6-3
aekoroglu 96a71ca
- Deprecated build dependency python3-nose removed
aekoroglu 96a71ca
4e489f4
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
4e489f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4e489f4
77f6557
* Sun Aug 08 2021 Dan Callaghan <djc@djc.id.au> - 3.6-1
77f6557
- new upstream release 3.6 (RHBZ#1978386)
77f6557
8e8e3f1
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-7
8e8e3f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8e8e3f1
82da24d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.5-6
82da24d
- Rebuilt for Python 3.10
82da24d
910efd6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-5
910efd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
910efd6
2ae700f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-4
2ae700f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2ae700f
7a055bb
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 3.5-3
7a055bb
- Rebuilt for Python 3.9
7a055bb
Dan Callaghan 0892717
* Mon Dec 30 2019 Dan Callaghan <dan.callaghan@opengear.com> - 3.5-2
Dan Callaghan 0892717
- dropped the separate 'bmaptool' subpackage, the base package now provides
Dan Callaghan 0892717
  /usr/bin/bmaptool
Dan Callaghan 0892717
Dan Callaghan e480556
* Tue Jan 29 2019 Dan Callaghan <dan.callaghan@opengear.com> - 3.5-1
Dan Callaghan e480556
- initial version