SPECS: icecream.spec - merged few hacks from fedora - added %post/preun scr...
paszczus
paszczus at pld-linux.org
Tue Sep 9 12:46:03 CEST 2008
Author: paszczus Date: Tue Sep 9 10:46:03 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- merged few hacks from fedora
- added %post/preun scripts
---- Files affected:
SPECS:
icecream.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/icecream.spec
diff -u SPECS/icecream.spec:1.8 SPECS/icecream.spec:1.9
--- SPECS/icecream.spec:1.8 Tue Sep 9 12:19:17 2008
+++ SPECS/icecream.spec Tue Sep 9 12:45:57 2008
@@ -53,6 +53,7 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_libdir}/icecc/bin
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -60,10 +61,25 @@
install suse/sysconfig.icecream $RPM_BUILD_ROOT/etc/sysconfig/icecream
install suse/init.icecream $RPM_BUILD_ROOT/etc/rc.d/init.d/icecream
+for i in cc gcc c++ g++; do
+ ln -sf %{_bindir}/icecc $RPM_BUILD_ROOT%{_libdir}/icecc/bin/$i
+ rm -f $RPM_BUILD_ROOT%{_bindir}/$i
+done
+
+
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
%postun -p /sbin/ldconfig
%files
@@ -72,6 +88,11 @@
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/icecream
%attr(755,root,root) %{_bindir}/icecc
+%{_libdir}/icecc/bin/cc
+%{_libdir}/icecc/bin/gcc
+%{_libdir}/icecc/bin/c++
+%{_libdir}/icecc/bin/g++
+%{_libdir}/icecc/icecc-create-env
%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%attr(755,root,root) %{_libdir}/libicecc.so.0
@@ -90,6 +111,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2008/09/09 10:45:57 paszczus
+- merged few hacks from fedora
+- added %post/preun scripts
+
Revision 1.8 2008/09/09 10:19:17 paszczus
- started to PLDize this spec
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/icecream.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list