From 4022c2a24dd18465e6bbe9b19124456dbd45cc4e Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Mon, 3 Aug 2009 08:43:51 +0000 Subject: [PATCH] Do own /usr/share/man/ directories (ghosted, missingok) - #220265 --- filesystem.spec | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/filesystem.spec b/filesystem.spec index aeee333..8c4ba11 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -1,7 +1,7 @@ Summary: The basic directory layout for a Linux system Name: filesystem -Version: 2.4.25 -Release: 2%{?dist} +Version: 2.4.26 +Release: 1%{?dist} License: Public Domain URL: https://fedorahosted.org/filesystem Group: System Environment/Base @@ -47,6 +47,7 @@ grep -v "^$" /usr/share/iso-codes/iso_639.tab | grep -v "^#" | while read a b c locale=$b fi echo "%lang(${locale}) /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist + echo "%lang(${locale}) %ghost %config(missingok) /usr/share/man/${locale}" >>$RPM_BUILD_DIR/filelist done cat %{SOURCE1} | grep -v "^#" | grep -v "^$" | while read loc ; do locale=$loc @@ -67,13 +68,22 @@ cat %{SOURCE1} | grep -v "^#" | grep -v "^$" | while read loc ; do /usr/share/iso-codes/iso_639.tab || continue fi echo "%lang(${locale}) /usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist + echo "%lang(${locale}) %ghost %config(missingok) /usr/share/man/${loc}" >> $RPM_BUILD_DIR/filelist done -cat $RPM_BUILD_DIR/filelist | while read a b ; do +cat $RPM_BUILD_DIR/filelist | grep "locale" | while read a b ; do mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES done +cat $RPM_BUILD_DIR/filelist | grep "/share/man" | while read a b c d; do + mkdir -p -m 755 %{buildroot}/$d +done + +for i in `echo man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}`; do + echo "/usr/share/man/$i" >>$RPM_BUILD_DIR/filelist +done + %clean rm -rf %{buildroot} @@ -119,7 +129,7 @@ rm -rf %{buildroot} /usr/share/idl /usr/share/info %dir /usr/share/locale -/usr/share/man +%dir /usr/share/man /usr/share/mime-info /usr/share/misc /usr/share/omf @@ -150,6 +160,9 @@ rm -rf %{buildroot} /var/yp %changelog +* Mon Aug 03 2009 Ondrej Vasik 2.4.26-1 +- Do own /usr/share/man/ directories (ghosted, missingok) - #220265 + * Fri Jul 24 2009 Fedora Release Engineering - 2.4.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild