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