[packages/CPU-X] - new

baggins baggins at pld-linux.org
Sat Aug 4 13:10:41 CEST 2018


commit 77406cb500cf65ce6f5e3a742a6e9ba6db0f8167
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Aug 4 13:10:19 2018 +0200

    - new

 CPU-X.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/CPU-X.spec b/CPU-X.spec
new file mode 100644
index 0000000..84f2de8
--- /dev/null
+++ b/CPU-X.spec
@@ -0,0 +1,66 @@
+Summary:	Gathers information on CPU, motherboard and more
+Name:		CPU-X
+Version:	3.2.3
+Release:	1
+License:	GPL v3
+Group:		Applications
+Source0:	https://github.com/X0rg/CPU-X/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	a680ad9004e48d3c8caa758215d8269b
+URL:		https://x0rg.github.io/CPU-X/
+BuildRequires:	cmake
+BuildRequires:	curl-devel
+BuildRequires:	gtk+3-devel >= 3.12.0
+BuildRequires:	libcpuid >= 0.4.0
+BuildRequires:	nasm
+BuildRequires:	ncurses-devel
+BuildRequires:	pciutils-devel
+BuildRequires:	procps-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		filterout_c	-Werror=format-security
+
+%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.
+
+%prep
+%setup -q
+
+%build
+mkdir -p build
+cd build
+
+%{cmake} \
+	-DBUILD_SHARED_LIBS:BOOL=OFF \
+	../
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/384x384
+
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/cs{_CZ,}
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/zh{,_CN}
+
+%find_lang cpu-x
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f cpu-x.lang
+%defattr(644,root,root,755)
+%doc ChangeLog README.md
+%attr(755,root,root) %{_bindir}/cpu-x
+%attr(755,root,root) %{_bindir}/cpu-x_polkit
+%{_datadir}/cpu-x
+%{_desktopdir}/cpu-x-root.desktop
+%{_desktopdir}/cpu-x.desktop
+%{_iconsdir}/hicolor/*x*/apps/cpu-x.png
+%{_datadir}/metainfo/cpu-x.appdata.xml
+%{_datadir}/polkit-1/actions/org.pkexec.cpu-x.policy
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/CPU-X.git/commitdiff/77406cb500cf65ce6f5e3a742a6e9ba6db0f8167



More information about the pld-cvs-commit mailing list