gunnar: server/php-kolab/Kolab_Freebusy package.info, NONE, 1.1 .cvsignore, 1.3, 1.4 Makefile, 1.8, 1.9
cvs at kolab.org
cvs at kolab.org
Sun Jan 17 14:05:03 CET 2010
- Previous message: gunnar: server/php-kolab/Kolab_Filter package.info, NONE, 1.1 .cvsignore, 1.3, 1.4 Makefile, 1.11, 1.12
- Next message: gunnar: server/php-kolab/Kolab_Format package.info, NONE, 1.1 .cvsignore, 1.1, 1.2 Makefile, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: gunnar
Update of /kolabrepository/server/php-kolab/Kolab_Freebusy
In directory doto:/tmp/cvs-serv1779/Kolab_Freebusy
Modified Files:
.cvsignore Makefile
Added Files:
package.info
Log Message:
Move to building based on the package.info files. The patches still need to reorganized for these packages.
--- NEW FILE: package.info ---
# The name of Horde source package
pear_package='Kolab_FreeBusy'
# The name of the RPM package
package='Kolab_FreeBusy'
# Where to find information about the package
package_url='http://pear.horde.org/index.php?package='
# How should the source be retrieved?
#
# WGET: Download via wget
package_origin='WGET'
# Version number
version='0.1.5'
# Package release number
release='20100116'
# Source URL to download from
sourceurl='http://pear.horde.org/get'
# In which PHP library location should the library get installed
php_lib_loc='php'
# Build prerequisites
buildprereq=' \
BuildPreReq: OpenPKG, openpkg >= 20070603 \
BuildPreReq: php, php::with_pear = yes \
BuildPreReq: PEAR-Horde-Channel \
'
# Installatin prerequisites
prereq=' \
PreReq: OpenPKG, openpkg >= 20070603 \
PreReq: php, php::with_pear = yes \
PreReq: Kolab_Format >= 1.0.1 \
PreReq: Kolab_Server >= 0.5.0 \
PreReq: Kolab_Storage >= 0.4.0 \
PreReq: Horde_Date \
PreReq: Horde_iCalendar \
\
Provides: php-kolab = 2.2.1 \
Obsoletes: php-kolab < 2.2.1 kolab-freebusy \
'
# Package summary description
summary='A package for reading/writing Kolab data formats'
# Long package description
description=' \
This package allows to convert Kolab data objects from XML to hashes. \
'
# Source code license
license='LGPL'
Index: .cvsignore
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- .cvsignore 12 Sep 2008 05:22:21 -0000 1.3
+++ .cvsignore 17 Jan 2010 13:05:01 -0000 1.4
@@ -1 +1,2 @@
*.src.rpm
+*.tgz
Index: Makefile
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile 2 Apr 2009 18:54:57 -0000 1.8
+++ Makefile 17 Jan 2010 13:05:01 -0000 1.9
@@ -1,111 +1 @@
-# If home is unset this Makefile assumes the Kolab server installation
-# resides in /kolab. If this is not the case this Makefile must be
-# called using
-#
-# HOME="/mykolabroot" make TARGET
-#
-ifeq "x$(HOME)" "x"
- HOME = /kolab
-endif
-
-# If HOME is set to /root it is likely that somebody is calling this
-# Makefile as root user. In this case this Makefile assumes that the
-# Kolab server installation resides in /kolab.
-#
-# In the (hopefully) unlikely event that somebody really installed the
-# Kolab server in /root this Makefile will fail.
-ifeq "x$(HOME)" "x/root"
- HOME = /kolab
-endif
-
-# Set the location of the rpm binary
-ifeq "x$(RPM)" "x"
- RPM = $(HOME)/bin/openpkg rpm
-endif
-
-# Set the location for rpm source package installations
-ifeq "x$(KOLABRPMSRC)" "x"
- KOLABRPMSRC = $(HOME)/RPM/SRC
-endif
-
-# Set the location for rpm packages
-ifeq "x$(KOLABRPMPKG)" "x"
- KOLABRPMPKG = $(HOME)/RPM/PKG
-endif
-
-# Set the location for the rpm temporary directory
-ifeq "x$(KOLABRPMTMP)" "x"
- KOLABRPMTMP = $(HOME)/RPM/TMP
-endif
-
-# Determine the suffix for binary packages on this system
-ifeq "x$(PLATTAG)" "x"
- PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(HOME:/%=%)
-endif
-
-# Determine the staging area for collecting new source rpms
-ifeq "x$(STAGING)" "x"
- STAGING = ../../stage
-endif
-
-# Determine the package name from the *.spec file
-PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
-
-# Determine the package version from the *.spec file
-VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
-
-# Determine the release number from the *.spec file
-RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
-
-# Determine the download url for the PEAR package from the *.spec file
-SOURCE_URL=$(shell grep "%define[ ]*V_sourceurl" *.spec | sed -e "s/.*V_sourceurl\s*\(.*\)/\1/")
-
-# Get the list of patches if there are any in this directory
-PATCHES = $(shell ls *.patch 2> /dev/null)
-
-# Generate the full package name
-SOURCE_0=$(PACKAGE)-$(VERSION).tgz
-
-# Generate a list of extra files for the package
-EXTRA=ChangeLog $(PATCHES)
-
-
-# Default target to generate the source rpm package
-.PHONY: all
-all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
-
-# Target for placing the source rpm in the staging area
-.PHONY: dist
-dist: all
- test -d $(STAGING) || mkdir $(STAGING)
- cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(STAGING)
-
-# Target for installing the binary rpm package in our current Kolab
-# server installation
-.PHONY: install
-install: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
- $(RPM) -Uhv --force $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
-
-# Target for retrieving the source package
-$(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0):
- test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
- cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_URL)/$(SOURCE_0)"
-
-# Target for preparing the source area and building the package
-$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm: Makefile $(PACKAGE).spec $(EXTRA) $(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0)
- cp $(PACKAGE).spec $(EXTRA) $(KOLABRPMSRC)/$(PACKAGE)
- cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
-
-# Target for fetching the source rpm into the current directory
-$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
- cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
-
-# Target for cleaning up the files that can be generated with this Makefile
-.PHONY: clean
-clean:
- rm -rf $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
- rm -rf $(KOLABRPMSRC)/$(PACKAGE)
- rm -rf $(KOLABRPMTMP)/$(PACKAGE)*
- rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
- rm -rf *~
-
+include ../../make-helper/pear.mk
- Previous message: gunnar: server/php-kolab/Kolab_Filter package.info, NONE, 1.1 .cvsignore, 1.3, 1.4 Makefile, 1.11, 1.12
- Next message: gunnar: server/php-kolab/Kolab_Format package.info, NONE, 1.1 .cvsignore, 1.1, 1.2 Makefile, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list