]> git.pld-linux.org Git - packages/CPU-X.git/blame - CPU-X.spec
- fix building on x32
[packages/CPU-X.git] / CPU-X.spec
CommitLineData
77406cb5
JR
1Summary: Gathers information on CPU, motherboard and more
2Name: CPU-X
3Version: 3.2.3
4Release: 1
5License: GPL v3
6Group: Applications
7Source0: https://github.com/X0rg/CPU-X/archive/v%{version}/%{name}-%{version}.tar.gz
8# Source0-md5: a680ad9004e48d3c8caa758215d8269b
6c3579a4 9Patch0: x32.patch
77406cb5
JR
10URL: https://x0rg.github.io/CPU-X/
11BuildRequires: cmake
12BuildRequires: curl-devel
13BuildRequires: gtk+3-devel >= 3.12.0
6c3579a4 14BuildRequires: libcpuid-devel >= 0.4.0
77406cb5
JR
15BuildRequires: nasm
16BuildRequires: ncurses-devel
17BuildRequires: pciutils-devel
18BuildRequires: procps-devel
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define filterout_c -Werror=format-security
22
23%description
24CPU-X is a Free software that gathers information on CPU, motherboard
25and more. CPU-X is similar to CPU-Z (Windows), but CPU-X is a Free and
26Open 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
35mkdir -p build
36cd build
37
38%{cmake} \
39 -DBUILD_SHARED_LIBS:BOOL=OFF \
40 ../
41
42%{__make}
43
44%install
45rm -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
58rm -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.097993 seconds and 4 git commands to generate.