gunnar: server/pear/Horde_Argv Makefile, 1.1, 1.2 Horde_Argv.spec, 1.3, 1.4 ChangeLog, 1.1, 1.2 .cvsignore, 1.1, 1.2
cvs at kolab.org
cvs at kolab.org
Wed May 20 09:56:22 CEST 2009
Author: gunnar
Update of /kolabrepository/server/pear/Horde_Argv
In directory doto:/tmp/cvs-serv31723/Horde_Argv
Modified Files:
Makefile Horde_Argv.spec ChangeLog .cvsignore
Log Message:
Update to the Horde_3_3_4 tag and adapted to the newer packaging method.
Index: Makefile
===================================================================
RCS file: /kolabrepository/server/pear/Horde_Argv/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile 24 Sep 2008 16:46:34 -0000 1.1
+++ Makefile 20 May 2009 07:56:20 -0000 1.2
@@ -1,44 +1 @@
-HORDE_PACKAGE = $(shell grep "%define[ ]*V_horde_package" *.spec | sed -e "s/.*V_horde_package \([A-Za-z\-\_]*\).*/\1/")
-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
-
-SOURCE_0=http://pear.horde.org/get/$(HORDE_PACKAGE)-$(VERSION).tgz
-PATCHES = $(shell grep "^Patch[0-9]*:" *.spec | sed -e "s/^Patch[0-9]*:\s*\(.*\).*/\1/")
-
-.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)"
-
- for PATCH in $(PATCHES); do cp "$$PATCH" $(KOLABRPMSRC)/$(PACKAGE); done
-
- cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
- cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
-
- cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
+include ../Horde.mk
Index: Horde_Argv.spec
===================================================================
RCS file: /kolabrepository/server/pear/Horde_Argv/Horde_Argv.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Horde_Argv.spec 9 Dec 2008 20:32:47 -0000 1.3
+++ Horde_Argv.spec 20 May 2009 07:56:20 -0000 1.4
@@ -1,8 +1,15 @@
# Variables
+%define V_horde_pkgdir Argv
%define V_horde_package Argv
%define V_package Horde_Argv
-%define V_version 0.1.0
-%define V_release 20081209
+%define V_package_origin VC-CVS
+%define V_repo_commit HORDE_3_3_4
+%define V_repo_release 20090501
+%define V_version 0.1.0dev20090501
+%define V_release 20090518
+%define V_sourceurl http://pear.horde.org/get
+%define V_php_lib_loc php
+%define V_www_loc client
# Package Information
Name: %{V_package}
@@ -16,7 +23,10 @@
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_horde_package}-%{V_version}.tgz
+Source: %{V_sourceurl}/%{V_horde_package}-%{V_version}.tgz
+
+# List of patches
+Patch0: package.patch
# Build Info
Prefix: %{l_prefix}
@@ -32,6 +42,9 @@
Provides: horde-framework-kolab = 3.2_rc3-20081209
Obsoletes: horde-framework-kolab < 3.2_rc3-20081209
+# Package options
+%option with_chroot no
+
%description
This package provides classes for parsing command line arguments with
various actions, providing help, grouping options, and more.
@@ -39,13 +52,28 @@
%prep
%setup -n %{V_horde_package}-%{V_version}
+ if [ -n "`cat %{PATCH0}`" ]; then
+ %patch -p0 -P 0
+ fi
+
+ cat ../package.xml | sed -e 's/md5sum="[^"]*"//' > package.xml
+
%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_horde_package}-%{V_version}.tgz
- rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
+ %{l_prefix}/bin/pear -d www_dir="%{l_prefix}/var/kolab/www/%{V_www_loc}" \
+ -d php_dir="%{l_prefix}/lib/%{V_php_lib_loc}" \
+ install --offline --force --nodeps -P $RPM_BUILD_ROOT \
+ $RPM_SOURCE_DIR/%{V_horde_package}-%{V_version}.tgz
+ rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/%{V_php_lib_loc}/{.filemap,.lock,.channels,.depdb,.depdblock}
+
+ # With chroot
+ %if "%{with_chroot}" == "yes"
+ %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/%{l_prefix}/lib
+ cp -a $RPM_BUILD_ROOT/%{l_prefix}/lib/%{V_php_lib_loc} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/%{l_prefix}/lib/
+ %endif
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
Index: ChangeLog
===================================================================
RCS file: /kolabrepository/server/pear/Horde_Argv/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ChangeLog 24 Sep 2008 16:46:34 -0000 1.1
+++ ChangeLog 20 May 2009 07:56:20 -0000 1.2
@@ -1,3 +1,7 @@
+2009-05-20 Gunnar Wrobel <p at rdus.de>
+
+ * Horde_Argv.spec: Update to the HORDE_3_3_4 tag.
+
2008-09-24 Gunnar Wrobel <p at rdus.de>
* Horde_Argv.spec: Added package to Kolab CVS.
Index: .cvsignore
===================================================================
RCS file: /kolabrepository/server/pear/Horde_Argv/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- .cvsignore 24 Sep 2008 16:46:34 -0000 1.1
+++ .cvsignore 20 May 2009 07:56:20 -0000 1.2
@@ -1 +1,3 @@
*.src.rpm
+*.tgz
+package.patch
More information about the commits
mailing list