Re: Directory for bitmaps

Torsten Bronger <[email protected]> Wed, 03 Mar 2004 16:29:52 +0100
Newsgroups gmane.comp.tex.texinfo.pretest
Organization Aachen University of Technology (RWTH)
Message-ID <[email protected]>
Halloechen!

Torsten Bronger <[email protected]> writes:

> I'm trying to build an RPM file for my program, however RPM
> compresses all files in an info/ directory and its subdirs
> implicitly.  This is bad for all PNGs in this directory.  Obviously
> RPM must be changed.  I posted something about it in
> lunux.redhat.rpm.

RedHat considers it "NOTABUG", see
<https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117141>.

Anyway, in file brp-compress, in my SuSE distribution in
/usr/lib/rpm, after the case structure

	case "$f" in
	 *.Z) gunzip $f || check_for_hard_link $d $f Z; b=`echo $f | sed -e 's/\.Z$//'`;;
	 *.gz) gunzip $f || check_for_hard_link $d $f gz; b=`echo $f | sed -e 's/\.gz$//'`;;
	 *.bz2) bunzip2 $f || check_for_hard_link $d $f bz2; b=`echo $f | sed -e 's/\.bz2$//'`;;
	 *) b=$f;;
	esac

you must add the line

	[ "`basename $f \\.png\\.gz`" != "`basename $f`" ] && continue

and at least all PNGs are not compressed any more.  (Well, they are
compressed, then unpacked, but not compressed again; RPM is very
strange.)

Tschoe,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus

_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest