/[smecontribs]/rpms/php5-cgi/contribs7/php5-cgi.spec
ViewVC logotype

Diff of /rpms/php5-cgi/contribs7/php5-cgi.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by slords, Thu Mar 4 16:11:51 2010 UTC Revision 1.6 by slords, Thu Jul 15 16:29:12 2010 UTC
# Line 1  Line 1 
1  # $Id: php5-cgi.spec,v 1.3 2009/11/03 06:26:30 marcohess Exp $  # $Id: php5-cgi.spec,v 1.2 2009/03/04 19:31:30 slords Exp $
2  # Authority: nocvs  # Authority: nocvs
3  # Name: David Harper  # Name: David Harper
4    
# Line 14  Line 14 
14    
15  Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)  Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
16  Name: php5-cgi  Name: php5-cgi
17  Version: 5.2.8  Version: 5.3.2
18  Release: 2%{?dist}  Release: 1%{?dist}
19  %{?rh90:Epoch: 1 }  %{?rh90:Epoch: 1 }
20  License: The PHP License  License: The PHP License
21  Group: Development/Languages  Group: Development/Languages
# Line 33  Source50: php5.conf Line 33  Source50: php5.conf
33  #Patch7: php-4.3.2-libtool15.patch  #Patch7: php-4.3.2-libtool15.patch
34  #Patch8: php-4.3.3-miscfix.patch  #Patch8: php-4.3.3-miscfix.patch
35  #Patch9: php-4.3.6-umask.patch  #Patch9: php-4.3.6-umask.patch
36  Patch10: php-4.3.7-handler.patch  #Patch10: php-4.3.7-handler.patch
37  Patch11: php-4.3.8-fdsetsize.patch  #Patch11: php-4.3.8-fdsetsize.patch
38    
39  # Fixes for extension modules  # Fixes for extension modules
40  #Patch21: php-4.3.1-odbc.patch  #Patch21: php-4.3.1-odbc.patch
# Line 45  Patch11: php-4.3.8-fdsetsize.patch Line 45  Patch11: php-4.3.8-fdsetsize.patch
45  #Patch30: php-4.3.1-dlopen.patch  #Patch30: php-4.3.1-dlopen.patch
46  #Patch31: php-4.3.4-easter.patch  #Patch31: php-4.3.4-easter.patch
47    
48    # Fix for PHAR bug
49    Patch32: php-5.3.2-phar.patch
50    
51  BuildRoot: %{_tmppath}/%{name}-root  BuildRoot: %{_tmppath}/%{name}-root
52    
53  BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel, freetype-devel  BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel, freetype-devel
# Line 64  Requires: php5-cgi-pear Line 67  Requires: php5-cgi-pear
67  Conflicts: php >= 5.0.0  Conflicts: php >= 5.0.0
68  # Require extension which was previously built-in  # Require extension which was previously built-in
69  # Requires: php-mbstring = %{version}-%{release}  # Requires: php-mbstring = %{version}-%{release}
 # ^^ dunno if mbstring is required anymore, couldn't get it to compile  
 # initially so I nuked the requirement  
