]> git.pld-linux.org Git - packages/blocks.git/blame - blocks.spec
new, version 0.1.4 but use git snapshot as no other tarball available
[packages/blocks.git] / blocks.spec
CommitLineData
177a30be
ER
1%define githash a50575b
2%define rel 1
3Summary: Enable bcache or LVM on existing block devices
4Name: blocks
5Version: 0.1.4
6Release: 0.%{githash}.%{rel}
7License: GPL v3
8Group: Applications/System
9Source0: https://github.com/g2p/blocks/archive/%{githash}/%{name}-%{version}-%{githash}.tar.gz
10# Source0-md5: 06d0033af5a3d4f138698cccf0fa4a6b
11Patch0: egg-deps.patch
12URL: https://github.com/g2p/blocks
13BuildRequires: python3-distribute
14BuildRequires: python3-modules
15BuildRequires: rpm-pythonprov
16BuildRequires: rpmbuild(macros) >= 1.219
17Requires: maintboot
18Requires: python3-augeas >= 0.4.1-2
19Requires: python3-parted >= 3.10
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
29%prep
30%setup -qc
31mv blocks-*/* .
32%patch0 -p1
33
34%build
35%{__python3} setup.py build
36
37%install
38rm -rf $RPM_BUILD_ROOT
39%{__python3} setup.py install \
40 --skip-build \
41 --optimize=2 \
42 --root=$RPM_BUILD_ROOT
43
44install -d $RPM_BUILD_ROOT%{_sbindir}
45# admin tool. move to sbin
46mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc README.md
54%attr(755,root,root) %{_sbindir}/blocks
55%dir %{py3_sitescriptdir}/blocks
56%{py3_sitescriptdir}/blocks/*.py
57%{py3_sitescriptdir}/blocks/augeas
58%{py3_sitescriptdir}/blocks/maintboot.init
59%{py3_sitescriptdir}/blocks/__pycache__
60%{py3_sitescriptdir}/blocks-%{version}-py*.egg-info
This page took 0.072017 seconds and 4 git commands to generate.