1 %define githash a50575b
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
7 Release: 0.%{githash}.%{rel}
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
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Conversion tools for block devices.
26 Convert between raw partitions, logical volumes, and bcache devices
27 without moving data. blocks shuffles blocks and sprouts superblocks.
29 %description -l pl.UTF-8
30 Narzędzia do konwersji dla urządzeń blokowych.
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.
45 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_sbindir}
49 # admin tool. move to sbin
50 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
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