summaryrefslogtreecommitdiff
path: root/php-kolab/Kolab_Server/Kolab_Server.spec
blob: 501f048e3bfa89e181e87df30e1dfc0465552b53 (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
54
55
56
57
58
59
60
61
62
# Variables
%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}
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:    %{V_sourceurl}/%{V_package}-%{V_version}.tgz

# List of patches
Patch0:    mapping.patch

# 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:       Net_LDAP2
PreReq:       PHPUnit

%description 
This package allows read/write entries in the Kolab user
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 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} 

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files