steffen: server/kolab-horde-framework Makefile, NONE, 1.1 kolab-horde-framework.spec, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Fri Oct 14 16:33:05 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-framework
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework

Added Files:
	Makefile kolab-horde-framework.spec 
Log Message:
Separated Horde Framework from kolab-resource-handlers

--- NEW FILE: Makefile ---
RPM = /kolab/bin/openpkg rpm
VERSION = 2.0.99
PEARVERSION = 1.3
PACKAGE = kolab-horde-framework
ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = /kolab/RPM/SRC
endif

all:
	test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
	tar -cvj --exclude=CVS --exclude=\*~ -f $(KOLABRPMSRC)/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)
	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)/
	cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "ftp://ftp.horde.org/pub/pear/pear-$(PEARVERSION).tar.bz2"
	cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec

--- NEW FILE: kolab-horde-framework.spec ---
# Versions
%define		V_php_horde_pear 1.3
%define		V_kolab_horde   2.0.99

# Package Information
Name:		kolab-horde-framework
Summary:	Horde framework components tailored for Kolab
URL:		http://www.kolab.org/
Packager:	Steffen Hansen <steffen at klaralvdalens-datakonsult.se> (Klaraelvdalens Datakonsult AB)
Version:	%{V_kolab_horde}
Release:	20051014
Class:		JUNK
License:	GPL
Group:		MAIL
Distribution:	OpenPKG

# List of Sources
Source0:	http://ftp.horde.org/pub/pear/pear-%{V_php_horde_pear}.tar.bz2
Source1:	kolab-horde-framework-%{V_kolab_horde}.tar.bz2

# Build Info
Prefix:		%{l_prefix}
BuildRoot:	%{l_buildroot}
BuildPreReq:	apache, php, php::with_pear = yes
PreReq:		kolabd >= 2.0.99-20051014, apache, php, php::with_pear = yes
AutoReq:      no
AutoReqProv:  no
#BuildArch:    noarch

%description
Blah blah

%prep
	%setup0 -q -T -b 0 -n pear
	# rpmtool barfs on files with spaces...
	mv docs/Text_Wiki/docs/free\ links.wiki.txt docs/Text_Wiki/docs/free_links.wiki.txt
	%setup1 -q -T -b 1 -n kolab-horde-framework
	%{l_shtool} subst \
        	-e 's;@l_prefix@;%{l_prefix};' \
        	install-packages.php

%build

%install
	rm -rf $RPM_BUILD_ROOT

	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/php
	cp -r ../pear $RPM_BUILD_ROOT%{l_prefix}/var/kolab/php

	env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" %{l_prefix}/bin/php -d safe_mode=off install-packages.php --install-dir $RPM_BUILD_ROOT%{l_prefix}/var/kolab/php/pear

	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files

#%post
#	cd %{l_prefix}/var/kolab/www/fbview/framework && env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" %{l_prefix}/bin/php -d safe_mode=off install-packages.php --install-dir %{l_prefix}/var/kolab/php/pear





More information about the commits mailing list