]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
python-parted: Update to 3.9.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 19 Feb 2013 20:04:03 +0000 (21:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 1 Mar 2013 12:25:15 +0000 (13:25 +0100)
This is a major update to the latest stable version.

Enable build for python3.

python-parted/python-parted.nm

index 24f9cbf88042521db4ef00a6333181fc30c09f98..ccc6055a5abe7d318ee9475d1d14341a17e9d1c9 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = python-parted
-version    = 3.0
+version    = 3.9
 release    = 1
 thisapp    = pyparted-%{version}
 
@@ -18,14 +18,34 @@ description
        partition tables.
 end
 
-source_dl  =
+py3parted_version = 0.1
+
+source_dl  = \
+       https://fedorahosted.org/releases/p/y/pyparted/ \
+       https://github.com/cinnarch/py3parted/archive/
+
+# Also download source tarball for py3parted.
+sources += v%{py3parted_version}.tar.gz
 
 build
        requires
-               parted-devel
+               parted-devel >= 3.1
                pkg-config
                python-decorator
                python-devel
+               python3-devel
+       end
+
+       DIR_APP3 = %{DIR_SRC}/py3parted-%{py3parted_version}
+
+       build_cmds
+               # Build py3parted.
+               cd %{DIR_APP3} && python3 setup.py build
+       end
+
+       install_cmds
+               # Install py3parted.
+               cd %{DIR_APP3} && python3 setup.py install --root=%{BUILDROOT}
        end
 end
 
@@ -37,6 +57,10 @@ packages
                end
        end
 
+       package python3-parted
+               template PYTHON3
+       end
+
        package %{name}-debuginfo
                template DEBUGINFO
        end