Do own /usr/share/man/<locale> directories (ghosted, missingok) - #220265

This commit is contained in:
Ondrej Vasik 2009-08-03 08:43:51 +00:00
parent abb2d606ca
commit 4022c2a24d

View File

@ -1,7 +1,7 @@
Summary: The basic directory layout for a Linux system Summary: The basic directory layout for a Linux system
Name: filesystem Name: filesystem
Version: 2.4.25 Version: 2.4.26
Release: 2%{?dist} Release: 1%{?dist}
License: Public Domain License: Public Domain
URL: https://fedorahosted.org/filesystem URL: https://fedorahosted.org/filesystem
Group: System Environment/Base 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 locale=$b
fi fi
echo "%lang(${locale}) /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist 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 done
cat %{SOURCE1} | grep -v "^#" | grep -v "^$" | while read loc ; do cat %{SOURCE1} | grep -v "^#" | grep -v "^$" | while read loc ; do
locale=$loc locale=$loc
@ -67,13 +68,22 @@ cat %{SOURCE1} | grep -v "^#" | grep -v "^$" | while read loc ; do
/usr/share/iso-codes/iso_639.tab || continue /usr/share/iso-codes/iso_639.tab || continue
fi fi
echo "%lang(${locale}) /usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist 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 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 mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
done 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 %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -119,7 +129,7 @@ rm -rf %{buildroot}
/usr/share/idl /usr/share/idl
/usr/share/info /usr/share/info
%dir /usr/share/locale %dir /usr/share/locale
/usr/share/man %dir /usr/share/man
/usr/share/mime-info /usr/share/mime-info
/usr/share/misc /usr/share/misc
/usr/share/omf /usr/share/omf
@ -150,6 +160,9 @@ rm -rf %{buildroot}
/var/yp /var/yp
%changelog %changelog
* Mon Aug 03 2009 Ondrej Vasik <ovasik@redhat.com> 2.4.26-1
- Do own /usr/share/man/<locale> directories (ghosted, missingok) - #220265
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.25-2 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild