- First round of Fedora package review changes (#225752)
This commit is contained in:
parent
bf9a15f903
commit
92d26fd738
@ -1,6 +1,6 @@
|
|||||||
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.14
|
Version: 2.4.15
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -18,6 +18,8 @@ the directories.
|
|||||||
%prep
|
%prep
|
||||||
rm -f $RPM_BUILD_DIR/filelist
|
rm -f $RPM_BUILD_DIR/filelist
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir %{buildroot}
|
mkdir %{buildroot}
|
||||||
@ -25,9 +27,9 @@ mkdir %{buildroot}
|
|||||||
cd %{buildroot}
|
cd %{buildroot}
|
||||||
|
|
||||||
mkdir -p mnt/{floppy,cdrom} \
|
mkdir -p mnt/{floppy,cdrom} \
|
||||||
bin boot dev \
|
bin boot dev \
|
||||||
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,xinetd.d,skel,sysconfig,pki,fonts/conf.d,news} \
|
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,xinetd.d,skel,sysconfig,pki,fonts/conf.d,news} \
|
||||||
home lib/modules %{_lib}/tls media mnt opt proc root sbin selinux srv sys tmp \
|
home lib/modules %{_lib}/tls media mnt opt proc root sbin selinux srv sys tmp \
|
||||||
usr/{bin,etc,games,include,%{_lib}/{games,sse2,tls,X11},lib/{games,locale,X11},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{applications,desktop-directories,dict,doc,empty,fonts,games,gnome,icons,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,themes,xsessions},src,src/kernels} \
|
usr/{bin,etc,games,include,%{_lib}/{games,sse2,tls,X11},lib/{games,locale,X11},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{applications,desktop-directories,dict,doc,empty,fonts,games,gnome,icons,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,themes,xsessions},src,src/kernels} \
|
||||||
var/{empty,lib/{games,misc},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
|
var/{empty,lib/{games,misc},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
|
||||||
|
|
||||||
@ -35,33 +37,33 @@ ln -snf ../var/tmp usr/tmp
|
|||||||
ln -snf spool/mail var/mail
|
ln -snf spool/mail var/mail
|
||||||
|
|
||||||
grep -v "^$" /usr/share/iso-codes/iso_639.tab | grep -v "^#" | while read a b c d ; do
|
grep -v "^$" /usr/share/iso-codes/iso_639.tab | grep -v "^#" | while read a b c d ; do
|
||||||
[[ "$d" =~ "^Reserved" ]] && continue
|
[[ "$d" =~ "^Reserved" ]] && continue
|
||||||
[[ "$d" =~ "^No linguistic" ]] && continue
|
[[ "$d" =~ "^No linguistic" ]] && continue
|
||||||
|
|
||||||
locale=$c
|
locale=$c
|
||||||
if [ "$locale" = "XX" ]; then
|
if [ "$locale" = "XX" ]; then
|
||||||
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
|
||||||
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
|
||||||
locality=
|
locality=
|
||||||
[[ "$locale" =~ "@" ]] && locale=${locale%%@*}
|
[[ "$locale" =~ "@" ]] && locale=${locale%%@*}
|
||||||
[[ "$locale" =~ "_" ]] && locality=${locale##*_}
|
[[ "$locale" =~ "_" ]] && locality=${locale##*_}
|
||||||
|
|
||||||
# If the locality is not official, skip it
|
# If the locality is not official, skip it
|
||||||
if [ -n "$locality" ]; then
|
if [ -n "$locality" ]; then
|
||||||
grep -q "^$locality" /usr/share/iso-codes/iso_3166.tab || continue
|
grep -q "^$locality" /usr/share/iso-codes/iso_3166.tab || continue
|
||||||
fi
|
fi
|
||||||
# If the locale is not official, skip it
|
# If the locale is not official, skip it
|
||||||
egrep -q "[[:space:]]${locale%_*}[[:space:]]" /usr/share/iso-codes/iso_639.tab || continue
|
egrep -q "[[:space:]]${locale%_*}[[:space:]]" /usr/share/iso-codes/iso_639.tab || continue
|
||||||
echo "%lang(${locale}) /usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist
|
echo "%lang(${locale}) /usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
cat $RPM_BUILD_DIR/filelist | while read a b ; do
|
cat $RPM_BUILD_DIR/filelist | while read a b ; do
|
||||||
mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
|
mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
|
||||||
done
|
done
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -136,6 +138,9 @@ rm -rf %{buildroot}
|
|||||||
/var/yp
|
/var/yp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 27 2008 Phil Knirsch <pknirsch@redhat.com> - 2.4.15-1
|
||||||
|
- First round of Fedora package review changes (#225752)
|
||||||
|
|
||||||
* Tue May 20 2008 Phil Knirsch <pknirsch@redhat.com> - 2.4.14-1
|
* Tue May 20 2008 Phil Knirsch <pknirsch@redhat.com> - 2.4.14-1
|
||||||
- Added /usr/src/kernels to owned and created dirs (#442283)
|
- Added /usr/src/kernels to owned and created dirs (#442283)
|
||||||
|
|
||||||
@ -353,7 +358,7 @@ rm -rf %{buildroot}
|
|||||||
* Thu Jun 01 2000 Preston Brown <pbrown@redhat.com>
|
* Thu Jun 01 2000 Preston Brown <pbrown@redhat.com>
|
||||||
- add /var/spool/lpd to filesystem, owned by user/group lp, tight permissions
|
- add /var/spool/lpd to filesystem, owned by user/group lp, tight permissions
|
||||||
|
|
||||||
* Tue May 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
* Tue May 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
- Added /etc/xinetd.d
|
- Added /etc/xinetd.d
|
||||||
|
|
||||||
* Mon May 15 2000 Preston Brown <pbrown@redhat.com>
|
* Mon May 15 2000 Preston Brown <pbrown@redhat.com>
|
||||||
|
Loading…
Reference in New Issue
Block a user