A new user interface for you! Read more...

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
%endif
Requires:       gtk3
BuildRequires:  gtk3-devel
Requires:  	    ncurses
%if 0%{?fedora}
Requires:       ncurses-libs
%endif
BuildRequires:  ncurses-devel
%if 0%{?fedora}
Requires:       libcurl
%else
Requires:       libcurl4
%endif
BuildRequires:  libcurl-devel
%if 0%{?fedora}
BuildRequires:  json-c-devel
Requires:       json-c
%else
BuildRequires:  libjson-c-devel
Requires:       libjson-c3
%endif
%if 0%{?fedora} >= 25 || 0%{?suse_version} >= 1320
Requires: 	    libcpuid
%else
Requires: 	    libcpuid14
%endif
BuildRequires:  libcpuid-devel
%if 0%{?suse_version}
Requires:  	    procps
BuildRequires:  procps-devel
%else
Requires:  	    procps-ng
BuildRequires:  procps-ng-devel
%endif
Requires:  	    pciutils
BuildRequires:  pciutils-devel


%description
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.

%prep
%setup -q -n CPU-X

%build
%if 0%{?is_opensuse} && 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
export PKG_CONFIG_PATH=/home/abuild/rpmbuild/SOURCES
%endif
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr ..
make %{?_smp_mflags}

%install
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
%endif

%files
%{_bindir}/cpu-x
%{_bindir}/cpu-x_polkit
%{_datadir}/applications/
%{_datadir}/cpu-x/
%{_datadir}/icons/hicolor/
%{_datadir}/locale/
%{_datadir}/polkit-1/
%{_datadir}/metainfo/

%changelog
* 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