feed through spec-beautifier

OBS-URL: https://build.opensuse.org/package/show/utilities/cpuid?expand=0&rev=6
This commit is contained in:
Jan Engelhardt 2015-07-09 07:50:37 +00:00 committed by Git OBS Bridge
parent 37b6b79b59
commit 3d29ee367c

View File

@ -23,14 +23,14 @@ Release: 0
Summary: x86 CPU identification tool
License: GPL-2.0+
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
ExclusiveArch: %ix86 x86_64
Exclusivearch: %ix86 x86_64
%description
cpuid executes the CPUID instruction on x86-family CPUs and decodes
@ -43,18 +43,18 @@ Cyrix CPUs, and is fairly complete.
%build
# remove -Werror=format-security which is used on Mandriva, as it produces
# 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 CFLAGS="$CFLAGS"
make CFLAGS="$CFLAGS"
%install
%__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"
%__install -D -m 0644 cpuid.man "%{buildroot}%{_mandir}/man1/cpuid.1"
install -Dm 0755 cpuid "%buildroot/%_bindir/cpuid"
install -Dm 0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1"
%files
%defattr(-,root,root)
%doc ChangeLog FUTURE LICENSE
%{_bindir}/cpuid
%{_mandir}/man1/cpuid.1*
%_bindir/cpuid
%_mandir/man1/cpuid.1*
%changelog