]> git.pld-linux.org Git - packages/filesystem.git/blobdiff - filesystem.spec
- install dirs / sorting
[packages/filesystem.git] / filesystem.spec
index 6d55ec39905291919de0697ac87cf374b178180d..20cf4aaac9295beb78e1481ba3e140174e0ddc8d 100644 (file)
-Summary:     Basic filesystem layout
-Summary(de): Grundlegende Dateisystemstruktur
-Summary(fr): Arborescence de base du système de fichiers
-Summary(pl): Podstawa struktóra katalogów systemu
-Summary(tr): Temel dosya sistemi yapýsý
-Name:        filesystem
-Version:     1.4
-Release:     1
-Copyright:   Public Domain
-Group:       Base
-Buildroot:   /tmp/%{name}-%{version}-root
-Prereq:      setup
-BuildArchitectures: noarch
+#
+# TODO: move here from FHS.spec all dirs not covered by FHS, update descs
+#
+
+%define                _enable_debug_packages  0
+
+Summary:       Common directories
+Summary(pl):   Wspólne katalogi
+Name:          filesystem
+Version:       3.0
+Release:       6
+License:       GPL
+Group:         Base
+Requires:      FHS >= 2.3-14.2
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This package contains the basic directory layout for a Linux system, 
-including the proper permissions for the directories. This layout conforms
-to the Linux Filesystem Standard (FSSTND) 1.3.
+This package contains common directories for packages that extend
+some programs functionality, but don't require them themselves.
 
-%description -l de
-Dieses Paket enthält die grundlegende Verzeichnisstruktur eines Linux-Systems,
-einschließlich der entsprechenden Zugriffsrechte. Diese Struktur entspricht
-dem Linux-Dateisystem-Standard (FSSTND) 1.3.
+%description -l pl
+Ten pakiet zawiera wspólne katalogi dla pakietów rozszerzaj±cych
+funkcjonalno¶æ programów, ale nie wymagaj±cych ich.
 
-%description -l fr
-Ce package contient l'arborescence type pour système linux
-y compris les permissions adéquates pour les répertoires. Cette
-arborescence est conforme au standard \"Linux Filesystem Standard\"
-(FSSTND) 1.3.
+%package debuginfo
+Summary:       Common directories for debug information
+Summary(pl):   Wspólne katalogi dla plików z informacjami dla debuggera
+Group:         Development/Debug
+Requires:      %{name} = %{version}-%{release}
 
-%description -l pl
-Pakiet ten zawiera informacje o podstawowowej struktórze katalogów systemu i
-praw dostêpu do nich.
-%description -l tr
-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.
+%description debuginfo
+This package provides common directories for debug information.
+
+%description debuginfo -l pl
+Ten pakiet udostêpnia wspólne katalogi dla plików z informacjami dla
+debuggera.
 
 %prep
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/{bin,boot,etc/X11,home/users,lib/mosules}
-install -d $RPM_BUILD_ROOT/{mnt/floppy,proc,root,sbin,tmp}
-install -d $RPM_BUILD_ROOT/usr/{X11R6/{bin,include,lib,man},bin,dict}
-install -d $RPM_BUILD_ROOT/usr/{bin,dict,doc,etc,games,include,info,sbin,share}
-ln -sf ../X11R6/bin $RPM_BUILD_ROOT/usr/bin/X11
-ln -sf ../var/tmp $RPM_BUILD_ROOT/usr/tmp
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,xdg} \
+       $RPM_BUILD_ROOT%{_prefix}/share/{gnome/help,icons,pixmaps,pkgconfig,sounds,themes/Default,wallpapers,wm-properties,xsessions} \
+       $RPM_BUILD_ROOT%{_prefix}/lib/debug \
+       $RPM_BUILD_ROOT%{_usrsrc}/debug \
+       $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}} \
+       $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
 
-install -d $RPM_BUILD_ROOT/usr/man/man{1,2,3,4,5,6,7,8,9,n}
+%if "%{_lib}" != "lib"
+install -d $RPM_BUILD_ROOT/usr/lib/pkgconfig
+%endif
 
