gunnar: server/kolab-webclient/horde .cvsignore, NONE, 1.1 Makefile, NONE, 1.1 horde.spec, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Mon Jan 11 17:38:58 CET 2010


Author: gunnar

Update of /kolabrepository/server/kolab-webclient/horde
In directory doto:/tmp/cvs-serv19301

Added Files:
	.cvsignore Makefile horde.spec 
Log Message:
A first version of a separate horde base package. It does not build yet (only src.rpm yet).

--- NEW FILE: .cvsignore ---
*.src.rpm
*.tar.gz
package.patch
tmp

--- NEW FILE: Makefile ---
include ../../make-helper/kolab.mk

SOURCE_URL=http://ftp.horde.org/pub/$(PACKAGE)

include ../../make-helper/package.mk
include ../../make-helper/patch-series.mk

# Get the list of templates if there are any in the template directory
TEMPLATES = $(shell ls templates/$(PACKAGE)-$(VERSION)/*.template 2> /dev/null)

EXTRA = package.patch $(TEMPLATES)

include ../../make-helper/package-new.mk

--- NEW FILE: horde.spec ---
# Macros
%define         V_package horde
%define         V_version 3.3.6
%define         V_release 20100111

# Package Information
Name:		%{V_package}
Summary:	The Horde base application.
URL:		http://www.horde.org/
Packager:	Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version:	%{V_version}
Release:	%{V_release}
License:	GPL
Group:		MAIL
Distribution:	OpenPKG

# List of Sources
Source0:	http://ftp.horde.org/pub/%{V_package}/%{V_package}-%{V_version}.tar.gz
Source1:        webclient-kolab-conf.template
Source2:        webclient-config_hooks.php.template
Source3:        webclient-config_mime_drivers.php.template
Source4:        webclient-config_motd.php.template
Source5:        webclient-config_nls.php.template
Source6:        webclient-config_prefs.php.template
Source7:        webclient-config_registry.php.template

# List of Patches
Patch0:         package.patch

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

#Pre requisites
BuildPreReq:  OpenPKG, openpkg >= 20070603
BuildPreReq:  php, php::with_pear = yes
PreReq:       kolabd
PreReq:       Horde_Alarm
PreReq:       Horde_Block
PreReq:       Horde_Compress
PreReq:       Horde_Crypt
PreReq:       Horde_Data
PreReq:       Horde_Editor
PreReq:       Horde_Feed
PreReq:       Horde_File_PDF
PreReq:       Horde_Form
PreReq:       Horde_Http_Client
PreReq:       Horde_Image
PreReq:       Horde_Maintenance
PreReq:       Horde_Mobile
PreReq:       Horde_Net_SMS
PreReq:       Horde_RPC
PreReq:       Horde_SessionHandler
PreReq:       Horde_Share
PreReq:       Horde_SyncML
PreReq:       Horde_Template
PreReq:       Horde_Text_Filter
PreReq:       Horde_Text_Flowed
PreReq:       Horde_Tree
PreReq:       Kolab_Format >= 1.0.1
PreReq:       Kolab_Server >= 0.5.0
PreReq:       Kolab_Storage >= 0.4.0
# Needed by horde
PreReq:       PEAR-Services_Weather
PreReq:       PEAR-DB

AutoReq:      no
AutoReqProv:  no

%description 
The Horde Application Framework is a general-purpose web application
framework in PHP, providing classes for dealing with preferences,
compression, browser detection, connection tracking, MIME handling,
and more.

This specific package does however remove all components of the actual
Horde framework and solely installs the base Horde application that
needs to be installed as a basis for the other Horde applications. The
Horde framework is installed using PEAR based packages.


%prep
	%setup -q -c %{V_package}-%{V_version}

	cd %{V_package}-%{V_version}
	%patch -p2 -P 0
	cd ..

%build

%install

	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient_data/storage
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient_data/tmp
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient_data/sessions
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates	

	cd %{V_package}-%{V_version}

	rm test.php

	find . -type f | grep '\.orig$' | xargs rm

	cp -r * $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/

	# The following section removes libraries again so that we
	# only need to patch/install them once in the system.
	#
	# kolab/issue3293 (Big code duplication and code version messup: Horde
        #                  libs in 2.2.1)
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/bundle.php
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/File
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/Horde
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/Net
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/SyncML*
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/Text
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/VFS*
	rm -rf $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/lib/XML

        sqlite $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient_data/storage/horde.db < scripts/sql/groupware.sql

	cd ..

	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} \
	  $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates

	sed -i -e 's#@@@horde_confdir@@@#%{l_prefix}/var/kolab/www/client/config#' $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates/*.php.template

	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
	    '%config %{l_prefix}/etc/kolab/templates/webclient-kolab-conf.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_hooks.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_mime_drivers.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_motd.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_nls.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_prefs.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient-config_registry.php.template' \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient_data/storage \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient_data/storage/horde.db \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient_data/tmp \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient_data/sessions \
	    '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/client/config/conf.php

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files





More information about the commits mailing list