summaryrefslogtreecommitdiff
path: root/php-kolab/Kolab_Server/Kolab_Server.spec
blob: 1072162ee89faa3bc1c6571d791ac26b63edc251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Variables
%define         V_package Kolab_Server
%define         V_version 0.4.0
%define         V_release 20090224

# Package Information
Name:	   %{V_package}
Summary:   A package for manipulating the Kolab user database.
URL:       http://pear.horde.org/index.php?package=%{V_package}
Packager:  Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
Version:   %{V_version}
Release:   %{V_release}
License:   LGPL
Group:     Development/Libraries
Distribution:	OpenPKG

# List of Sources
Source:    http://pear.horde.org/get/%{V_package}-%{V_version}.tgz

# Build Info
Prefix:	   %{l_prefix}
BuildRoot: %{l_buildroot}

#Pre requisites
BuildPreReq:  OpenPKG, openpkg >= 20070603
BuildPreReq:  php, php::with_pear = yes
BuildPreReq:  PEAR-Horde-Channel
PreReq:       OpenPKG, openpkg >= 20070603
PreReq:       php, php::with_pear = yes
PreReq:       Horde_LDAP
PreReq:       PHPUnit

%description 
This package allows read/write entries in the Kolab user
database stored in LDAP.

%prep
	%setup -n %{V_package}-%{V_version}

%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
	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} 

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files