forked from pool/cpuid
This commit is contained in:
parent
77d8b3849e
commit
851f9cbc78
16
cpuid.spec
16
cpuid.spec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user