packages: php-Smarty/php-Smarty.spec - cleanup smarty2 triggers

glen glen at pld-linux.org
Wed Dec 15 21:48:44 CET 2010


Author: glen                         Date: Wed Dec 15 20:48:44 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- cleanup smarty2 triggers

---- Files affected:
packages/php-Smarty:
   php-Smarty.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/php-Smarty/php-Smarty.spec
diff -u packages/php-Smarty/php-Smarty.spec:1.7 packages/php-Smarty/php-Smarty.spec:1.8
--- packages/php-Smarty/php-Smarty.spec:1.7	Tue Dec 14 12:15:03 2010
+++ packages/php-Smarty/php-Smarty.spec	Wed Dec 15 21:48:39 2010
@@ -66,34 +66,19 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{appdir}/{plugins,sysplugins},%{php_pear_dir}}
+install -d $RPM_BUILD_ROOT{%{appdir}/{plugins,sysplugins}}
 
 cp -a libs/Smarty.class.php $RPM_BUILD_ROOT%{php_data_dir}
 cp -a libs/debug.tpl $RPM_BUILD_ROOT%{appdir}
 cp -a libs/plugins/*.php $RPM_BUILD_ROOT%{appdir}/plugins
 cp -a libs/sysplugins/*.php $RPM_BUILD_ROOT%{appdir}/sysplugins
 
-# backards compatible with pear dir
-ln -s %{appdir} $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
-
 # backards compatible with entry point in subdir
 ln -s ../Smarty.class.php $RPM_BUILD_ROOT%{appdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-# make compat symlink, the symlink is discarded using %ghost on package uninstall
-%triggerpostun -- Smarty < 2.6.10-4
-if [ -d %{php_pear_dir}/%{name}/plugins ]; then
-	mv %{php_pear_dir}/%{name}/plugins/* %{appdir}/plugins
-	rmdir %{php_pear_dir}/%{name}/plugins 2>/dev/null
-fi
-rmdir %{php_pear_dir}/%{name} 2>/dev/null || mv -v %{php_pear_dir}/%{name}{,.rpmsave}
-ln -s %{appdir} %{php_pear_dir}/%{name}
-
-%post
-[ -e %{php_pear_dir}/%{name} ] || ln -s %{appdir} %{php_pear_dir}/%{name}
-
 %files
 %defattr(644,root,root,755)
 %doc README SMARTY2_BC_NOTES
@@ -109,9 +94,6 @@
 %{appdir}/plugins/*.php
 %{appdir}/sysplugins/*.php
 
-# for the sake of bc when installed to pear dir
-%ghost %{php_pear_dir}/%{name}
-
 %files doc
 %defattr(644,root,root,755)
 %doc demo/*
@@ -122,6 +104,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2010/12/15 20:48:39  glen
+- cleanup smarty2 triggers
+
 Revision 1.7  2010/12/14 11:15:03  glen
 - up to 3.0.6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-Smarty/php-Smarty.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list