/[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.1 by slords, Wed Mar 4 17:04:43 2009 UTC Revision 1.6 by slords, Thu Jul 15 16:29:12 2010 UTC
# Line 1  Line 1 
1  # $Id: php5-sme.spec,v 1.2 2009/03/04 15:02:45 slords Exp $  # $Id: php5-cgi.spec,v 1.2 2009/03/04 19:31:30 slords Exp $
2  # Authority: ????  # Authority: nocvs
3  # Name: David Harper  # Name: David Harper
4    
5  %define rhel4 1  %define rhel4 1
# 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: 1%{?dist}  Release: 1%{?dist}
19  %{?rh90:Epoch: 1 }  %{?rh90:Epoch: 1 }
20  License: The PHP License  License: The PHP License
# 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 57  BuildRequires: bzip2, fileutils, perl, l Line 60  BuildRequires: bzip2, fileutils, perl, l
60  %{?_with_tidy:BuildRequires: tidy}  %{?_with_tidy:BuildRequires: tidy}
61  %{?_with_tidy:Requires: tidy}  %{?_with_tidy:Requires: tidy}
62    
63  Obsoletes: php-dbg, mod_php, php3, phpfi, stronghold-php, php-xslt  Obsoletes: php-dbg, php3, phpfi, stronghold-php, php-xslt
64  # Enforce Apache module ABI compatibility  # Enforce Apache module ABI compatibility
65  Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)  Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
66  Requires: php5-cgi-pear  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 374  ln -sf ../configure Line 388  ln -sf ../configure
388          --with-curl \          --with-curl \
389          --with-exec-dir=%{_bindir}/php5 \          --with-exec-dir=%{_bindir}/php5 \
390          --with-freetype-dir=%{_prefix} \          --with-freetype-dir=%{_prefix} \
391            --with-libdir=%{_lib} \
392          --with-png-dir=%{_prefix} \          --with-png-dir=%{_prefix} \
393          --with-gd \          --with-gd \
394          --enable-gd-native-ttf \          --enable-gd-native-ttf \
395            --enable-mbstring \
396            --with-mysqli=/usr/bin/mysql_config \
397          --without-gdbm \          --without-gdbm \
398          --with-gettext \          --with-gettext \
399          --with-ncurses \          --with-ncurses \
# Line 427  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 463  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 485  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 528  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 553  rm files.* Line 576  rm files.*
576  %{_libdir}/php5/build  %{_libdir}/php5/build
577    
578  %files pgsql -f files.pgsql  %files pgsql -f files.pgsql
579  %{_libdir}/php5/pgsql.so  #%{_libdir}/php5/pgsql.so
580    
581  %files mysql -f files.mysql  %files mysql -f files.mysql
582  %{_libdir}/php5/mysql.so  #%{_libdir}/php5/mysql.so
583    
584  %files odbc -f files.odbc  %files odbc -f files.odbc
585  %{_libdir}/php5/odbc.so  #%{_libdir}/php5/odbc.so
586    
587  %if %{with_oci8}  %if %{with_oci8}
588  %files oci8 -f files.oci8  %files oci8 -f files.oci8
# Line 578  rm files.* Line 601  rm files.*
601  %endif  %endif
602    
603  %files imap -f files.imap  %files imap -f files.imap
604  %{_libdir}/php5/imap.so  # %{_libdir}/php5/imap.so
605    
606  %files ldap -f files.ldap  %files ldap -f files.ldap
607  %{_libdir}/php5/ldap.so  # %{_libdir}/php5/ldap.so
608    
609  %files snmp -f files.snmp  %files snmp -f files.snmp
610  %{_libdir}/php5/snmp.so  # %{_libdir}/php5/snmp.so
611    
612  %files xmlrpc -f files.xmlrpc  %files xmlrpc -f files.xmlrpc
613  %{_libdir}/php5/xmlrpc.so  # %{_libdir}/php5/xmlrpc.so
614    
615  %if %{with_mbstring}  %if %{with_mbstring}
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  * Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.dh  * Wed Jun 6 2010 David Harper <davidiwharper@hotmail.com> 5.3.2-1.el4
624    - Update to the latest version of PHP
625    - Add SOAP extension [SME: 5878]
626    - Build fixes for CentOS/SME
627    - Add Fedora patch for phar.phar shebang [PHP: 50578]
628    
629    * Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4
630    - Fix for PHP4 compatibility issues [SME: 5463]
631    
632    * Sun Sep 6 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-1.el4
633    - Upgrade to the latest version of PHP [SME: 5376]
634    - Add MySQLi support
635    - Re-add mbstring support
636    - Misc. build fixes for CentOS/SME
637    
638    * 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    
642  * Fri Jan 20 2006 Stuart K. Low <stuart@serverpeak.com> 5.1.2-1  * Fri Jan 20 2006 Stuart K. Low <stuart@serverpeak.com> 5.1.2-1
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