From 86e9b119f431177872d3ca013b9b5a722c4f1840022c9777cdbea1b75463bfce Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 19 Apr 2017 15:53:26 +0000 Subject: [PATCH] Accepting request 489377 from home:TheBlackCat:branches:devel:languages:python - Update to 3.1.0 - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/489377 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=3 --- py-cpuinfo-0.2.3.tar.gz | 3 --- py-cpuinfo-3.1.0.tar.gz | 3 +++ python-py-cpuinfo.changes | 30 +++++++++++++++++++++++++++ python-py-cpuinfo.spec | 43 ++++++++++++++++++++++----------------- 4 files changed, 57 insertions(+), 22 deletions(-) delete mode 100644 py-cpuinfo-0.2.3.tar.gz create mode 100644 py-cpuinfo-3.1.0.tar.gz diff --git a/py-cpuinfo-0.2.3.tar.gz b/py-cpuinfo-0.2.3.tar.gz deleted file mode 100644 index 8d77d73..0000000 --- a/py-cpuinfo-0.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6a016fdbc4e7fadf2d519090fcb4fa9d0831bad4e85245d938e5c2fe7623ca6 -size 21033 diff --git a/py-cpuinfo-3.1.0.tar.gz b/py-cpuinfo-3.1.0.tar.gz new file mode 100644 index 0000000..4914730 --- /dev/null +++ b/py-cpuinfo-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b711b1257adb9cb9c820f79a7e15e410e3be8bcd26de177af9bdc00ea6dc882c +size 75851 diff --git a/python-py-cpuinfo.changes b/python-py-cpuinfo.changes index 07d750f..09cd7ad 100644 --- a/python-py-cpuinfo.changes +++ b/python-py-cpuinfo.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Wed Apr 19 15:46:57 UTC 2017 - toddrme2178@gmail.com + +- Update to 3.1.0 + * Fixed Bug #63: Include py-cpuinfo version in output + * Fixed Bug #29: Missing AVX2 CPU flag on OS X + * Fixed Bug #41: Broken on Odroid XU3 armhf ARM 32bit + * Fixed Bug #61: Not working on RHEL7.3 ppc64le + * Fixed Bug #56: Not working on Red Flag Linux ppc64le + * Fixed Bug #55: Not working on Fedora 24 ppc64le +- Update to 3.0.0 + * Change API to hide low level functions + * Fixed Bug #51: Combine data from all sources instead of picking one + * Fixed Bug #59: Not working on OS X 10.12 Sierra + * Fixed Bug #58: Change version number format + * Fixed Bug #60: Not working on ARM64 odroid-c2 +- Update to 0.2.7 + * Fixed Bug #53: CPUID breaks test suite when SE Linux is on (Fedora 25) + * Fixed Bug #54: CPUID breaks when it returns nothing (Fedora 26) +- Update to 0.2.6 + * New release because pypi does not allow deleting broken uploads +- Update to 0.2.5 + * New release because pypi does not allow deleting broken uploads +- Update to 0.2.4 + * Fixed Bug #35: Add basic documentation + * Fixed Bug #36: Make test suite test real functions too + * Fixed Bug #38: get_cpu_info_from_cpuid breaks with Python3 + * Fixed Bug #47: Include sysctl leaf7_features and extfeatures flags +- Implement single-spec version + ------------------------------------------------------------------- Tue Aug 16 15:46:46 UTC 2016 - toddrme2178@gmail.com diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index 626818f..9d5bde9 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-cpuinfo # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,26 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-py-cpuinfo -Version: 0.2.3 +Version: 3.1.0 Release: 0 -Summary: Get CPU info with pure Python 2 & 3 +Summary: Get CPU info with pure Python License: MIT Group: Development/Languages/Python Url: https://github.com/workhorsy/py-cpuinfo Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires(post): update-alternatives Requires(preun): update-alternatives +%python_subpackages %description Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work @@ -54,31 +60,30 @@ These approaches are used for getting info: %setup -q -n py-cpuinfo-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} # Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/cpuinfo %{buildroot}%{_bindir}/cpuinfo-%{py_ver} -ln -s -f %{_sysconfdir}/alternatives/cpuinfo %{buildroot}%{_bindir}/cpuinfo +%python_clone -a %{buildroot}%{_bindir}/cpuinfo + +%if %{with tests} +%check +%python_exec test_suite.py +%endif %post -%_sbindir/update-alternatives \ - --install %{_bindir}/cpuinfo cpuinfo %{_bindir}/cpuinfo-%{py_ver} 30 +%python_install_alternative cpuinfo %preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove cpuinfo %{_bindir}/cpuinfo-%{py_ver} -fi +%python_uninstall_alternative cpuinfo -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst LICENSE ChangeLog -%{_bindir}/cpuinfo -%{_bindir}/cpuinfo-%{py_ver} -%ghost %{_sysconfdir}/alternatives/cpuinfo +%python_alternative %{_bindir}/cpuinfo %{python_sitelib}/* %changelog