Search
j0ke.net Open Build Service
>
Projects
>
oldschool
>
mod_php4
> mod_php4-4.3.11.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mod_php4-4.3.11.spec of Package mod_php4
%define TYPE SECUP %define prefix /usr Name: mod_php4 Summary: Latest version of the HTML embedded scripting language Version: 4.3.11 Release: 1 URL: http://www.php4.net/ Group: Development/Languages License: the PHP project Vendor: InterNetX GmbH Packager: InterNetX Package Maintainer <packager@internetx.de> BuildPreReq: gcc BuildPreReq: autoconf BuildPreReq: automake BuildPreReq: apache-devel BuildPreReq: freetype2 BuildPreReq: freetype2-devel BuildPreReq: mysql >= 3.23.56 BuildPreReq: mysql-devel >= 3.23.56 BuildPreReq: xshared BuildPreReq: xdevel BuildPreReq: zziplib BuildPreReq: zziplib-devel BuildPreReq: gdbm BuildPreReq: gdbm-devel BuildPreReq: curl BuildPreReq: libmcrypt BuildPreReq: libmcrypt-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root Source: php-4.3.11.tar.bz2 Patch: %{name}-%{version}.diff %description PHP is a server-side, cross-platform, HTML embedded scripting language. If you are completely new to PHP and want to get some idea of how it works, have a look at the Introductory Tutorial. Once you get beyond that have a look at the example archive sites and some of the other resources available in the Links section. PHP4 is the latest version. %package core Summary: core files of PHP4 Group: Development/Languages %description core This package contains the core files of PHP4. Additionally the modules for certain webservers like Apache or Roxen may be installed. %prep %setup -n php-%{version} %patch -p1 %build ./configure \ --prefix=%{prefix} \ --exec-prefix=%{prefix} \ --bindir=%{prefix}/bin \ --sbindir=%{prefix}/sbin \ --sysconfdir=/etc \ --datadir=%{prefix}/share \ --includedir=%{prefix}/include \ --libdir=%{prefix}/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=%{prefix}/man \ --infodir=%{prefix}/info \ --with-mysql=/usr \ --with-apxs=/usr/sbin/apxs \ --enable-ftp \ --enable-track-vars \ --with-tiff-dir \ --with-jpeg-dir \ --with-png-dir \ --with-gd \ --with-zlib=yes \ --with-curl \ --with-xml \ --with-ttf \ --with-dbm \ --with-ndbm \ --with-gdbm \ --with-mcrypt \ --with-snmp \ --with-mm \ --with-gettext \ --with-config-file-path=/etc/httpd \ --with-exec-dir=/usr/lib/apache/bin \ --enable-versioning \ --enable-yp \ --enable-trans-sid \ --enable-inline-optimization \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sysvsem \ --enable-sysvshm \ --enable-bcmath \ --enable-calendar \ --enable-memory-limit \ --enable-wddx \ --disable-posix \ --enable-sockets \ --enable-force-cgi-redirect \ --enable-discard-path \ --with-freetype-dir=/usr/include \ --with-imap \ --with-imap-ssl \ --with-openssl \ --with-zip=/usr/lib/ sed -e 's/-i -a -n php4 libs\/libphp4.so/-i -n php4 libs\/libphp4.so/' Makefile > Makefile.tmp mv Makefile.tmp Makefile make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/httpd/modules/ #touch $RPM_BUILD_ROOT/etc/httpd/httpd.conf #cp /etc/httpd/httpd.conf $RPM_BUILD_ROOT/etc/httpd/httpd.conf make install INSTALL_ROOT="$RPM_BUILD_ROOT" #install -d $RPM_BUILD_ROOT/etc/httpd/modules/ install PATCH/etc_httpd_modules_mod_php4 $RPM_BUILD_ROOT/etc/httpd/modules/mod_php4 install -d $RPM_BUILD_ROOT/var/adm/fillup-templates/ install PATCH/var_adm_fillup-templates_apache-mod_php4.rc.config $RPM_BUILD_ROOT/var/adm/fillup-templates/apache-mod_php4.rc.config install PATCH/php.ini $RPM_BUILD_ROOT/etc/httpd/php.ini # generate filelist cd $RPM_BUILD_ROOT find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.mod_php4 find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.mod_php4 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.mod_php4 cat $RPM_BUILD_DIR/file.list.mod_php4 | sed s/"\/usr\/man\/man1\/php.1"/"\/usr\/man\/man1\/php.1.gz"/g > $RPM_BUILD_DIR/file.list.mod_php4.new %pre if [ -e /usr/lib/apache/libphp4.so ] ; then cp /usr/lib/apache/libphp4.so /usr/lib/apache/libphp4.so.rpmsave echo echo "/usr/lib/apache/libphp4.so has been saved as /usr/lib/apache/libphp4.so.rpmsave" fi %post echo -n "Updating etc/rc.config.d/apache.rc.config..." if [ -x bin/fillup ] ; then test -e etc/rc.config.d/apache.rc.config || touch etc/rc.config.d/apache.rc.config bin/fillup -q -d = etc/rc.config.d/apache.rc.config var/adm/fillup-templates/apache-mod_php4.rc.config echo " Done." else echo echo "ERROR: fillup not found. This should not happen. Please compare" echo "etc/rc.config.d/apache.rc.config and " echo "var/adm/fillup-templates/apache-mod_php4.rc.config and update by hand." fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf %{_builddir}/php-%{version} %files %config(noreplace) /etc/httpd/modules/mod_php4 %config(noreplace) /etc/httpd/php.ini /usr/lib/apache/libphp4.so /var/adm/fillup-templates/apache-mod_php4.rc.config %files core -f ../file.list.mod_php4.new