]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python3-setuptools: Update to 65.6.3
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Nov 2022 17:02:28 +0000 (17:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Nov 2022 17:02:28 +0000 (17:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python-setuptools/python-setuptools.nm [deleted file]
python3-setuptools/python3-setuptools.nm [new file with mode: 0644]

diff --git a/python-setuptools/python-setuptools.nm b/python-setuptools/python-setuptools.nm
deleted file mode 100644 (file)
index ffef974..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-###############################################################################
-# IPFire.org    - An Open Source Firewall Solution                            #
-# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
-###############################################################################
-
-name       = python-setuptools
-version    = 40.4.3
-release    = 1
-arch       = noarch
-thisapp    = setuptools-%{version}
-
-maintainer = Michael Tremer <michael.tremer@ipfire.org>
-groups     = Development/Libraries
-url        = http://pypi.python.org/pypi/setuptools
-license    = Python or ZPLv2.0
-summary    = Easily build and distribute Python packages.
-
-description
-       Setuptools is a collection of enhancements to the Python distutils
-       that allow you to more easily build and distribute Python packages,
-       especially ones that have dependencies on other packages.
-end
-
-source_dl = https://github.com/pypa/setuptools/archive/v%{version}.tar.gz#/
-
-build
-       requires
-               pakfire-builder >= 0.9.23-2
-               python-devel
-               python3-devel
-       end
-
-       DIR_APP3 = %{DIR_APP}-python3
-
-       prepare_cmds
-               cp -av %{DIR_APP} %{DIR_APP3}
-       end
-
-       build
-               pushd %{DIR_APP3}
-               %{python3} bootstrap.py
-               CFLAGS="%{CFLAGS}" %{python3} setup.py build
-               popd
-
-               %{python} bootstrap.py
-               CFLAGS="%{CFLAGS}" %{python} setup.py build
-       end
-
-       install
-               pushd %{DIR_APP3}
-               %{python3} setup.py install --skip-build --root=%{BUILDROOT}
-
-               rm -rvf %{BUILDROOT}%{python3_sitelib}/setuptools/tests
-               chmod +x %{BUILDROOT}%{python3_sitelib}/setuptools/command/easy_install.py
-               popd
-
-               %{python} setup.py install --skip-build --root=%{BUILDROOT}
-
-               rm -rvf %{BUILDROOT}%{python_sitelib}/setuptools/tests
-               chmod +x %{BUILDROOT}%{python_sitelib}/setuptools/command/easy_install.py
-
-               find %{BUILDROOT}{%{python_sitelib},%{python3_sitelib}} -name "*.exe" | xargs rm -vf
-       end
-end
-
-packages
-       package %{name}
-
-       package python3-setuptools
-               template PYTHON3
-
-               files += %{bindir}/easy_install-3*
-       end
-end
diff --git a/python3-setuptools/python3-setuptools.nm b/python3-setuptools/python3-setuptools.nm
new file mode 100644 (file)
index 0000000..06fc773
--- /dev/null
@@ -0,0 +1,49 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-setuptools
+version    = 65.6.3
+release    = 1
+arch       = noarch
+thisapp    = setuptools-%{version}
+
+groups     = Development/Libraries
+url        = https://pypi.python.org/pypi/setuptools
+license    = Python or ZPLv2.0
+summary    = Easily build and distribute Python packages.
+
+description
+       Setuptools is a collection of enhancements to the Python distutils
+       that allow you to more easily build and distribute Python packages,
+       especially ones that have dependencies on other packages.
+end
+
+source_dl = https://files.pythonhosted.org/packages/b6/21/cb9a8d0b2c8597c83fce8e9c02884bce3d4951e41e807fc35791c6b23d9a
+
+build
+       requires
+               python3
+               python3-devel
+       end
+
+       export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES = 0
+
+       build
+               %{python3} setup.py build
+       end
+
+       install
+               %{python3} setup.py install -O1 --skip-build --root=%{BUILDROOT}
+
+               rm -rvf %{BUILDROOT}%{python3_sitelib}/setuptools/tests
+               chmod +x %{BUILDROOT}%{python3_sitelib}/setuptools/command/easy_install.py
+
+               #find %{BUILDROOT}%{python3_sitelib} -name "*.exe" | xargs rm -vf
+       end
+end
+
+packages
+       package %{name}
+end