# Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define oname CPU-X Name: cpu-x Version: 3.2.3 Release: 1 Summary: CPU-X is a Free software that gathers information on CPU, motherboard and more License: GPLv3+ Group: Monitoring Url: https://github.com/X0rg/CPU-X Source: https://github.com/X0rg/CPU-X/archive/v3.2.3/%{oname}-3.2.3.tar.gz #Buildrequires(pre): rpm-macros-cmake Buildrequires: cmake #Buildrequires: gcc-c++ Buildrequires: pkgconfig(gtk+-3.0) Buildrequires: pkgconfig(libarchive) Buildrequires: pkgconfig(libcurl) Buildrequires: pkgconfig(libpci) Buildrequires: pkgconfig(libprocps) Buildrequires: pkgconfig(libstatgrab) Buildrequires: pkgconfig(ncurses) Buildrequires: pkgconfig(libcpuid) Requires: hicolor-icon-theme #ExclusiveArch: %ix86 x86_64 %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 -qn %{oname}-%{version} %build mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. make %{?_smp_mflags} %install cd build make DESTDIR=%{buildroot} install %files %{_usr}/bin/cpu-x %{_usr}/bin/cpu-x_polkit %{_usr}/share/applications/* %{_usr}/share/cpu-x/* %{_usr}/share/icons/* %{_usr}/share/locale/* #%{_usr}/share/pixmaps/cpu-x.png %{_usr}/share/polkit-1/actions/org.pkexec.cpu-x.policy %{_usr}/share/metainfo/cpu-x.appdata.xml