]>
Commit | Line | Data |
---|---|---|
77406cb5 JR |
1 | Summary: Gathers information on CPU, motherboard and more |
2 | Name: CPU-X | |
3 | Version: 3.2.3 | |
4 | Release: 1 | |
5 | License: GPL v3 | |
6 | Group: Applications | |
7 | Source0: https://github.com/X0rg/CPU-X/archive/v%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: a680ad9004e48d3c8caa758215d8269b | |
6c3579a4 | 9 | Patch0: x32.patch |
77406cb5 JR |
10 | URL: https://x0rg.github.io/CPU-X/ |
11 | BuildRequires: cmake | |
12 | BuildRequires: curl-devel | |
13 | BuildRequires: gtk+3-devel >= 3.12.0 | |
6c3579a4 | 14 | BuildRequires: libcpuid-devel >= 0.4.0 |
77406cb5 JR |
15 | BuildRequires: nasm |
16 | BuildRequires: ncurses-devel | |
17 | BuildRequires: pciutils-devel | |
18 | BuildRequires: procps-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define filterout_c -Werror=format-security | |
22 | ||
23 | %description | |
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. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
6c3579a4 JR |
30 | %ifarch x32 |
31 | %patch0 -p1 | |
32 | %endif | |
77406cb5 JR |
33 | |
34 | %build | |
35 | mkdir -p build | |
36 | cd build | |
37 | ||
38 | %{cmake} \ | |
39 | -DBUILD_SHARED_LIBS:BOOL=OFF \ | |
40 | ../ | |
41 | ||
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} -C build install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/384x384 | |
51 | ||
52 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/cs{_CZ,} | |
53 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/zh{,_CN} | |
54 | ||
55 | %find_lang cpu-x | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files -f cpu-x.lang | |
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 | |
65 | %{_datadir}/cpu-x | |
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 |