- I was still having problems with the pathnames in /usr/lib.

Now I hope I have it right.  After the sed script it should look like
    %attr(-,root,root) %dir /usr/lib/bochs
  I was having trouble getting the initial / on "/usr/lib/bochs"
This commit is contained in:
Bryce Denney 2002-11-19 20:50:04 +00:00
parent b601437f2d
commit 9dd8981c1a

View File

@ -40,12 +40,12 @@ and other OS's, all on your workstation.
# Build list of plugins on the fly (if any). This allows the
# spec file to support RPM building with or without plugins.
cd $RPM_BUILD_ROOT
find usr/lib -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir /,' > \
find ./usr/lib -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
$RPM_BUILD_DIR/file.list.%{pkg_name}
find usr/lib -type f | sed -e 's,^\.,\%attr(-\,root\,root) /,' \
find ./usr/lib -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
-e '/\/etc\//s|^|%config|' >> \
$RPM_BUILD_DIR/file.list.%{pkg_name}
find usr/lib -type l | sed 's,^\.,\%attr(-\,root\,root) /,' >> \
find ./usr/lib -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
$RPM_BUILD_DIR/file.list.%{pkg_name}
# We could use the same technique to produce the complete file list,
# with only one very minor problem: it lists directories that are