2013-06-11 16:42:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package cpuid
|
|
|
|
#
|
2021-11-15 23:43:17 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-06-11 16:42:58 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-17 14:18:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-11 16:42:58 +02:00
|
|
|
#
|
|
|
|
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
Name: cpuid
|
2021-11-15 23:43:17 +01:00
|
|
|
Version: 20211114
|
2011-06-02 00:07:39 +02:00
|
|
|
Release: 0
|
2015-07-09 08:55:11 +02:00
|
|
|
Summary: x86 CPU identification tool
|
2018-04-20 09:53:27 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-06-02 00:07:39 +02:00
|
|
|
Group: System/Management
|
2020-03-06 09:31:52 +01:00
|
|
|
URL: http://etallen.com/cpuid.html
|
2021-11-15 23:43:17 +01:00
|
|
|
Source: http://etallen.com/cpuid/%{name}-%{version}.src.tar.gz
|
2013-06-11 16:42:58 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: make
|
2021-11-15 23:43:17 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
%description
|
2013-06-11 16:42:58 +02:00
|
|
|
cpuid executes the CPUID instruction on x86-family CPUs and decodes
|
|
|
|
the results into English descriptions. It knows about Intel, AMD, and
|
|
|
|
Cyrix CPUs, and is fairly complete.
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-06-02 08:41:32 +02:00
|
|
|
# remove -Werror=format-security which is used on Mandriva, as it produces
|
|
|
|
# a false positive compiler error on several printf calls:
|
2021-11-15 23:43:17 +01:00
|
|
|
CFLAGS=$(echo "%{optflags} -Wall" | sed 's/-Werror=format-security//g')
|
2020-04-29 00:14:17 +02:00
|
|
|
%make_build CFLAGS="$CFLAGS"
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
%install
|
2021-11-15 23:43:17 +01:00
|
|
|
mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}/%{_mandir}/man1"
|
|
|
|
install -pm0755 cpuid cpuinfo2cpuid "%{buildroot}/%{_bindir}/"
|
|
|
|
install -pm0644 cpuid.man "%{buildroot}/%{_mandir}/man1/cpuid.1"
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
%files
|
2020-03-06 09:31:52 +01:00
|
|
|
%doc ChangeLog
|
|
|
|
%license LICENSE
|
2021-11-15 23:43:17 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
2011-06-02 00:07:39 +02:00
|
|
|
|
|
|
|
%changelog
|