]>
Commit | Line | Data |
---|---|---|
177a30be | 1 | %define githash a50575b |
b0acd80a | 2 | %define rel 3 |
fd0a9ab1 JB |
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 | |
177a30be ER |
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 | |
2a41c6e3 | 14 | BuildRequires: python3-modules >= 1:3.3 |
177a30be | 15 | BuildRequires: rpm-pythonprov |
9706cb29 | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
177a30be ER |
17 | Requires: python3-augeas >= 0.4.1-2 |
18 | Requires: python3-parted >= 3.10 | |
9808de59 | 19 | Suggests: maintboot |
177a30be ER |
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 | ||
fd0a9ab1 JB |
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 | ||
177a30be ER |
36 | %prep |
37 | %setup -qc | |
38 | mv blocks-*/* . | |
39 | %patch0 -p1 | |
40 | ||
41 | %build | |
84084363 | 42 | %py3_build |
177a30be ER |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
84084363 | 46 | %py3_install |
177a30be ER |
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 |