[packages/python-blivet: 1/2] new, version 0.14

glen glen at pld-linux.org
Thu May 16 08:58:02 CEST 2013


commit ae671fe920a00f993a72fd9ff75f2d422b9a63d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu May 16 09:29:35 2013 +0300

    new, version 0.14
    
    it's a new package created from anaconda storage module.
    
    based on fedora package
    1ee8392c0f6272583c38e00058fea6412eba6b52

 python-blivet.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
---
diff --git a/python-blivet.spec b/python-blivet.spec
new file mode 100644
index 0000000..6ebeb86
--- /dev/null
+++ b/python-blivet.spec
@@ -0,0 +1,79 @@
+# Versions of required components (done so we make sure the buildrequires
+# match the requires versions of things).
+%define dmver 1.02.17-6
+%define pykickstartver 1.99.22
+%define partedver 1.8.1
+%define pypartedver 2.5-2
+%define pythonpyblockver 0.45
+%define e2fsver 1.41.0
+%define pythoncryptsetupver 0.1.1
+%define utillinuxver 2.15.1
+
+%define module blivet
+Summary:	A Python module for system storage configuration
+Name:		python-blivet
+Version:	0.14
+Release:	1
+License:	GPL v2+
+Group:		Libraries/Python
+Source0:	http://pkgs.fedoraproject.org/repo/pkgs/python-blivet/%{module}-%{version}.tar.gz/30592cc8261fb936023b9d466dec68da/%{module}-%{version}.tar.gz
+# Source0-md5:	30592cc8261fb936023b9d466dec68da
+URL:		http://fedoraproject.org/wiki/blivet
+BuildRequires:	gettext
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	btrfs-progs
+Requires:	cryptsetup-luks
+Requires:	device-mapper >= %{dmver}
+Requires:	device-mapper-multipath
+Requires:	dosfstools
+Requires:	e2fsprogs >= %{e2fsver}
+Requires:	lvm2
+Requires:	mdadm
+Requires:	parted >= %{partedver}
+Requires:	python
+Requires:	python-cryptsetup >= %{pythoncryptsetupver}
+Requires:	python-parted >= %{pypartedver}
+Requires:	python-pyblock >= %{pythonpyblockver}
+Requires:	python-pykickstart >= %{pykickstartver}
+Requires:	util-linux >= %{utillinuxver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The python-blivet package is a Python module for examining and
+modifying storage configuration.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# redo python install to get optimize=2
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+%find_lang %{module}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{module}.lang
+%defattr(644,root,root,755)
+%doc README ChangeLog
+%{py_sitescriptdir}/blivet
+%{py_sitescriptdir}/blivet-%{version}-py*.egg-info
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-blivet.git/commitdiff/957b780d1fb2b191918932a2075d6eaf914cb6ef



More information about the pld-cvs-commit mailing list