diff --git a/cpuid.spec b/cpuid.spec index bffff75..56d7d3f 100644 --- a/cpuid.spec +++ b/cpuid.spec @@ -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