A new user interface for you!

File cpu-x.spec of Package cpu-x

# spec file for package cpu-x
# Copyright (c) 2014 SUSE LINUX Products 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:           cpu-x
Version:        3.2.4
Release:        1
Summary:        CPU-X is a Free software that gathers information on CPU, motherboard and more.
License:        GPL-3.0
Group:          System/X11/Utilities
Url:            http://X0rg.github.io/CPU-X/
Source0:        CPU-X.tar.gz
Provides:       CPU-X

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  cmake
BuildRequires:  nasm
BuildRequires:  gettext
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
Requires:       gtk3
BuildRequires:  gtk3-devel
Requires:  	    ncurses
%if 0%{?fedora}
Requires:       ncurses-libs
BuildRequires:  ncurses-devel
%if 0%{?fedora}
Requires:       libcurl
Requires:       libcurl4
BuildRequires:  libcurl-devel
%if 0%{?fedora}
BuildRequires:  json-c-devel
Requires:       json-c
BuildRequires:  libjson-c-devel
Requires:       libjson-c3
%if 0%{?fedora} >= 25 || 0%{?suse_version} >= 1320
Requires: 	    libcpuid
Requires: 	    libcpuid14
BuildRequires:  libcpuid-devel
%if 0%{?suse_version}
Requires:  	    procps
BuildRequires:  procps-devel
Requires:  	    procps-ng
BuildRequires:  procps-ng-devel
Requires:  	    pciutils
BuildRequires:  pciutils-devel

CPU-X is a Free software that gathers information on CPU, motherboard and more.
CPU-X is similar to CPU-Z (Windows), but CPU-X is a Free and Open Source software designed for GNU/Linux; also, it works on *BSD.
This software is written in C and built with CMake tool.
It can be used in graphical mode by using GTK or in text-based mode by using NCurses. A dump mode is present from command line.

%setup -q -n CPU-X

%if 0%{?is_opensuse} && 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
export PKG_CONFIG_PATH=/home/abuild/rpmbuild/SOURCES
mkdir build && cd build
make %{?_smp_mflags}

cd build
make DESTDIR=%{buildroot} install

%if 0%{?suse_version}
%suse_update_desktop_file -r cpu-x System Monitor
%suse_update_desktop_file -r cpu-x-root System Monitor


* Tue Jan 31 2018 Xorg
- 3.2.0
* Tue Oct 25 2016 Xorg
- 3.1.3
* Sun Oct 23 2016 Xorg
- 3.1.2
* Sun Oct 16 2016 Xorg
- 3.1.1
* Sat Sep 24 2016 Xorg
- 3.1.0
* Tue Aug 23 2016 Xorg
- 3.0.1
* Thu Jun 16 2016 Xorg
- 3.0.0
* Thu Dec 03 2015 Xorg
- 2.2.2
* Sun Nov 22 2015 Xorg
- 2.2.0
* Wed Sep 02 2015 Xorg
- 2.1.1
* Mon Aug 10 2015 Mirko Rolfes <songokussj@gmx.net>
- 2.1.0