From 1afd3978f10dc86b39f6d99e7fc3bb3dd89076f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= Date: Thu, 20 Jun 2019 15:54:13 +0200 Subject: [PATCH] add new -afs supbackage for /afs directory (#FPC888,#1720232) --- filesystem.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/filesystem.spec b/filesystem.spec index ee08d1d..a746183 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -1,6 +1,6 @@ Summary: The basic directory layout for a Linux system Name: filesystem -Version: 3.11 +Version: 3.12 Release: 1%{?dist} License: Public Domain URL: https://pagure.io/filesystem @@ -26,6 +26,14 @@ This subpackage of filesystem package contains just the file with the directories owned by the filesystem package. This can be used during the build process instead of calling rpm -ql filesystem. +%package afs +Summary: AFS root directory from the filesystem package +License: Public Domain + +%description afs +This subpackage of filesystem package contains just the AFS filesystem +dynamic root directory. This can be used with packages that add an +AFS client. %prep rm -f $RPM_BUILD_DIR/filelist @@ -40,7 +48,7 @@ install -p -c -m755 %SOURCE3 %{buildroot}/iso_3166.sed cd %{buildroot} -mkdir -p boot dev \ +mkdir -p afs boot dev \ etc/{X11/{applnk,fontpath.d,xinit/{xinitrc,xinput}.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},skel,sysconfig,pki,bash_completion.d,rwtab.d,statetab.d} \ home media mnt opt proc root run srv sys tmp \ usr/{bin,games,include,%{_lib}/{games,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{debug/{.dwz,usr},games,locale,modules,sysimage},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/{aclocal,appdata,applications,augeas/lenses,backgrounds,bash-completion{,/completions,/helpers},desktop-directories,dict,doc,empty,games,gnome,help,icons,idl,info,licenses,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},metainfo,mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11,wayland-sessions},src,src/kernels,src/debug} \ @@ -171,10 +179,16 @@ restorecon /proc 2>/dev/null >/dev/null || : restorecon /dev 2>/dev/null >/dev/null || : restorecon /media 2>/dev/null >/dev/null || : +%posttrans afs +restorecon /afs 2>/dev/null >/dev/null || : + %files content %dir %{_datadir}/filesystem %{_datadir}/filesystem/paths +%files afs +%attr(555,root,root) /afs + %files -f filelist %defattr(0755,root,root,0755) %dir %attr(555,root,root) / @@ -294,6 +308,9 @@ restorecon /media 2>/dev/null >/dev/null || : /var/yp %changelog +* Thu Jun 20 2019 David Howells - 3.12-1 +- add new -afs supbackage for /afs directory (#FPC888,#1720232) + * Mon Apr 29 2019 Ondrej Vasik - 3.11-1 - drop ownership for /etc/xinet.d (#1691146) - drop ownership for %{_libdir}/tls, %{_libdir}/sse2 (#1702329)