]> git.pld-linux.org Git - packages/FHS.git/blobdiff - FHS.spec
- added x32 arch libdirs
[packages/FHS.git] / FHS.spec
index dbee164d608be805cb9f161d250bd03b92d91ee1..8beb0e3d9ab8b2e09931ec09b157bdedeffd637d 100644 (file)
--- a/FHS.spec
+++ b/FHS.spec
@@ -9,10 +9,11 @@ Summary(pl.UTF-8):    Podstawowy układ katalogów systemu Linux zgodny z FHS 2.3
 Summary(tr.UTF-8):     Temel dosya sistemi yapısı
 Name:          FHS
 Version:       2.3
-Release:       25
+Release:       36
 License:       GPL
 Group:         Base
 URL:           http://www.pathname.com/fhs/
+Source0:       locale-dirs
 BuildRequires: mktemp
 BuildRequires: rpmbuild(macros) >= 1.213
 Conflicts:     setup < 2.7
@@ -61,6 +62,8 @@ Bu paket GNU makro işleme dilini içerir. Mantıksal olarak
 ayrıştırılabilen metin dosyaları yazımı için yararlıdır.
 
 %prep
+%setup -qcT
+cp -a %{SOURCE0} .
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -69,7 +72,7 @@ install -d \
        $RPM_BUILD_ROOT/{bin,boot,dev,etc,home,opt,srv} \
        $RPM_BUILD_ROOT/etc/{X11,opt} \
        $RPM_BUILD_ROOT/lib/modules \
-       $RPM_BUILD_ROOT/{mnt,media/{cdrom,floppy},proc,root,sbin,tmp} \
+       $RPM_BUILD_ROOT/{mnt,media,proc,root/tmp,sbin,tmp} \
        $RPM_BUILD_ROOT/usr/{bin,games,include,lib,sbin,share,src} \
        $RPM_BUILD_ROOT/usr/share/{dict,doc,games,info,misc,tmac,xml} \
        $RPM_BUILD_ROOT/usr/lib/games \
@@ -78,20 +81,30 @@ install -d \
 
 %if "%{_lib}" == "lib64"
 install -d $RPM_BUILD_ROOT{/lib64,/usr/lib64/games,/usr/local/lib64}
+%ifarch %{x8664}
+install -d $RPM_BUILD_ROOT{/libx32,/usr/libx32/games,/usr/local/libx32}
+%endif
 %endif
 
-for manp in man{1,2,3,4,5,6,7,8} ; do
-       install -d $RPM_BUILD_ROOT/usr/share/man/${manp}
-       install -d $RPM_BUILD_ROOT%{_locmandir}/${manp}
-       for mloc in bg ca cs da de el eo es fi fr gl hr hu id it ja ko lt nl \
-                       pl pt pt_BR ro ru sk sl sr sv tr uk zh_CN zh_TW ; do
-               install -d $RPM_BUILD_ROOT/usr/share/man/${mloc}/${manp}
-       done
-done
+%if "%{_lib}" == "libx32"
+install -d $RPM_BUILD_ROOT{/libx32,/usr/libx32/games,/usr/local/libx32}
+%endif
+
+install -d $RPM_BUILD_ROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d $RPM_BUILD_ROOT%{_locmandir}/man{1,2,3,4,5,6,7,8}
 
 # "/usr/local/share/man and /usr/local/man must be synonomous" per FHS 2.3
 ln -sf ../man $RPM_BUILD_ROOT/usr/local/share/man
 
+> %{name}.lang
+for mloc in $(cat locale-dirs); do
+       echo "%%lang($mloc) %dir /usr/share/man/${mloc}" >> %{name}.lang
+       for manp in man{1,2,3,4,5,6,7,8}; do
+               install -d $RPM_BUILD_ROOT/usr/share/man/${mloc}/${manp}
+               echo "%%lang($mloc) %dir /usr/share/man/${mloc}/${manp}" >> %{name}.lang
+       done
+done
+
 %clean
 cd $RPM_BUILD_ROOT
 
@@ -116,7 +129,7 @@ check_filesystem_dirs
 posix.chown("/var/mail", 0, %{gid_mail})
 posix.chown("/var/lock", 0, %{gid_uucp})
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %dir /
 %dir /bin
@@ -128,13 +141,12 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /home
 %dir /lib
 %dir /lib/modules
-%dir %attr(775,root,root) /media
-%dir %attr(775,root,root) %verify(not group) /media/floppy
-%dir %attr(775,root,root) %verify(not group) /media/cdrom
+%dir /media
 %dir /mnt
 %dir /opt
 %dir %attr(555,root,root) %verify(not group) /proc
 %dir %attr(700,root,root) /root
+%dir %attr(700,root,root) /root/tmp
 %dir /sbin
 %dir %attr(755,root,root) /srv
 %dir %attr(1777,root,root) /tmp
@@ -152,38 +164,6 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /usr/share/info
 %dir /usr/share/man
 %dir /usr/share/man/man[1-8]
-%lang(bg) /usr/share/man/bg
-%lang(ca) /usr/share/man/ca
-%lang(cs) /usr/share/man/cs
-%lang(da) /usr/share/man/da
-%lang(de) /usr/share/man/de
-%lang(el) /usr/share/man/el
-%lang(eo) /usr/share/man/eo
-%lang(es) /usr/share/man/es
-%lang(fi) /usr/share/man/fi
-%lang(fr) /usr/share/man/fr
-%lang(gl) /usr/share/man/gl
-%lang(hr) /usr/share/man/hr
-%lang(hu) /usr/share/man/hu
-%lang(id) /usr/share/man/id
-%lang(it) /usr/share/man/it
-%lang(ja) /usr/share/man/ja
-%lang(ko) /usr/share/man/ko
-%lang(lt) /usr/share/man/lt
-%lang(nl) /usr/share/man/nl
-%lang(pl) /usr/share/man/pl
-%lang(pt) /usr/share/man/pt
-%lang(pt_BR) /usr/share/man/pt_BR
-%lang(ro) /usr/share/man/ro
-%lang(ru) /usr/share/man/ru
-%lang(sl) /usr/share/man/sl
-%lang(sk) /usr/share/man/sk
-%lang(sr) /usr/share/man/sr
-%lang(sv) /usr/share/man/sv
-%lang(tr) /usr/share/man/tr
-%lang(uk) /usr/share/man/uk
-%lang(zh_CN) /usr/share/man/zh_CN
-%lang(zh_TW) /usr/share/man/zh_TW
 %dir /usr/share/misc
 %dir /usr/share/tmac
 %dir /usr/share/xml
@@ -222,4 +202,16 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /usr/lib64
 %dir /usr/lib64/games
 %dir /usr/local/lib64
+%ifarch %{x8664}
+%dir /libx32
+%dir /usr/libx32
+%dir /usr/libx32/games
+%dir /usr/local/libx32
+%endif
+%endif
+%if "%{_lib}" == "libx32"
+%dir /libx32
+%dir /usr/libx32
+%dir /usr/libx32/games
+%dir /usr/local/libx32
 %endif
This page took 0.057939 seconds and 4 git commands to generate.