1
0

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
This commit is contained in:
Todd R 2017-04-19 15:53:26 +00:00 committed by Git OBS Bridge
parent 5031960c7f
commit 86e9b119f4
4 changed files with 57 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6a016fdbc4e7fadf2d519090fcb4fa9d0831bad4e85245d938e5c2fe7623ca6
size 21033

3
py-cpuinfo-3.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b711b1257adb9cb9c820f79a7e15e410e3be8bcd26de177af9bdc00ea6dc882c
size 75851

View File

@ -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

View File

@ -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