summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:09:44 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:09:44 +0900
commit45be07f573c9178458043cfae4cd1a1f0c0a8aea (patch)
tree55244376baa162dbdd950db8631d798ce7a5b852
parent84762ab00dc5cbfd3bfbc252ad738e4ddc50e9c8 (diff)
downloadfilesystem-tizen_2.2.tar.gz
filesystem-tizen_2.2.tar.bz2
filesystem-tizen_2.2.zip
-rw-r--r--packaging/Makefile6
-rw-r--r--packaging/filesystem.changes38
-rw-r--r--packaging/filesystem.spec187
-rw-r--r--packaging/iso_3166.sed31
-rw-r--r--packaging/iso_639.sed31
-rw-r--r--packaging/lang-exceptions87
6 files changed, 380 insertions, 0 deletions
diff --git a/packaging/Makefile b/packaging/Makefile
new file mode 100644
index 0000000..3dcdfdb
--- /dev/null
+++ b/packaging/Makefile
@@ -0,0 +1,6 @@
+PKG_NAME := filesystem
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+YAMLFILE = $(addsuffix .yaml, $(PKG_NAME))
+
+include /usr/share/packaging-tools/Makefile.common
+
diff --git a/packaging/filesystem.changes b/packaging/filesystem.changes
new file mode 100644
index 0000000..5786c88
--- /dev/null
+++ b/packaging/filesystem.changes
@@ -0,0 +1,38 @@
+* Fri May 27 2011 Anas Nashif <anas.nashif@intel.com> - 2.4.31
+- Disable auto-doc generation
+
+* Thu Jan 27 2011 Marko Saukko <marko.saukko@cybercom.com> - 2.4.31
+- Added noarch (BMC#12869)
+
+* Mon Dec 20 2010 Anas Nashif <nashif@linux.intel.com> - 2.4.31
+- Fixed syntax for new RPM (bmc #11563)
+
+* Thu Nov 25 2010 Vivian Zhang <vivian.zhang@intel.com> - 2.4.31
+- Correct the erroneous directory /var/lib/{misc} (BMC #9966)
+
+* Wed Jul 14 2010 Yan Yin <yan.yin@intel.com> - 2.4.31
+- Add /etc/rc.d/init.d dir and link /etc/init.d
+
+* Wed Jan 27 2010 Peter J Zhu <peter.j.zhu@intel.com> - 2.4.31
+- remove selinux
+
+* Wed Jan 27 2010 Peter J Zhu <peter.j.zhu@intel.com> - 2.4.31
+- Update to 2.4.31
+
+* Tue Jun 30 2009 Arjan van de Ven <arjan@linux.intel.com> 2.4.13
+- add /var/cache/nbtk directory
+
+* Thu Mar 12 2009 Arjan van de Ven <arjan@linux.intel.com> 2.4.13
+- add /dev/tty* dev nodes
+
+* Sat Feb 21 2009 Arjan van de Ven <arjan@linux.intel.com> 2.4.13
+- Add /dev/fb0
+
+* Mon Feb 9 2009 Yin Kangkai <kangkai.yin@intel.com> 2.4.13
+- Add URL in spec file
+
+* Thu Dec 25 2008 Arjan van de Ven <arjan@linux.intel.com> 2.4.13
+- Package a /dev/console so that we can always boot
+
+* Sat Nov 29 2008 Anas Nashif <anas.nashif@intel.com> 2.4.13
+- Remove selinux from file system
diff --git a/packaging/filesystem.spec b/packaging/filesystem.spec
new file mode 100644
index 0000000..d96dffe
--- /dev/null
+++ b/packaging/filesystem.spec
@@ -0,0 +1,187 @@
+%define disable_docs_package 1
+Summary: The basic directory layout for a Linux system
+Name: filesystem
+Version: 0.1
+Release: 1
+License: Public Domain
+URL: https://fedorahosted.org/filesystem
+Group: System/Base
+BuildArch: noarch
+# Raw source1 URL: https://fedorahosted.org/filesystem/browser/lang-exceptions?format=raw
+Source1: https://fedorahosted.org/filesystem/browser/lang-exceptions
+Source2: iso_639.sed
+Source3: iso_3166.sed
+Requires(pre): setup
+BuildRequires: iso-codes
+
+%description
+The filesystem package is one of the basic packages that is installed
+on a Linux system. Filesystem contains the basic directory layout
+for a Linux operating system, including the correct permissions for
+the directories.
+
+%prep
+rm -f $RPM_BUILD_DIR/filelist
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir %{buildroot}
+install -p -c -m755 %SOURCE2 %{buildroot}/iso_639.sed
+install -p -c -m755 %SOURCE3 %{buildroot}/iso_3166.sed
+
+cd %{buildroot}
+
+mkdir -p bin boot dev run \
+ mnt/{mntlib,moviefs,nfs} \
+ etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki,rc.d/init.d} \
+ lib/modules %{_lib}/tls media proc sbin srv sys tmp \
+ usr/{bin,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{games,locale},libexec,local/{bin,games,lib,%{_lib},sbin,src,libexec,include,},sbin,share/{applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,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,sounds,themes,xsessions,X11},src,src/kernels,src/debug} \
+ var/{lib/misc,local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games}
+
+ln -snf ../var/tmp usr/tmp
+ln -snf spool/mail var/mail
+ln -snf rc.d/init.d etc/init.d
+
+
+sed -n -f %{buildroot}/iso_639.sed /usr/share/xml/iso-codes/iso_639.xml \
+ >%{buildroot}/iso_639.tab
+sed -n -f %{buildroot}/iso_3166.sed /usr/share/xml/iso-codes/iso_3166.xml \
+ >%{buildroot}/iso_3166.tab
+
+grep -v "^$" %{buildroot}/iso_639.tab | grep -v "^#" | while read a b c d ; do
+ [[ "$d" =~ "^Reserved" ]] && continue
+ [[ "$d" =~ "^No linguistic" ]] && continue
+
+ locale=$c
+ if [ "$locale" = "XX" ]; then
+ 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
+ locality=
+ special=
+ [[ "$locale" =~ "@" ]] && locale=${locale%%@*}
+ [[ "$locale" =~ "_" ]] && locality=${locale##*_}
+ [[ "$locality" =~ "." ]] && locality=${locality%%.*}
+ [[ "$loc" =~ "_" ]] || [[ "$loc" =~ "@" ]] || special=$loc
+
+ # If the locality is not official, skip it
+ if [ -n "$locality" ]; then
+ grep -q "^$locality" %{buildroot}/iso_3166.tab || continue
+ fi
+ # If the locale is not official and not special, skip it
+ if [ -z "$special" ]; then
+ egrep -q "[[:space:]]${locale%_*}[[:space:]]" \
+ %{buildroot}/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
+
+rm -f %{buildroot}/iso_639.tab
+rm -f %{buildroot}/iso_639.sed
+rm -f %{buildroot}/iso_3166.tab
+rm -f %{buildroot}/iso_3166.sed
+
+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/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
+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}
+
+%files -f filelist
+%defattr(0755,root,root,-)
+%dir %attr(555,root,root) /
+%attr(555,root,root) /bin
+%attr(555,root,root) /boot
+/dev
+/etc
+%attr(555,root,root) /lib
+%ifarch x86_64
+%attr(555,root,root) /%{_lib}
+%endif
+/media
+%dir /mnt
+%dir /mnt/mntlib
+%dir /mnt/moviefs
+%dir /mnt/nfs
+%attr(555,root,root) /proc
+%attr(555,root,root) /sbin
+/srv
+/sys
+%attr(1777,root,root) /tmp
+%dir /usr
+%attr(555,root,root) /usr/bin
+/usr/games
+/usr/include
+%attr(555,root,root) /usr/lib
+%ifarch x86_64
+%attr(555,root,root) /usr/%{_lib}
+%endif
+/usr/libexec
+/usr/local
+%attr(555,root,root) /usr/sbin
+%dir /usr/share
+/usr/share/applications
+/usr/share/augeas
+/usr/share/backgrounds
+/usr/share/desktop-directories
+/usr/share/dict
+/usr/share/doc
+%attr(555,root,root) %dir /usr/share/empty
+/usr/share/games
+/usr/share/ghostscript
+/usr/share/gnome
+/usr/share/icons
+/usr/share/idl
+/usr/share/info
+%dir /usr/share/locale
+%dir /usr/share/man
+/usr/share/mime-info
+/usr/share/misc
+/usr/share/omf
+/usr/share/pixmaps
+/usr/share/sounds
+/usr/share/themes
+/usr/share/xsessions
+/usr/share/X11
+/usr/src
+/usr/tmp
+%dir /var
+/var/db
+/var/games
+/var/lib
+/var/local
+%dir %attr(0775,root,lock) /var/lock
+%attr(755,root,root) /var/lock/subsys
+/var/cache
+/var/log
+/var/mail
+/var/nis
+/var/opt
+/var/preserve
+/var/run
+/run
+%dir /var/spool
+%attr(755,root,root) /var/spool/lpd
+%attr(775,root,mail) /var/spool/mail
+%attr(1777,root,root) /var/tmp
+%dev(c,5,1) /dev/console
+%dev(c,29,0) /dev/fb0
+%dev(c,4,0) /dev/tty
+%dev(c,4,1) /dev/tty1
+%dev(c,4,2) /dev/tty2
diff --git a/packaging/iso_3166.sed b/packaging/iso_3166.sed
new file mode 100644
index 0000000..705dbdb
--- /dev/null
+++ b/packaging/iso_3166.sed
@@ -0,0 +1,31 @@
+1,/<iso_3166_entries/b
+
+# on each new iso-code process the current one
+\!\(<iso_3166_entry\|</iso_3166_entries>\)!{
+ x
+ s/^$//
+ # we are on the first iso-code--nothing to process here
+ t
+ # process and write to output
+ s/\s\+/ /g
+ s/<iso_3166_entry//
+ s!/\s*>!!
+ # use '%' as a separator of parsed and unparsed input
+ s/\(.*\)alpha_2_code="\([^"]\+\)"\(.*\)/\2 % \1 \3/
+ s/\([^%]\+\)%\(.*\)alpha_3_code="\([^"]\+\)"\(.*\)/\1% \2 \4/
+ # clear subst. memory for the next t
+ t clear
+ :clear
+ s/\([^%]\+\)%\(.*\)numeric_code="\([^"]\+\)"\(.*\)/\1% \2 \4/
+ t name
+ # no 3166 code--write xx
+ s/%/\tXX %/
+ :name
+ s/\([^%]\+\)%\(.*\)name="\([^"]\+\)"\(.*\)/\1\t\3/
+ s/ \t/\t/g
+ p
+ b
+ :noout
+}
+
+H
diff --git a/packaging/iso_639.sed b/packaging/iso_639.sed
new file mode 100644
index 0000000..e7e4d05
--- /dev/null
+++ b/packaging/iso_639.sed
@@ -0,0 +1,31 @@
+1,/<iso_639_entries/b
+
+# on each new iso-code process the current one
+\!\(<iso_639_entry\|</iso_639_entries>\)!{
+ x
+ s/^$//
+ # we are on the first iso-code--nothing to process here
+ t
+ # process and write to output
+ s/\s\+/ /g
+ s/<iso_639_entry//
+ s!/\s*>!!
+ # use '%' as a separator of parsed and unparsed input
+ s/\(.*\)iso_639_2T_code="\([^"]\+\)"\(.*\)/\2 % \1 \3/
+ s/\([^%]\+\)%\(.*\)iso_639_2B_code="\([^"]\+\)"\(.*\)/\1\t\3 % \2 \4/
+ # clear subst. memory for the next t
+ t clear
+ :clear
+ s/\([^%]\+\)%\(.*\)iso_639_1_code="\([^"]\+\)"\(.*\)/\1\t\3 % \2 \4/
+ t name
+ # no 639-1 code--write xx
+ s/%/\tXX %/
+ :name
+ s/\([^%]\+\)%\(.*\)name="\([^"]\+\)"\(.*\)/\1\t\3/
+ s/ \t/\t/g
+ p
+ b
+ :noout
+}
+
+H
diff --git a/packaging/lang-exceptions b/packaging/lang-exceptions
new file mode 100644
index 0000000..641695a
--- /dev/null
+++ b/packaging/lang-exceptions
@@ -0,0 +1,87 @@
+# This file contains a list of locality-specifc locales for which we ship
+# translations.
+#
+# The easiest way to generate this file is something along the lines of:
+#
+# repoquery -qal | awk -F '/' '/^\/usr\/share\/locale\/[a-z]*[_@]+/ { print $5 }' | sort -u
+#
+# and then sorting out the various invalid entires. (all_languages, locales
+# with charset definitions (.UTF-8, etc.))
+af_ZA
+am_ET
+ast_ES
+az_IR
+bn_IN
+ca@valencia
+ca_ES
+ca_ES@valencian
+cs_CZ
+de_AT
+de_CH
+de_DE
+default
+el_GR
+en_AU
+en_CA
+en_GB
+en_US
+es_AR
+es_CL
+es_CO
+es_CR
+es_DO
+es_EC
+es_ES
+es_GT
+es_HN
+es_MX
+es_NI
+es_PA
+es_PE
+es_PR
+es_SV
+es_UY
+es_VE
+et_EE
+eu_ES
+fa_IR
+fr_BE
+fr_CA
+fr_CH
+fr_FR
+he_IL
+hr_HR
+hu_HU
+it_CH
+it_IT
+ja_JP
+ko_KR
+ks@devanagari
+my_MM
+nb_NO
+nds_DE
+nl_BE
+nl_NL
+pl_PL
+pt_BR
+pt_PT
+ru_RU
+sl_SI
+sq_AL
+sv_SE
+uk_UA
+ur_PK
+zh_CN
+zh_CN.GB2312
+zh_HK
+zh_TW
+zh_TW.Big5
+en@boldquot
+en@quot
+nds@NFE
+sr@ije
+sr@latin
+sr@Latn
+uz@cyrillic
+uz@Latn
+be@latin