]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python3-parted: Update to 3.12.0
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 11:36:54 +0000 (11:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 11:37:35 +0000 (11:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python-parted/python-parted.nm [deleted file]
python3-parted/python3-parted.nm [new file with mode: 0644]

diff --git a/python-parted/python-parted.nm b/python-parted/python-parted.nm
deleted file mode 100644 (file)
index ccc6055..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-###############################################################################
-# IPFire.org    - An Open Source Firewall Solution                            #
-# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
-###############################################################################
-
-name       = python-parted
-version    = 3.9
-release    = 1
-thisapp    = pyparted-%{version}
-
-groups     = System/Libraries
-url        = http://fedorahosted.org/pyparted
-license    = GPLv2+
-summary    = Python module for GNU parted.
-
-description
-       Python module for the parted library. It is used for manipulating
-       partition tables.
-end
-
-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 >= 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
-
-
-packages
-       package %{name}
-               requires
-                       python-decorator
-               end
-       end
-
-       package python3-parted
-               template PYTHON3
-       end
-
-       package %{name}-debuginfo
-               template DEBUGINFO
-       end
-end
diff --git a/python3-parted/python3-parted.nm b/python3-parted/python3-parted.nm
new file mode 100644 (file)
index 0000000..1e5b81c
--- /dev/null
@@ -0,0 +1,47 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-parted
+version    = 3.12.0
+release    = 1
+thisapp    = pyparted-%{version}
+
+groups     = System/Libraries
+url        = https://github.com/dcantrell/pyparted/
+license    = GPLv2+
+summary    = Python module for GNU parted.
+
+description
+       Python module for the parted library. It is used for manipulating
+       partition tables.
+end
+
+source_dl  = https://github.com/dcantrell/pyparted/releases/download/v%{version}/
+
+build
+       requires
+               parted-devel >= 3.4
+               pkg-config
+               python3-devel >= 3.5
+               python3-setuptools
+       end
+
+       build
+               %{python3} setup.py build
+       end
+
+       install
+               %{python3} setup.py install --root=%{BUILDROOT}
+       end
+end
+
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end