CBEenv.spec
changeset 11 6769bf4088b7
parent 10 a65a967018ee
child 13 1669a54e47a8
--- a/CBEenv.spec	Tue Jun 10 13:04:19 2008 +0000
+++ b/CBEenv.spec	Thu Jun 12 11:11:47 2008 +0000
@@ -32,6 +32,7 @@
 cp %SOURCE1 $RPM_BUILD_ROOT%{_bindir}
 cp %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
 chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/cbe-env
 
 %if %(pkginfo -q CBEautomake && echo 0 || echo 1)
 # create the "automake" symlink to automake 1.10 when using the
@@ -70,12 +71,18 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%preun
+rm -f $BASEDIR/lib/cbe-env/*
+
 %files
 %defattr(-, root, bin)
 %dir %attr (0755, root, bin) %{_bindir}
 %{_bindir}/*
+%dir %attr (0755, %build_user, other) %{_libdir}/cbe-env
 
 %changelog
+* Thu Jun 12 2008  <[email protected]>
+- add cbe-env dir and preun script for deleting the env files
 * Wed Jun 11 2008  <[email protected]>
 - update version, create symlinks for [Open]Solaris gnu make, automake, aclocal
 * Mon Apr 14 2008 - [email protected]