70    
71    
72  %description  %description
# Line 184  php package. Line 185  php package.
185  %package odbc  %package odbc
186  Group: Development/Languages  Group: Development/Languages
187  Requires: php5-cgi = %{version}-%{release}  Requires: php5-cgi = %{version}-%{release}
188    Requires: unixODBC
189  Summary: A module for PHP applications that use ODBC databases.  Summary: A module for PHP applications that use ODBC databases.
190  Provides: php_database  Provides: php_database
191  Obsoletes: stronghold-php-odbc  Obsoletes: stronghold-php-odbc
# Line 259  to main PHP package if you plan to use a Line 261  to main PHP package if you plan to use a
261  Summary: A module for PHP applications that query SNMP-managed devices.  Summary: A module for PHP applications that query SNMP-managed devices.
262  Group: Development/Languages  Group: Development/Languages
263  Requires: php5-cgi = %{version}-%{release}  Requires: php5-cgi = %{version}-%{release}
264    Requires: net-snmp-utils
265  BuildRequires: net-snmp-devel, elfutils-devel  BuildRequires: net-snmp-devel, elfutils-devel
266  # elfutils-devel requirement workaround for #103982  # elfutils-devel requirement workaround for #103982
267    
# Line 287  Requires: php5-cgi = %{version}-%{releas Line 290  Requires: php5-cgi = %{version}-%{releas
290  The php-mbstring package contains a dynamic shared object that will add  The php-mbstring package contains a dynamic shared object that will add
291  support for multi-byte string handling to PHP.  support for multi-byte string handling to PHP.
292    
293    %package soap
294    Summary: A module for PHP applications which use the SOAP protocol
295    Group: Development/Languages
296    Requires: php5-cgi = %{version}-%{release}
297    
298    %description soap
299    The php-soap package contains a dynamic shared object that will add
300    support to PHP for using the SOAP web services protocol.
301    
302    
303  %prep  %prep
304  %setup -q -n php-%{version}  %setup -q -n php-%{version}
305  #%patch2 -p1 -b .config  #%patch2 -p1 -b .config
# Line 306  support for multi-byte string handling t Line 319  support for multi-byte string handling t
319    
320  #%patch30 -p1 -b .dlopen  #%patch30 -p1 -b .dlopen
321  ##%patch31 -p1 -b .easter  ##%patch31 -p1 -b .easter
322    %patch32 -p1 -b .orig
323    
324  # Prevent %%doc confusion over LICENSE files  # Prevent %%doc confusion over LICENSE files
325  cp Zend/LICENSE Zend/ZEND_LICENSE  cp Zend/LICENSE Zend/ZEND_LICENSE
326  cp TSRM/LICENSE TSRM_LICENSE  cp TSRM/LICENSE TSRM_LICENSE
327  cp regex/COPYRIGHT regex_COPYRIGHT  cp ext/ereg/regex/COPYRIGHT regex_COPYRIGHT
328  cp ext/gd/libgd/README gd_README  cp ext/gd/libgd/README gd_README
329    
330  # Source is built twice: once for /usr/bin/php5/php, once for the Apache DSO.  # Source is built twice: once for /usr/bin/php5/php, once for the Apache DSO.
331  mkdir build-cgi  mkdir build-cgi
332    
333  # Use correct libdir  # Use correct libdir
334  perl -pi -e 's|%{_prefix}/lib|%{_libdir}|' php.ini-recommended  perl -pi -e 's|%{_prefix}/lib|%{_libdir}|' php.ini-production
335  perl -pi -e 's|extension_dir \= \"\.\/\"|extension_dir \= \"%{_libdir}\/php5\/\"|' php.ini-recommended  perl -pi -e 's|extension_dir \= \"\.\/\"|extension_dir \= \"%{_libdir}\/php5\/\"|' php.ini-production
336    
337  # Remove bogus test; position of read position after fopen(, "a+")  # Remove bogus test; position of read position after fopen(, "a+")
338  # is not defined by C standard, so don't presume anything.  # is not defined by C standard, so don't presume anything.
# Line 430  ln -sf ../configure Line 444  ln -sf ../configure
444          --with-snmp=shared \          --with-snmp=shared \
445          --enable-ucd-snmp-hack \          --enable-ucd-snmp-hack \
446          --with-unixODBC=shared,%{_prefix} \          --with-unixODBC=shared,%{_prefix} \
447            --enable-soap=shared \
448          --enable-memory-limit \          --enable-memory-limit \
449          --enable-bcmath \          --enable-bcmath \
450          --enable-shmop \          --enable-shmop \
# Line 466  build Line 481  build
481  %{?rh90:install -m 644 /etc/httpd/conf/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf }  %{?rh90:install -m 644 /etc/httpd/conf/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf }
482    
483  # Install from CGI tree  # Install from CGI tree
484  pushd build-cgi  # pushd build-cgi
485  make install INSTALL_ROOT=$RPM_BUILD_ROOT  # make install INSTALL_ROOT=$RPM_BUILD_ROOT
486  popd  # popd
487    
488    # install everything from the CGI SAPI build
489    # updated method as of 5.2.13
490    make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT
491    
492  # remove build files  # remove build files
493  rm -fr $RPM_BUILD_ROOT%{_libdir}/php  rm -fr $RPM_BUILD_ROOT%{_libdir}/php
494    
495  # Install the default configuration file and icons  # Install the default configuration file and icons
496  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5
497  install -m 644    php.ini-recommended $RPM_BUILD_ROOT%{_sysconfdir}/php5/php.ini  install -m 644    php.ini-production $RPM_BUILD_ROOT%{_sysconfdir}/php5/php.ini
498  #install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons  #install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
499  #install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/  #install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
500    
# Line 488  install -m 755 -d $RPM_BUILD_ROOT%{_loca Line 507  install -m 755 -d $RPM_BUILD_ROOT%{_loca
507  install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php5/session  install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php5/session
508    
509  # Generate files lists and stub .ini files for each subpackage  # Generate files lists and stub .ini files for each subpackage
510  for mod in pgsql mysql odbc ldap snmp xmlrpc imap %{?_with_mbstring:mbstring} \  for mod in pgsql mysql odbc ldap snmp soap xmlrpc imap %{?_with_mbstring:mbstring} \
511      %{?_with_oci8:oci8} %{?_with_mssql:mssql} %{?_with_mhash:mhash} %{?_with_mcrypt:mcrypt}; do      %{?_with_oci8:oci8} %{?_with_mssql:mssql} %{?_with_mhash:mhash} %{?_with_mcrypt:mcrypt}; do
512      cat > $RPM_BUILD_ROOT%{_sysconfdir}/php5/php5.d/${mod}.ini <<EOF      cat > $RPM_BUILD_ROOT%{_sysconfdir}/php5/php5.d/${mod}.ini <<EOF
513  ; Enable ${mod} extension module  ; Enable ${mod} extension module
# Line 531  rm files.* Line 550  rm files.*
550  %config %{_sysconfdir}/php5/pear.conf  %config %{_sysconfdir}/php5/pear.conf
551  %{_bindir}/php5/php  %{_bindir}/php5/php
552  %{_bindir}/php5/php-cgi  %{_bindir}/php5/php-cgi
553    %{_bindir}/php5/phar.phar
554  %dir %{_libdir}/php5  %dir %{_libdir}/php5
555  %dir %{_localstatedir}/lib/php5  %dir %{_localstatedir}/lib/php5
556  %attr(0700,apache,apache) %dir %{_localstatedir}/lib/php5/session  %attr(0700,apache,apache) %dir %{_localstatedir}/lib/php5/session
# Line 596  rm files.* Line 616  rm files.*
616  %files mbstring -f files.mbstring  %files mbstring -f files.mbstring
617  %endif  %endif
618    
619    %files soap -f files.soap
620    # %{_libdir}/php5/soap.so
621    
622  %changelog  %changelog
623  * Tue Nov 3 2009 Marco Hess <marco.hess@through-ip.com) 5.2.8-2  * Wed Jun 6 2010 David Harper <davidiwharper@hotmail.com> 5.3.2-1.el4
624  - Porting David Harper's <davidiwharper@hotmail.com> changes and updates  - Update to the latest version of PHP
625    to SME Contribs CVS repository and build system. Leave 5.3.0 upgrade  - Add SOAP extension [SME: 5878]
626    for now, but ported:  - Build fixes for CentOS/SME
627    - Fix for PHP4 compatibility issues [SME: 5463]  - Add Fedora patch for phar.phar shebang [PHP: 50578]
628    - Add MySQLi support  
   - Re-add mbstring support  
   - Misc. build fixes for CentOS/SME  
     
