1 Summary: Gathers information on CPU, motherboard and more
7 Source0: https://github.com/X0rg/CPU-X/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: a680ad9004e48d3c8caa758215d8269b
10 URL: https://x0rg.github.io/CPU-X/
12 BuildRequires: curl-devel
13 BuildRequires: gtk+3-devel >= 3.12.0
14 BuildRequires: libcpuid-devel >= 0.4.0
16 BuildRequires: ncurses-devel
17 BuildRequires: pciutils-devel
18 BuildRequires: procps-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define filterout_c -Werror=format-security
24 CPU-X is a Free software that gathers information on CPU, motherboard
25 and more. CPU-X is similar to CPU-Z (Windows), but CPU-X is a Free and
26 Open Source software designed for GNU/Linux.
39 -DBUILD_SHARED_LIBS:BOOL=OFF \
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} -C build install \
48 DESTDIR=$RPM_BUILD_ROOT
50 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/384x384
52 %{__mv} $RPM_BUILD_ROOT%{_localedir}/cs{_CZ,}
53 %{__mv} $RPM_BUILD_ROOT%{_localedir}/zh{,_CN}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc ChangeLog README.md
63 %attr(755,root,root) %{_bindir}/cpu-x
64 %attr(755,root,root) %{_bindir}/cpu-x_polkit
66 %{_desktopdir}/cpu-x-root.desktop
67 %{_desktopdir}/cpu-x.desktop
68 %{_iconsdir}/hicolor/*x*/apps/cpu-x.png
69 %{_datadir}/metainfo/cpu-x.appdata.xml
70 %{_datadir}/polkit-1/actions/org.pkexec.cpu-x.policy