gunnar: server/kolab-freebusy Makefile, NONE, 1.1 kolab-freebusy.spec, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Wed Aug 8 11:47:31 CEST 2007
Author: gunnar
Update of /kolabrepository/server/kolab-freebusy
In directory doto:/tmp/cvs-serv4139
Added Files:
Makefile kolab-freebusy.spec
Log Message:
A draft version of the new kolab-freebusy package. This is now only the webserver part and also requires the PEAR-style Kolab_Freebusy library within php-kolab.
--- NEW FILE: Makefile ---
PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([a-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/")
TAR=$(PACKAGE)-$(VERSION).tar.bz2
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
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
.PHONY: dist
dist: all
cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../stage/
.PHONY: clean
clean:
rm -rf $(HOME)/RPM/TMP/$(PACKAGE)*
find . -name "*~" | xargs rm -rf
rm -rf *.src.rpm
rm -rf *.tar.bz2
$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(TAR)
test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
cp $(TAR) $(KOLABRPMSRC)/$(PACKAGE)/
cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
$(TAR): freebusy/*.php
tar cjf $@ freebusy --exclude="CVS" --exclude="*~"
--- NEW FILE: kolab-freebusy.spec ---
## COPYRIGHT
## ---------
##
## See freebusy/docs/AUTHORS file
##
##
## LICENSE
## -------
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Revision: 1.1 $
# versions of individual parts
%define V_package kolab-freebusy
%define V_version 2.1.99
%define V_release 20070808
# package information
Name: %{V_package}
Summary: Kolab2 Groupware Server free/busy support
URL: http://www.kolab.org/
Vendor: Kolab Consortium
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Distribution: OpenPKG Community
Class: PLUS
Group: Mail
License: GPL
Version: %{V_version}
Release: %{V_release}
# list of sources
Source0: %{V_package}-%{V_version}.tar.bz2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20070603
PreReq: php-kolab
AutoReq: no
AutoReqProv: no
%description
kolab-freebusy provides the free/busy support for the Kolab2
Groupware server.
%prep
%setup -q -c
%build
%install
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/share/doc/%{V_package}
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/freebusy
cp -r freebusy/docs/* $RPM_BUILD_ROOT%{l_prefix}/share/doc/%{V_package}
rm -rf freebusy/docs
cp -r freebusy/* $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/freebusy/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/freebusy/cache \
'%config(noreplace) %{l_prefix}/var/kolab/www/freebusy/config.php'
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
More information about the commits
mailing list