- fixed NoSource
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 29 Mar 2005 10:07:50 +0000 (10:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ZendStudioServer.spec -> 1.2

ZendStudioServer.spec

index ed5ec05..5767625 100644 (file)
@@ -1,14 +1,14 @@
 Summary:       ZendStudioServer
 Name:          ZendStudioServer
 Version:       4.0.0
-Release:       0.3
+Release:       0.5
 Epoch:         0
 License:       Zend Studio License
 #Vendor:               -
 Group:         Applications
 #Icon:         -
 Source0:       %{name}-%{version}-linux-glibc21-i386.tar.gz
-# Source0-md5: b7b24ac8736830e4b7a3a4d8124b3de0
+# NoSource0-md5:       b7b24ac8736830e4b7a3a4d8124b3de0
 NoSource:      0
 #Source1:      -
 # Source1-md5: -
@@ -88,40 +88,41 @@ zend_extension_manager.debug_server_ts=%{_libdir}/Zend/lib/Debugger_TS-4.0.0
 EOF
 
 #install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/zendstudioserver.ini
+sed -e 's,^#,;,' php.ini > $RPM_BUILD_ROOT%{_libdir}/Zend/php.ini
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-umask 022
-for php in /etc/php{,4}/php.ini; do
-       if [ -f $php ]; then
-               echo "activating module 'ZendDebugger.so' in $php" 1>&2
-               cp $php{,.zend-backup}
-               grep -v zend_optimizer.optimization_level $php | \
-               grep -v zend_extension > $php.tmp
-               echo '[Zend]' >> $php.tmp
-               echo "zend_optimizer.optimization_level=$optlevel" >> $php.tmp
-               echo "zend_extension_manager.optimizer=%{_libdir}/Zend/lib/Optimizer-%{version}" >> $php.tmp
-               echo "zend_extension_manager.optimizer_ts=%{_libdir}/Zend/lib/Optimizer_TS-%{version}" >> $php.tmp
-               echo "zend_extension=%{_libdir}/Zend/lib/ZendExtensionManager.so" >> $php.tmp
-               echo "zend_extension_ts=%{_libdir}/Zend/lib/ZendExtensionManager_TS.so" >> $php.tmp
-               mv $php{.tmp,}
-       fi
-done
-
-%postun
-if [ "$1" = "0" ]; then
-       umask 022
-       for php in /etc/php{,4}/php.ini; do
-               if [ -f $php ]; then
-                       echo "deactivating module 'ZendDebugger.so' in $php" 1>&2
-                       grep -v '\[Zend\]' $php |\
-                       grep -v zend_extension |grep -v zend_optimizer > $php.tmp
-                       mv $php.tmp $php
-               fi
-       done
-fi
+#%post
+#umask 022
+#for php in /etc/php{,4}/php.ini; do
+#      if [ -f $php ]; then
+#              echo "activating module 'ZendDebugger.so' in $php" 1>&2
+#              cp $php{,.zend-backup}
+#              grep -v zend_optimizer.optimization_level $php | \
+#              grep -v zend_extension > $php.tmp
+#              echo '[Zend]' >> $php.tmp
+#              echo "zend_optimizer.optimization_level=$optlevel" >> $php.tmp
+#              echo "zend_extension_manager.optimizer=%{_libdir}/Zend/lib/Optimizer-%{version}" >> $php.tmp
+#              echo "zend_extension_manager.optimizer_ts=%{_libdir}/Zend/lib/Optimizer_TS-%{version}" >> $php.tmp
+#              echo "zend_extension=%{_libdir}/Zend/lib/ZendExtensionManager.so" >> $php.tmp
+#              echo "zend_extension_ts=%{_libdir}/Zend/lib/ZendExtensionManager_TS.so" >> $php.tmp
+#              mv $php{.tmp,}
+#      fi
+#done
+
+#%postun
+#if [ "$1" = "0" ]; then
+#      umask 022
+#      for php in /etc/php{,4}/php.ini; do
+#              if [ -f $php ]; then
+#                      echo "deactivating module 'ZendDebugger.so' in $php" 1>&2
+#                      grep -v '\[Zend\]' $php |\
+#                      grep -v zend_extension |grep -v zend_optimizer > $php.tmp
+#                      mv $php.tmp $php
+#              fi
+#      done
+#fi
 
 %files
 %defattr(644,root,root,755)
@@ -152,3 +153,5 @@ fi
 %{_libdir}/Zend/lib/Debugger_TS-%{version}/php-5.0.x/ZendDebugger.so
 
 %{_libdir}/Zend/lib/tools
+
+%{_libdir}/Zend/php.ini
This page took 0.046569 seconds and 4 git commands to generate.