]> git.pld-linux.org Git - packages/CPU-X.git/blob - CPU-X.spec
1c69f15b7cd104f563d94654e831e885e3e70617
[packages/CPU-X.git] / CPU-X.spec
1 Summary:        Gathers information on CPU, motherboard and more
2 Name:           CPU-X
3 Version:        3.2.3
4 Release:        2
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
9 Patch0:         x32.patch
10 URL:            https://x0rg.github.io/CPU-X/
11 BuildRequires:  cmake
12 BuildRequires:  curl-devel
13 BuildRequires:  gtk+3-devel >= 3.12.0
14 BuildRequires:  libcpuid-devel >= 0.4.0
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
30 %ifarch x32
31 %patch0 -p1
32 %endif
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
This page took 0.123879 seconds and 3 git commands to generate.