]> git.pld-linux.org Git - packages/blocks.git/blame - blocks.spec
requires distribute module for pkg_resources
[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
da02d8d7 19Requires: python3-distribute
177a30be
ER
20Requires: python3-parted >= 3.10
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Conversion tools for block devices.
26
27Convert between raw partitions, logical volumes, and bcache devices
28without moving data. blocks shuffles blocks and sprouts superblocks.
29
30%prep
31%setup -qc
32mv blocks-*/* .
33%patch0 -p1
34
35%build
36%{__python3} setup.py build
37
38%install
39rm -rf $RPM_BUILD_ROOT
40%{__python3} setup.py install \
41 --skip-build \
42 --optimize=2 \
43 --root=$RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT%{_sbindir}
46# admin tool. move to sbin
47mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc README.md
55%attr(755,root,root) %{_sbindir}/blocks
56%dir %{py3_sitescriptdir}/blocks
57%{py3_sitescriptdir}/blocks/*.py
58%{py3_sitescriptdir}/blocks/augeas
59%{py3_sitescriptdir}/blocks/maintboot.init
60%{py3_sitescriptdir}/blocks/__pycache__
61%{py3_sitescriptdir}/blocks-%{version}-py*.egg-info
This page took 0.108016 seconds and 4 git commands to generate.