commit a4b9a7c28c6ff4f75bc53f2b264ad3f4400d1f89e993c25c4d52a656e70b82c3 Author: Michael Vetter Date: Sat Oct 10 20:16:45 2020 +0000 Accepting request 840758 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/840758 OBS-URL: https://build.opensuse.org/package/show/utilities/cpu-x?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cpu-x.changes b/cpu-x.changes new file mode 100644 index 0000000..942c564 --- /dev/null +++ b/cpu-x.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Oct 10 10:00:06 UTC 2020 - Jan Engelhardt + +- Initial package (version 4.0.1) for build.opensuse.org diff --git a/cpu-x.spec b/cpu-x.spec new file mode 100644 index 0000000..e023308 --- /dev/null +++ b/cpu-x.spec @@ -0,0 +1,68 @@ +# +# spec file for package cpu-x +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: cpu-x +Version: 4.0.1 +Release: 0 +Summary: Hardware overview utility +License: GPL-3.0-only +Group: System/X11/Utilities +URL: https://github.com/X0rg/CPU-X/ +Source: https://github.com/X0rg/CPU-X/archive/v%version.tar.gz +Patch1: no-no-pie.patch +BuildRequires: cmake +BuildRequires: gettext-tools +BuildRequires: nasm +BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0 +BuildRequires: pkgconfig(libcpuid) >= 0.4.0 +BuildRequires: pkgconfig(libpci) +BuildRequires: pkgconfig(libprocps) +BuildRequires: pkgconfig(ncursesw) +Provides: bundled(dmidecode) = 3.2.20200417 + +%description +CPU-X is a software that gathers information about CPU, motherboard +and peripherals. It is similar to CPU-Z (Windows) and can be used in +graphical mode by using GTK or in text-based mode by using NCurses. A +dump mode is present from command line. + +%prep +%autosetup -p1 -n CPU-X-%version + +%build +%cmake +%cmake_build + +%install +%cmake_install +rm -Rf "%buildroot/%_datadir/polkit-1" "%buildroot/%_datadir/applications" +%find_lang %name + +%files -f %name.lang +%_bindir/cpu-x +%_libexecdir/cpu-x* +%_datadir/bash-completion/ +%_datadir/cpu-x/ +%_datadir/fish/ +%_datadir/icons/* +%_datadir/glib-2.0/ +%_datadir/metainfo/ +%_datadir/zsh/ +%license COPYING + +%changelog diff --git a/no-no-pie.patch b/no-no-pie.patch new file mode 100644 index 0000000..af93b6b --- /dev/null +++ b/no-no-pie.patch @@ -0,0 +1,22 @@ +From: Jan Engelhardt +Date: 2020-10-10 12:34:08.413465744 +0200 + +Revert 04472c948d7a0f51d9ec6cda3caed683bca488ce. +Why is this flag even here... + +--- + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +Index: CPU-X/CMakeLists.txt +=================================================================== +--- CPU-X.orig/CMakeLists.txt ++++ CPU-X/CMakeLists.txt +@@ -38,7 +38,6 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_E + include(CheckCCompilerFlag) + check_c_compiler_flag("-no-pie" HAS_NO_PIE) + if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE) +- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") + endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE) + + # Options diff --git a/v4.0.1.tar.gz b/v4.0.1.tar.gz new file mode 100644 index 0000000..c3abd55 --- /dev/null +++ b/v4.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf +size 1719474