diff --git a/cpuid.spec b/cpuid.spec index 8f358d3..93f8b8b 100644 --- a/cpuid.spec +++ b/cpuid.spec @@ -48,13 +48,14 @@ CFLAGS=$(echo "%optflags -Wall"| sed 's/-Werror=format-security//g') make CFLAGS="$CFLAGS" %install -install -Dm 0755 cpuid "%buildroot/%_bindir/cpuid" -install -Dm 0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1" +mkdir -p "%buildroot/%_bindir" "%buildroot/%_mandir/man1" +install -pm0755 cpuid cpuinfo2cpuid "%buildroot/%_bindir/" +install -pm0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1" %files %defattr(-,root,root) %doc ChangeLog FUTURE LICENSE -%_bindir/cpuid +%_bindir/cpu* %_mandir/man1/cpuid.1* %changelog