File: bmaptool.spec

package info (click to toggle)
bmap-tools 3.9.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 760 kB
  • sloc: python: 5,822; sh: 105; makefile: 2
file content (89 lines) | stat: -rw-r--r-- 2,425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# We follow the Fedora guide for versioning. Fedora recommends to use something
# like '1.0-0.rc7' for release candidate rc7 and '1.0-1' for the '1.0' release.
%define rc_str %{?rc_num:0.rc%{rc_num}}%{!?rc_num:1}

Name: bmaptool
Summary: Tools to generate block map (AKA bmap) and flash images using bmap
Version: 3.9.0
%if 0%{?opensuse_bs}
Release: %{rc_str}.<CI_CNT>.<B_CNT>
%else
Release: %{rc_str}.0.0
%endif

Group: Development/Tools/Other
License: GPL-2.0
BuildArch: noarch
URL: https://github.com/yoctoproject/bmaptool
Source0: %{name}-%{version}.tar.gz

Requires: bzip2
Requires: pbzip2
Requires: gzip
Requires: xz
Requires: tar
Requires: unzip
Requires: lzop
%if ! 0%{?tizen_version:1}
# pigz is not present in Tizen
Requires: pigz
%endif

%if 0%{?suse_version}
BuildRequires: python-distribute
%endif
%if 0%{?fedora_version}
BuildRequires: python-setuptools
%endif
BuildRequires: python2-rpm-macros

%if 0%{?suse_version}
# In OpenSuse the xml.etree module is provided by the python-xml package
Requires: python-xml
# The gpgme python module is in python-gpgme
Requires: python-gpgme
%endif

%if 0%{?fedora_version}
# In Fedora the xml.etree module is provided by the python-libs package
Requires: python-libs
# Tha gpgme python module is in pygpgme package
Requires: pygpgme
%endif

# Centos6 uses python 2.6, which does not have the argparse module. However,
# argparse is available as a separate package there.
%if 0%{?centos_version} == 600
Requires: python-argparse
%endif

%description
Tools to generate block map (AKA bmap) and flash images using bmap. bmaptool is
a generic tool for creating the block map (bmap) for a file, and copying files
using the block map. The idea is that large file containing unused blocks, like
raw system image files, can be copied or flashed a lot faster with bmaptool
than with traditional tools like "dd" or "cp". See
source.tizen.org/documentation/reference/bmaptool for more information.

%prep
%setup -q -n %{name}-%{version}

%build

%install
rm -rf %{buildroot}
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}

mkdir -p %{buildroot}/%{_mandir}/man1
install -m644 docs/man1/bmaptool.1 %{buildroot}/%{_mandir}/man1

%files
%defattr(-,root,root,-)
%license COPYING
%dir /usr/lib/python*/site-packages/bmaptool
/usr/lib/python*/site-packages/bmap_tools*
/usr/lib/python*/site-packages/bmaptool/*
%{_bindir}/*

%doc docs/RELEASE_NOTES
%{_mandir}/man1/*