629  * Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4  * Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4
630  - Fix for PHP4 compatibility issues [SME: 5463]  - Fix for PHP4 compatibility issues [SME: 5463]
631    
# Line 615  rm files.* Line 635  rm files.*
635  - Re-add mbstring support  - Re-add mbstring support
636  - Misc. build fixes for CentOS/SME  - Misc. build fixes for CentOS/SME
637    
638  * Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.dh  * Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.el4
639  - Upgrade to latest version of PHP  - Upgrade to latest version of PHP
640  - Build fixes for CentOS/SME  - Build fixes for CentOS/SME
641    
# Line 623  rm files.* Line 643  rm files.*
643  - Mass upgrade  - Mass upgrade
644  - Added rhel4 flags  - Added rhel4 flags
645  - Fixed pointers to changed (?) libraries from lib.so to just lib. Odd change.  - Fixed pointers to changed (?) libraries from lib.so to just lib. Odd change.
646    
647  * Fri Jun 10 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-2  * Fri Jun 10 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-2
648  - Fixed tidy again.  - Fixed tidy again.
649    
650  * Sun May 29 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-1  * Sun May 29 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-1
651  - Upgrade to 5.0.4  - Upgrade to 5.0.4
652    
653  * Sat Feb 19 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-3  * Sat Feb 19 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-3
654  - addition of --with-tidy  - addition of --with-tidy
655    
656  * Wed Jan 26 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-1  * Wed Jan 26 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-1
657  - initial conversion to a CGI version for PHP5  - initial conversion to a CGI version for PHP5
658  - removed domxml since it's been moved to PECL in PHP5  - removed domxml since it's been moved to PECL in PHP5


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed