summaryrefslogtreecommitdiff
path: root/php-kolab/Kolab_Filter/Kolab_Filter.spec
blob: 2ab5d08b871c7591fa2cf3f8767ee014c17fe303 (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
63
64
65
# Variables
%define         V_package Kolab_Filter
%define         V_version 0.0.1
%define         V_release 20080919

# Package Information
Name:	   %{V_package}
Summary:   Postfix filters for the Kolab server.
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
# FIXME: Temporary location until I release it for real on pear.horde.org
Source:    http://files.pardus.de/kolab-sources/%{V_package}-%{V_version}.tgz
#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:       Kolab_Format
PreReq:       Kolab_Server
PreReq:       Kolab_Storage
PreReq:       PEAR-Net_LMTP
PreReq:       PEAR-Net_SMTP
PreReq:       Horde_iCalendar

%description 
The filters provided by this package implement the Kolab server
resource management as well as some Kolab server sender policies.


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

%build

%install
        %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/log
        %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/tmp

        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 -d www_dir="%{l_prefix}/var/kolab/www/freebusy" 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}                 \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/tmp    \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/log

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files