summaryrefslogtreecommitdiff
path: root/php-kolab/Kolab_Server/Kolab_Server.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-kolab/Kolab_Server/Kolab_Server.spec')
-rw-r--r--php-kolab/Kolab_Server/Kolab_Server.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-kolab/Kolab_Server/Kolab_Server.spec b/php-kolab/Kolab_Server/Kolab_Server.spec
index 1072162..501f048 100644
--- a/php-kolab/Kolab_Server/Kolab_Server.spec
+++ b/php-kolab/Kolab_Server/Kolab_Server.spec
@@ -2,6 +2,7 @@
%define V_package Kolab_Server
%define V_version 0.4.0
%define V_release 20090224
+%define V_sourceurl http://pear.horde.org/get
# Package Information
Name: %{V_package}
@@ -15,7 +16,10 @@ Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
+Source: %{V_sourceurl}/%{V_package}-%{V_version}.tgz
+
+# List of patches
+Patch0: mapping.patch
# Build Info
Prefix: %{l_prefix}
@@ -28,6 +32,7 @@ BuildPreReq: PEAR-Horde-Channel
PreReq: OpenPKG, openpkg >= 20070603
PreReq: php, php::with_pear = yes
PreReq: Horde_LDAP
+PreReq: Net_LDAP2
PreReq: PHPUnit
%description
@@ -37,12 +42,16 @@ database stored in LDAP.
%prep
%setup -n %{V_package}-%{V_version}
+ %patch -p3 -P 0
+
+ cat ../package.xml | sed -e 's/md5sum="[^"]*"//' > package.xml
+
%build
%install
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
- %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT package.xml
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}