]> git.pld-linux.org Git - packages/blocks.git/blame - blocks.spec
- no, distribute is not needed, rel 3
[packages/blocks.git] / blocks.spec
CommitLineData
177a30be 1%define githash a50575b
b0acd80a 2%define rel 3
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
2a41c6e3 14BuildRequires: python3-modules >= 1:3.3
177a30be 15BuildRequires: rpm-pythonprov
9706cb29 16BuildRequires: rpmbuild(macros) >= 1.710
177a30be
ER
17Requires: python3-augeas >= 0.4.1-2
18Requires: python3-parted >= 3.10
9808de59 19Suggests: maintboot
177a30be
ER
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Conversion tools for block devices.
25
26Convert between raw partitions, logical volumes, and bcache devices
27without moving data. blocks shuffles blocks and sprouts superblocks.
28
fd0a9ab1
JB
29%description -l pl.UTF-8
30Narzędzia do konwersji dla urządzeń blokowych.
31
32Pozwalają na konwersję między surowymi partycjami, wolumenami
33logicznymi oraz urządzeniami bcache bez potrzeby przenoszenia danych.
34blocks przestawia bloki i tworzy nowe superbloki.
35
177a30be
ER
36%prep
37%setup -qc
38mv blocks-*/* .
39%patch0 -p1
40
41%build
84084363 42%py3_build
177a30be
ER
43
44%install
45rm -rf $RPM_BUILD_ROOT
84084363 46%py3_install
177a30be
ER
47
48install -d $RPM_BUILD_ROOT%{_sbindir}
49# admin tool. move to sbin
50mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
51
52%clean
53rm -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.115705 seconds and 5 git commands to generate.