(1) owner and group permissions on install command not allowed for user build (2) use %defattr(-,root,root) appropriately Patch file that fixes the problems follows (with long lines munged by form; I cannot get the attach option to work). diff -Naur gmp.spec_original gmp.spec --- gmp.spec_original Mon Sep 6 06:06:56 1999 +++ gmp.spec Sat Dec 4 17:27:27 1999 @@ -54,7 +54,7 @@ make CFLAGS="${RPM_OPT_FLAGS}" prefix=${RPM_BUILD_ROOT}/usr install gzip -9nf ${RPM_BUILD_ROOT}/usr/info/gmp.info* -install -m 644 -o root -g root mpn/gmp-mparam.h ${RPM_BUILD_ROOT}/usr/include/ +install -m 644 mpn/gmp-mparam.h ${RPM_BUILD_ROOT}/usr/include/ %post -p /sbin/ldconfig @@ -72,9 +72,11 @@ [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %files +%defattr(-,root,root) /usr/lib/libgmp.so.2.0.2 %files devel +%defattr(-,root,root) %doc SPEED NEWS README /usr/lib/libgmp.so /usr/lib/libgmp.a
Fixed in gmp-2.0.2-11, which should be in the next RawHide.