]> git.pld-linux.org Git - packages/blocks.git/blob - blocks.spec
- no, distribute is not needed, rel 3
[packages/blocks.git] / blocks.spec
1 %define githash a50575b
2 %define rel     3
3 Summary:        Conversion tools to enable bcache or LVM on existing block devices
4 Summary(pl.UTF-8):      Narzędzia do konwersji pozwalające na włączenie bcache lub LVM na istniejących urządzeniach
5 Name:           blocks
6 Version:        0.1.4
7 Release:        0.%{githash}.%{rel}
8 License:        GPL v3
9 Group:          Applications/System
10 Source0:        https://github.com/g2p/blocks/archive/%{githash}/%{name}-%{version}-%{githash}.tar.gz
11 # Source0-md5:  06d0033af5a3d4f138698cccf0fa4a6b
12 Patch0:         egg-deps.patch
13 URL:            https://github.com/g2p/blocks
14 BuildRequires:  python3-modules >= 1:3.3
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  rpmbuild(macros) >= 1.710
17 Requires:       python3-augeas >= 0.4.1-2
18 Requires:       python3-parted >= 3.10
19 Suggests:       maintboot
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Conversion tools for block devices.
25
26 Convert between raw partitions, logical volumes, and bcache devices
27 without moving data. blocks shuffles blocks and sprouts superblocks.
28
29 %description -l pl.UTF-8
30 Narzędzia do konwersji dla urządzeń blokowych.
31
32 Pozwalają na konwersję między surowymi partycjami, wolumenami
33 logicznymi oraz urządzeniami bcache bez potrzeby przenoszenia danych.
34 blocks przestawia bloki i tworzy nowe superbloki.
35
36 %prep
37 %setup -qc
38 mv blocks-*/* .
39 %patch0 -p1
40
41 %build
42 %py3_build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %py3_install
47
48 install -d $RPM_BUILD_ROOT%{_sbindir}
49 # admin tool. move to sbin
50 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README.md
58 %attr(755,root,root) %{_sbindir}/blocks
59 %dir %{py3_sitescriptdir}/blocks
60 %{py3_sitescriptdir}/blocks/*.py
61 %{py3_sitescriptdir}/blocks/augeas
62 %{py3_sitescriptdir}/blocks/maintboot.init
63 %{py3_sitescriptdir}/blocks/__pycache__
64 %{py3_sitescriptdir}/blocks-%{version}-py*.egg-info
This page took 0.055082 seconds and 3 git commands to generate.