Hello community,

here is the log from the commit of package python3-py-cpuinfo for 
openSUSE:Factory checked in at 2016-10-18 10:39:22
Comparing /work/SRC/openSUSE:Factory/python3-py-cpuinfo (Old)
 and      /work/SRC/openSUSE:Factory/.python3-py-cpuinfo.new (New)

Package is "python3-py-cpuinfo"

New Changes file:

--- /dev/null   2016-09-15 12:42:18.240042505 +0200
    2016-10-18 10:39:22.000000000 +0200
@@ -0,0 +1,10 @@
+Tue Aug 16 15:42:24 UTC 2016 - toddrme2...@gmail.com
+- Implement update-alternatives
+Tue Jul  5 03:04:57 UTC 2016 - a...@gmx.de
+- initial version



Other differences:
++++++ python3-py-cpuinfo.spec ++++++
# spec file for package python3-py-cpuinfo
# Copyright (c) 2016 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           python3-py-cpuinfo
Version:        0.2.3
Release:        0
Summary:        Get CPU info with pure Python 2 & 3
License:        MIT
Group:          Development/Languages/Python
Url:            https://github.com/workhorsy/py-cpuinfo
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires(post): update-alternatives
Requires(preun): update-alternatives

Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work
without any extra programs or libraries, beyond what your OS
provides. It does not require any compilation(C/C++, assembly, et
cetera) to use. It works on Linux, OS X, Windows, BSD, Solaris,
Cygwin, Haiku, and BeagleBone. It currently only works on X86 and some

These approaches are used for getting info:
 1. Windows Registry (Windows)
 2. /proc/cpuinfo (Linux)
 3. sysctl (OS X)
 4. dmesg (Unix/Linux)
 5. isainfo and kstat (Solaris)
 6. cpufreq-info (BeagleBone)
 7. lscpu (Unix/Linux)
 8. sysinfo (Haiku)
 9. Querying the CPUID register (Intel X86 CPUs)

%setup -q -n py-cpuinfo-%{version}

python3 setup.py build

python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/cpuinfo %{buildroot}%{_bindir}/cpuinfo-%{py3_ver}
ln -s -f %{_sysconfdir}/alternatives/cpuinfo %{buildroot}%{_bindir}/cpuinfo

%_sbindir/update-alternatives \
   --install %{_bindir}/cpuinfo cpuinfo %{_bindir}/cpuinfo-%{py3_ver} 30

if [ $1 -eq 0 ] ; then
    %_sbindir/update-alternatives --remove cpuinfo %{_bindir}/cpuinfo-%{py3_ver}

%doc README.rst LICENSE ChangeLog
%ghost %{_sysconfdir}/alternatives/cpuinfo


Reply via email to