ImageMagick doesn't compile correctly on my sys, it ends with the the following error: File not found: /var/tmp/ImageMagick-root/usr/lib/perl5/man/man3/Image::Magick.3 In this part of the .spec file (part of %install): === # find the perl files find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -o -type l | \ sed -e "s|$RPM_BUILD_ROOT||g" | \ grep -v "perllocal.pod" > files-perl.list strip $RPM_BUILD_ROOT/usr/X11R6/bin/* || : find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]($|x)' | xargs file \ | grep troff | cut -d: -f1 | xargs bzip2 -9 for i in `find $RPM_BUILD_ROOT/ -type 'f' -perm '+a=x' ! -name 'lib*so*'`; do file $i |grep -q "not stripped" && strip $i done === The first part makes the file-perl.list, this file is used in the %files section. This is done _without_ the man pages being compressed (which is done in the next part). If we first compress the man pages and then make the files list, then things should work. Also, man pages with a few collons in the name don't get "found" by the statement above. I added another one with "cut -d: -f-3" to cover that. Please consider this patch for integration. Thanks, Stefan van der Eijk
--- /users/stefan/RPM/SPECS/ImageMagick.spec Wed Feb 16 18:19:52 2000 +++ ImageMagick.spec Sun Apr 2 15:56:45 2000 @@ -1,7 +1,7 @@ Summary: An X application for displaying and manipulating images. Name: ImageMagick Version: 5.1.1 -Release: 2mdk +Release: 3mdk Copyright: freeware Group: Applications/Multimedia Source: ftp://ftp.wizards.dupont.com/pub/ImageMagick-%{version}.tar.bz2 @@ -62,15 +62,17 @@ mkdir -p $RPM_BUILD_ROOT/usr/X11R6/include/X11 mv $RPM_BUILD_ROOT/usr/X11R6/include/magick $RPM_BUILD_ROOT/usr/X11R6/include/X11 # find the perl files +find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]($|x)' | xargs file \ + | grep troff | cut -d: -f1 | xargs bzip2 -9 + +find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]($|x)' | xargs file \ + | grep troff | cut -d: -f1-3 | xargs bzip2 -9 + find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -o -type l | \ sed -e "s|$RPM_BUILD_ROOT||g" | \ grep -v "perllocal.pod" > files-perl.list strip $RPM_BUILD_ROOT/usr/X11R6/bin/* || : - -find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]($|x)' | xargs file \ - | grep troff | cut -d: -f1 | xargs bzip2 -9 - for i in `find $RPM_BUILD_ROOT/ -type 'f' -perm '+a=x' ! -name 'lib*so*'`; do file $i |grep -q "not stripped" && strip $i done @@ -100,6 +102,11 @@ /usr/X11R6/lib/*.so %changelog +* Sun Apr 02 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 5.1.1-3mdk +- modified .spec file so Image::Magick.3.bz2 makes it in, the double "::" + in the man page name caused it not to get bziped befor the files-perl.list + is made. + * Wed Feb 16 2000 Chmouel Boudjnah <[EMAIL PROTECTED]> 5.1.1-2mdk - Recompile ImageMagick-devel with the right 5.1.1 devel.