From 3f8c5fc66da502208ed1e9c4b12ec4af126c0cda Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 15:23:52 +0000 Subject: automatic import of python-x86cpu --- python-x86cpu.spec | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 python-x86cpu.spec (limited to 'python-x86cpu.spec') 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 +`_. + +%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 +`_. + +%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 +`_. + +%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 - 0.4-1 +- Package Spec generated -- cgit v1.2.3