SHA256
1
0
forked from pool/cpuid
Jan Engelhardt 2021-11-15 22:43:30 +00:00 committed by Git OBS Bridge
parent 77d8b3849e
commit 851f9cbc78

View File

@ -23,11 +23,11 @@ Summary: x86 CPU identification tool
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: System/Management Group: System/Management
URL: http://etallen.com/cpuid.html URL: http://etallen.com/cpuid.html
Source: http://etallen.com/cpuid/%{name}-%{version}.src.tar.gz Source: http://etallen.com/cpuid/%name-%version.src.tar.gz
BuildRequires: gcc BuildRequires: gcc
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: make BuildRequires: make
ExclusiveArch: %{ix86} x86_64 ExclusiveArch: %ix86 x86_64
%description %description
cpuid executes the CPUID instruction on x86-family CPUs and decodes cpuid executes the CPUID instruction on x86-family CPUs and decodes
@ -40,18 +40,18 @@ Cyrix CPUs, and is fairly complete.
%build %build
# remove -Werror=format-security which is used on Mandriva, as it produces # remove -Werror=format-security which is used on Mandriva, as it produces
# a false positive compiler error on several printf calls: # a false positive compiler error on several printf calls:
CFLAGS=$(echo "%{optflags} -Wall" | sed 's/-Werror=format-security//g') CFLAGS=$(echo "%optflags -Wall" | sed 's/-Werror=format-security//g')
%make_build CFLAGS="$CFLAGS" %make_build CFLAGS="$CFLAGS"
%install %install
mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}/%{_mandir}/man1" mkdir -p "%buildroot/%_bindir" "%buildroot/%_mandir/man1"
install -pm0755 cpuid cpuinfo2cpuid "%{buildroot}/%{_bindir}/" install -pm0755 cpuid cpuinfo2cpuid "%buildroot/%_bindir/"
install -pm0644 cpuid.man "%{buildroot}/%{_mandir}/man1/cpuid.1" install -pm0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1"
%files %files
%doc ChangeLog %doc ChangeLog
%license LICENSE %license LICENSE
%{_bindir}/* %_bindir/*
%{_mandir}/man1/*.1%{?ext_man} %_mandir/man1/*.1%{?ext_man}
%changelog %changelog