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 Summary: x86 CPU identification tool
License: GPL-2.0+ License: GPL-2.0+
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %_tmppath/%name-%version-build
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
@ -43,18 +43,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 CFLAGS="$CFLAGS" make CFLAGS="$CFLAGS"
%install %install
%__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid" install -Dm 0755 cpuid "%buildroot/%_bindir/cpuid"
%__install -D -m 0644 cpuid.man "%{buildroot}%{_mandir}/man1/cpuid.1" install -Dm 0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc ChangeLog FUTURE LICENSE %doc ChangeLog FUTURE LICENSE
%{_bindir}/cpuid %_bindir/cpuid
%{_mandir}/man1/cpuid.1* %_mandir/man1/cpuid.1*
%changelog %changelog