[packages/blocks] new, version 0.1.4 but use git snapshot as no other tarball available

glen glen at pld-linux.org
Wed Jan 15 00:33:45 CET 2014


commit 177a30be9330429a736fd16d55484a723554402c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 15 01:33:08 2014 +0200

    new, version 0.1.4 but use git snapshot as no other tarball available

 blocks.spec    | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 egg-deps.patch | 14 ++++++++++++++
 2 files changed, 74 insertions(+)
---
diff --git a/blocks.spec b/blocks.spec
new file mode 100644
index 0000000..2fe6a43
--- /dev/null
+++ b/blocks.spec
@@ -0,0 +1,60 @@
+%define	githash	a50575b
+%define	rel		1
+Summary:	Enable bcache or LVM on existing block devices
+Name:		blocks
+Version:	0.1.4
+Release:	0.%{githash}.%{rel}
+License:	GPL v3
+Group:		Applications/System
+Source0:	https://github.com/g2p/blocks/archive/%{githash}/%{name}-%{version}-%{githash}.tar.gz
+# Source0-md5:	06d0033af5a3d4f138698cccf0fa4a6b
+Patch0:		egg-deps.patch
+URL:		https://github.com/g2p/blocks
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	maintboot
+Requires:	python3-augeas >= 0.4.1-2
+Requires:	python3-parted >= 3.10
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Conversion tools for block devices.
+
+Convert between raw partitions, logical volumes, and bcache devices
+without moving data. blocks shuffles blocks and sprouts superblocks.
+
+%prep
+%setup -qc
+mv blocks-*/* .
+%patch0 -p1
+
+%build
+%{__python3} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python3} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sbindir}
+# admin tool. move to sbin
+mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/blocks
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_sbindir}/blocks
+%dir %{py3_sitescriptdir}/blocks
+%{py3_sitescriptdir}/blocks/*.py
+%{py3_sitescriptdir}/blocks/augeas
+%{py3_sitescriptdir}/blocks/maintboot.init
+%{py3_sitescriptdir}/blocks/__pycache__
+%{py3_sitescriptdir}/blocks-%{version}-py*.egg-info
diff --git a/egg-deps.patch b/egg-deps.patch
new file mode 100644
index 0000000..328d153
--- /dev/null
+++ b/egg-deps.patch
@@ -0,0 +1,14 @@
+--- blocks-0.1.4/setup.py~	2014-01-06 02:23:41.000000000 +0200
++++ blocks-0.1.4/setup.py	2014-01-15 00:40:40.738274481 +0200
+@@ -20,9 +20,8 @@
+     include_package_data=True,
+     # See requirements.txt for installable versions
+     install_requires=[
+-        'maintboot',
+-        'python-augeas >= 0.4.2a0',
+-        'pyparted > 3.10a0'],
++        'python-augeas >= 0.4.1',
++        'pyparted >= 3.10'],
+     classifiers='''
+         Programming Language :: Python :: 3
+         Programming Language :: Python :: 3.3
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/blocks.git/commitdiff/177a30be9330429a736fd16d55484a723554402c



More information about the pld-cvs-commit mailing list