]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python3-cpuinfo: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Dec 2022 08:32:06 +0000 (08:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Dec 2022 08:33:40 +0000 (08:33 +0000)
Required by pakfire.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python3-cpuinfo/python3-cpuinfo.nm [new file with mode: 0644]

diff --git a/python3-cpuinfo/python3-cpuinfo.nm b/python3-cpuinfo/python3-cpuinfo.nm
new file mode 100644 (file)
index 0000000..ec55888
--- /dev/null
@@ -0,0 +1,40 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-cpuinfo
+version    = 9.0.0
+release    = 1
+thisapp    = py-cpuinfo-%{version}
+
+groups     = System/Libraries
+url        = https://github.com/workhorsy/py-cpuinfo
+license    = MIT
+summary    = A module for getting CPU info with pure Python
+
+description
+       Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work
+       without any extra programs or libraries, beyond what your OS provides.
+end
+
+source_dl  = https://github.com/workhorsy/py-cpuinfo/archive/refs/tags/v%{version}.tar.gz#/
+
+build
+       requires
+               python3-devel
+               python3-setuptools
+       end
+
+       build
+               %{python3} setup.py build
+       end
+
+       install
+               %{python3} setup.py install --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end