-install -d $RPM_BUILD_ROOT/usr/X11R6/{bin,inclide,lib,man/man{1,3,4,5,6}}
-install -d $RPM_BUILD_ROOT/usr/lib/{games,gcc-lib}
+%clean
+cd $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/usr/local/{bin,etc,doc,games,info,lib,man/man{1,2,3,4,5,6,7,8,9,n},sbin,src}
+# %{_rpmfilename} is not expanded, so use
+# %{name}-%{version}-%{release}.%{buildarch}.rpm
+RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
+TMPFILE=%{name}-%{version}.tmp$$
+find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
 
-install -d $RPM_BUILD_ROOT/var/{lib,local,lock/subsys,log,run,preserve,spool/mail}
-install -d $RPM_BUILD_ROOT/var/{lib/{games,rpm},nis,tmp}
+# find finds also '.', so use option -B for diff
+rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
 
-%clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-, root, root, 755)
-%dir /bin
-%dir %attr(0700, root, root) /boot
-/etc
-%dir /home
-%dir %attr(0755, root, users) /home/users
-/lib
-/mnt
-%dir /proc
-%dir %attr(0700, root, root) /root
-%dir /sbin
-%dir %attr(1777, root, root) /tmp
-%dir /usr
-%dir /usr/X11R6
-%dir /usr/X11R6/bin
-%dir /usr/X11R6/include
-%dir /usr/X11R6/lib
-/usr/X11R6/man
-%dir /usr/bin
-/usr/bin/X11
-%dir /usr/dict
-%dir /usr/doc
-%dir /usr/include
-%dir /usr/info
-/usr/man
-/usr/local
-%dir /usr/sbin
-%dir /usr/share
-/usr/tmp
-%dir /var
-%dir /var/lib
-%dir /var/lib/games
-%dir %attr(700, root, root) /var/lib/rpm
-%dir /var/local
-/var/lock
-%attr(711, root, mail) %dir /var/log
-%dir /var/run
-%dir /var/preserve
-%dir /var/spool
-%dir %attr(0751, root, mail) /var/spool/mail
-%dir %attr(1777, root, root) /var/tmp
-
-%changelog
-* Mon Aug  10 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.4-1]
-- Buildroot changed to /tmp/%%{name}-%%{version}-root,
-- directory skeleton is builded directly in %install instead unpacking 
-  from cpio archive,
-- added pl translation,
-- removed /usr/etc,
-- added /home/users - default base directory for users home
-  directories,
-- changed perrmisson on /var/lib/rpm to 700,
-- changed perrmisson on /root and /boot to 700,
-- changed permissoin on /var/log to 711,
-- changed permissoin on /var/spool/mail to 751,
-- removed /usr/lib/X11,
-- removed /var/nis.
-
-* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Tue Sep 09 1997 Erik Troan <ewt@redhat.com>
-- made a noarch package
-
-* Wed Jul 09 1997 Erik Troan <ewt@redhat.com>
-- added /
-
-* Wed Apr 16 1997 Erik Troan <ewt@redhat.com>
-- Changed /proc to 555
-- Removed /var/spool/mqueue (which is owned by sendmail)
+%defattr(644,root,root,755)
+%dir /etc/sysconfig
+%dir /etc/X11/xinit
+%dir /etc/X11/xinit/xinitrc.d
+%dir /etc/xdg
+%dir %{_pkgconfigdir}
+%if "%{_lib}" != "lib"
+%dir /usr/lib/pkgconfig
+%endif
+%dir %{_aclocaldir}
+%dir /usr/share/gnome
+%dir /usr/share/gnome/help
+%dir /usr/share/icons
+%dir /usr/share/pixmaps
+%dir /usr/share/pkgconfig
+%dir /usr/share/sounds
+%dir /usr/share/themes
+%dir /usr/share/themes/Default
+%dir /usr/share/wallpapers
+%dir /usr/share/wm-properties
+%dir /usr/share/xsessions
+
+%files debuginfo
+%defattr(644,root,root,755)
+%dir %{_prefix}/lib/debug
+%dir %{_usrsrc}/debug
This page took 0.073421 seconds and 4 git commands to generate.