Hello,

I've got some litte changes i'd like to see in next
official Mandrake RPMs:

1) Attachment #1 is a patch, making man-pages i18n-ed.
   By applying this patch, localized man-pages are shown 
   correctly. Try out:

     man /usr/man/fr_FR/man1/hostname.1

   before and after applying the patch, to see the results.
   (this man-page is provided by package "net-tools-1.52-6mdk")
   I hope you'll do it - RedHat always suppresses localization
   efforts :-(

2) This leads direcly to patch #2. The generic spec file

     ftp://ftp.mandrakesoft.com/pub/bero/generic.spec

   should be corrected as attached, to also bzip localized man
   pages, it also skips symlinks (where compression is nonsense). 
   I added perl man-pages compression, as they are in a regular 
   man folder (see "/etc/man.config").

Regards
        -Stefan Siegel mailto:[EMAIL PROTECTED]
                       http://www.student.uni-kl.de/~siegel/
diff -uNr /etc.orig/man.config.orig /etc/man.config
--- /etc.orig/man.config        Fri Aug  6 00:22:04 1999
+++ /etc/man.config     Fri Aug  6 00:22:11 1999
@@ -62,9 +62,9 @@
 # not only is it superfluous, but it actually damages the output.
 #
 TROFF          /usr/bin/groff -Tps -mandoc
-NROFF          /usr/bin/groff -Tascii -mandoc
+NROFF          /usr/bin/groff -Tlatin1 -mandoc
 EQN            /usr/bin/geqn -Tps
-NEQN           /usr/bin/geqn -Tascii
+NEQN           /usr/bin/geqn -Tlatin1
 TBL            /usr/bin/gtbl
 # COL          /usr/bin/col
 REFER          /usr/bin/grefer
diff -uNr /tmp/spec.orig/generic.spec /tmp/spec/generic.spec
--- /tmp/spec.orig/generic.spec Fri Aug  6 00:32:25 1999
+++ /tmp/spec/generic.spec      Fri Aug  6 00:46:35 1999
@@ -25,30 +25,40 @@
 make install prefix=$RPM_BUILD_ROOT/%{prefix}
 
 if [ -d $RPM_BUILD_ROOT/usr/man ]; then
-  bzip2 -9f $RPM_BUILD_ROOT/usr/man/*/*
+  bzip2 -9f `find "$RPM_BUILD_ROOT/usr/man" -type f`
 fi
 if [ -d $RPM_BUILD_ROOT/usr/info ]; then
-  bzip2 -9f $RPM_BUILD_ROOT/usr/info/*.info
+  bzip2 -9f `find "$RPM_BUILD_ROOT/usr/info" -type f`
 fi
 if [ -d $RPM_BUILD_ROOT/usr/X11R6/man ]; then
-  bzip2 -9f $RPM_BUILD_ROOT/usr/X11R6/man/*/*
+  bzip2 -9f `find "$RPM_BUILD_ROOT/usr/X11R6/man" -type f`
+fi
+if [ -d $RPM_BUILD_ROOT/usr/lib/perl5/man ]; then
+  bzip2 -9f `find "$RPM_BUILD_ROOT/usr/lib/perl5/man" -type f`
 fi
 
 cd $RPM_BUILD_ROOT
-find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
-       $RPM_BUILD_DIR/file.list.%{name}
+find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' \
+       > $RPM_BUILD_DIR/file.list.%{name}
 
-find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
-       $RPM_BUILD_DIR/file.list.%{name}
+find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' \
+       -e '/\/etc\//s|^|%config|' \
+       -e '/\/config\//s|^|%config|' \
+       >> $RPM_BUILD_DIR/file.list.%{name}
 
-find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
-       $RPM_BUILD_DIR/file.list.%{name}
+find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' \
+       >> $RPM_BUILD_DIR/file.list.%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name}
 
 %files -f ../file.list.%{name}
+%defattr(-,root,root,0755)
 
 %changelog
+* Fri Aug 06 1999 Stefan Siegel <[EMAIL PROTECTED]>
+- Added "config" tag for files containing /etc or /config
+- Added compression for perl- and localized man-pages
+
 * Sat Jun 26 1999 Bernhard Rosenkraenzer <[EMAIL PROTECTED]>
 - create (more or less) generic spec file...

Reply via email to