Browse Source

reduce diff to php5 package

Ralf S. Engelschall 22 years ago
parent
commit
da20f169c5
1 changed files with 7 additions and 2 deletions
  1. 7 2
      php/php.spec

+ 7 - 2
php/php.spec

@@ -35,7 +35,7 @@ License:      PHP
 Version:      4.3.4
 Release:      20031127
 
-#   package options (analog to apache.spec)
+#   package options
 %option       with_calendar      no
 %option       with_mysql         no
 %option       with_pgsql         no
@@ -69,7 +69,7 @@ Release:      20031127
 %option       with_pear          no
 %option       with_snmp          no
 
-#   fixing implicit inter-module dependencies and correlations
+#   fixing implicit extension dependencies and correlations
 %if "%{with_pear}" == "yes"
 %undefine     with_xml
 %define       with_xml           yes
@@ -397,6 +397,11 @@ AutoReqProv:  no
     %{l_shtool} install -c -m 644 /dev/null \
         $RPM_BUILD_ROOT%{l_prefix}/etc/php/php.ini
 
+    #   strip down installation
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/php/build
+    rmdir $RPM_BUILD_ROOT%{l_prefix}/lib/php >/dev/null 2>&1 || true
+    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+
     #   determine installation files
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
         '%config %{l_prefix}/etc/php/*'