gunnar: server/php-kolab/Kolab_Freebusy Kolab_FreeBusy.spec, NONE, 1.1 Makefile, NONE, 1.1 .cvsignore, 1.1, NONE AUTHORS, 1.2, NONE COPYING, 1.1, NONE ChangeLog, 1.17, NONE DEPRECATION_NOTE, 1.1, NONE package.xml.in, 1.4, NONE

cvs at kolab.org cvs at kolab.org
Fri Sep 12 07:20:22 CEST 2008


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Freebusy
In directory doto:/tmp/cvs-serv12367/php-kolab/Kolab_Freebusy

Added Files:
	Kolab_FreeBusy.spec Makefile 
Removed Files:
	.cvsignore AUTHORS COPYING ChangeLog DEPRECATION_NOTE 
	package.xml.in 
Log Message:
More code finally leaves Kolab CVS and moves upstream. kolab-freebusy is being replaced by the PEAR package Kolab_FreeBusy from pear.horde.org. The package has not been officially released yet as it still needs some reasonable testing on the Kolab server but the first release will happen once I finished that.

--- NEW FILE: Kolab_FreeBusy.spec ---
# Variables
%define         V_package Kolab_FreeBusy
%define         V_version 0.0.1
%define         V_release 1

# Package Information
Name:	   %{V_package}
Summary:   A package for providing free/busy information.
URL:       http://pear.horde.org/index.php?package=%{V_package}
Packager:  Gunnar Wrobel <wrobel at pardus.de> (p at 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:       Horde_iCalendar

%description 
This package provides free/busy information for the users of a Kolab
server. A Kolab client changing calendar data in an IMAP folder is
required to call the triggering script provided within this package
via HTTP. This will refresh the cache maintained by this package with
partial free/busy data. This partial data sets are finally combined to
the complete free/busy information once a client requests this data
for a particular user.


%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

--- NEW FILE: Makefile ---
PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")

ifeq "x$(RPM)" "x"
  RPM = $(HOME)/bin/openpkg rpm
endif
ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = $(HOME)/RPM/SRC
endif
ifeq "x$(KOLABRPMPKG)" "x"
  KOLABRPMPKG = $(HOME)/RPM/PKG
endif
ifeq "x$(KOLABRPMTMP)" "x"
  KOLABRPMTMP = $(HOME)/RPM/TMP
endif

# FIXME: Temporary location until I release it for real on pear.horde.org
SOURCE_0=http://files.pardus.de/kolab-sources/$(PACKAGE)-$(VERSION).tgz
#SOURCE_0=http://pear.horde.org/get/$(PACKAGE)-$(VERSION).tgz

.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm

.PHONY: dist
dist: all
	cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/

.PHONY: clean
clean:
	rm -rf /kolab/RPM/TMP/$(PACKAGE)*
	rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
	rm -rf *~

$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog
	test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
	cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"

	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
	cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec

	cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .

--- .cvsignore DELETED ---

--- AUTHORS DELETED ---

--- COPYING DELETED ---

--- ChangeLog DELETED ---

--- DEPRECATION_NOTE DELETED ---

--- package.xml.in DELETED ---





More information about the commits mailing list