summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 15:23:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 15:23:52 +0000
commit3f8c5fc66da502208ed1e9c4b12ec4af126c0cda (patch)
tree5a77b6d1141d4ffa6af76a0263023111545ba528
parent5b5c93760f4c453656c7e40787d73615a810c38d (diff)
automatic import of python-x86cpu
-rw-r--r--.gitignore1
-rw-r--r--python-x86cpu.spec170
-rw-r--r--sources1
3 files changed, 172 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1f4e4be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/x86cpu-0.4.tar.gz
diff --git a/python-x86cpu.spec b/python-x86cpu.spec
new file mode 100644
index 0000000..f89d364
--- /dev/null
+++ b/python-x86cpu.spec
@@ -0,0 +1,170 @@
+%global _empty_manifest_terminate_build 0
+Name: python-x86cpu
+Version: 0.4
+Release: 1
+Summary: Collect information about x86 CPU
+License: BSD license
+URL: http://github.com/matthew-brett/x86cpu
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0c/ec/2b46da78a810ab70f40392ac21cef71e7e6b60cd48091ab8649f2713143d/x86cpu-0.4.tar.gz
+
+
+%description
+ brand : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
+ vendor : GenuineIntel
+ model (display) : 69
+ family (display) : 6
+ model : 5
+ family : 6
+ extended model : 4
+ extended family : 0
+ stepping : 1
+ processor type : 0
+ signature : 263761
+ MMX : True
+ 3DNow! : True
+ SSE : True
+ SSE2 : True
+ SSE3 : True
+ SSSE3 : True
+ SSE4.1 : True
+ SSE4.2 : True
+ supports AVX : True
+ supports AVX2 : True
+****
+Code
+****
+See https://github.com/matthew-brett/x86cpu
+Released under the BSD two-clause license - see the file ``LICENSE`` in the
+source distribution.
+The latest released version is at https://pypi.python.org/pypi/x86cpu
+*******
+Support
+*******
+Please put up issues on the `x86cpu issue tracker
+<https://github.com/matthew-brett/x86cpu/issues>`_.
+
+%package -n python3-x86cpu
+Summary: Collect information about x86 CPU
+Provides: python-x86cpu
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-x86cpu
+ brand : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
+ vendor : GenuineIntel
+ model (display) : 69
+ family (display) : 6
+ model : 5
+ family : 6
+ extended model : 4
+ extended family : 0
+ stepping : 1
+ processor type : 0
+ signature : 263761
+ MMX : True
+ 3DNow! : True
+ SSE : True
+ SSE2 : True
+ SSE3 : True
+ SSSE3 : True
+ SSE4.1 : True
+ SSE4.2 : True
+ supports AVX : True
+ supports AVX2 : True
+****
+Code
+****
+See https://github.com/matthew-brett/x86cpu
+Released under the BSD two-clause license - see the file ``LICENSE`` in the
+source distribution.
+The latest released version is at https://pypi.python.org/pypi/x86cpu
+*******
+Support
+*******
+Please put up issues on the `x86cpu issue tracker
+<https://github.com/matthew-brett/x86cpu/issues>`_.
+
+%package help
+Summary: Development documents and examples for x86cpu
+Provides: python3-x86cpu-doc
+%description help
+ brand : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
+ vendor : GenuineIntel
+ model (display) : 69
+ family (display) : 6
+ model : 5
+ family : 6
+ extended model : 4
+ extended family : 0
+ stepping : 1
+ processor type : 0
+ signature : 263761
+ MMX : True
+ 3DNow! : True
+ SSE : True
+ SSE2 : True
+ SSE3 : True
+ SSSE3 : True
+ SSE4.1 : True
+ SSE4.2 : True
+ supports AVX : True
+ supports AVX2 : True
+****
+Code
+****
+See https://github.com/matthew-brett/x86cpu
+Released under the BSD two-clause license - see the file ``LICENSE`` in the
+source distribution.
+The latest released version is at https://pypi.python.org/pypi/x86cpu
+*******
+Support
+*******
+Please put up issues on the `x86cpu issue tracker
+<https://github.com/matthew-brett/x86cpu/issues>`_.
+
+%prep
+%autosetup -n x86cpu-0.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-x86cpu -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1095407
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ec4c75bfab587352b8dd64166b2ad9ad x86cpu-0.4.tar.gz