- adding /etc/zce.rc to /etc/profile.d, to be able to syming

/usr/bin/php with real php binary (not php-cli script)
- explicitly requiring php extensions, as php-common-extensions-zend-pe
  does NOT contain necessary dependencies
- added Provides for original php extensions
- removed repo packages, as it has to be there before anyway
This commit is contained in:
Ralf Becker 2009-06-09 11:32:33 +00:00
parent 797f88388b
commit d10f8eccdf

View File

@ -23,17 +23,18 @@ Buildarch: noarch
#Requires: %{name}-repo
Requires: zend-base-pe php-dev-zend-pe extension-manager-zend-pe
# hard requirements from egw
Requires: php-mysql-zend-pe php-imap-zend-pe php-gd-zend-pe php-pdo-mysql-zend-pe php-mbstring-zend-pe php-mcrypt-zend-pe
Requires: php5-common-extensions-zend-pe
# useful other extensions (sometimes) used by egw
Requires: php-ldap-zend-pe php-bz2-zend-pe php-ctype-zend-pe php-curl-zend-pe php-mime-magic-zend-pe php-posix-zend-pe
#Requires: php5-common-extensions-zend-pe #has to many not listed dependencies
Requires: optimizer-plus-zend-pe
Requires: mod-php5-apache2-zend-pe
# php-mcrypt-zend-pe misses the following dependency:
Requires: libmcrypt
#Provides: %{php} = %{version}
# these are requirements of egroupware(-epl), but not listed as provides in zend server
Provides: php-cli php-common php-xml php-pear
#Conflicts: %{php}
Provides: php-cli php-common php-xml php-pear php-mbstring php-mysql php-gd php-imap
%description
Zend Server Community Edition (CE) is a free Web Application Server that is
@ -50,7 +51,7 @@ in production or just experimenting with PHP.
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
cd $RPM_BUILD_ROOT%{prefix}/bin
ln -s %{zend_dir}/bin/php-cli php
ln -s %{zend_dir}/bin/php
ln -s %{zend_dir}/bin/pear
ln -s %{zend_dir}/bin/pecl
ln -s %{zend_dir}/bin/phpize
@ -58,17 +59,19 @@ mkdir -p $RPM_BUILD_ROOT/etc
cd $RPM_BUILD_ROOT/etc
ln -s %{zend_dir}/etc/php.ini
ln -s %{zend_dir}/etc/conf.d php.d
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
cd $RPM_BUILD_ROOT/etc/profile.d
ln -s ../zce.rc zend.sh
# Zend Server 4.0.3 has a fixed coded mysql socket: /tmp/mysql.sock
mkdir -p $RPM_BUILD_ROOT/tmp
cd $RPM_BUILD_ROOT/tmp
ln -s /var/lib/mysql/mysql.sock
#mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d
#cp zend.repo /etc/yum.repos.d
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
# Zend Server 4.0.3 seems not to be able to work with SELinux
# Zend Server 4.0.3 (mod-php5-apache2-zend-pe) seems not to be able to work with SELinux
# ToDo: add appropriate rules, instead of switching SELinux completly off
%post
%if 0%{?rhel_version} || 0%{?fedora_version} || 0%{?centos_version}
setenforce 0
@ -82,17 +85,9 @@ ln -s /var/lib/mysql/mysql.sock
%{prefix}/bin/phpize
/etc/php.ini
/etc/php.d
/etc/profile.d/zend.sh
/tmp/mysql.sock
#%package repo
#Summary: Zend Server Repository
#Group: Development/Languages
#%description repo
#Repository definition file for Zend Server
#%files repo
#/etc/yum.repos.d/zend.repo
%changelog
* Sat Jun 6 2009 Ralf Becker <rb@stylite.de> 5.2.9
- using Zend Server CE 4.0.2
- using Zend Server CE 4.0.3