[Pkg-php-commits] r1046 - pear/php-xml-parser/trunk/debian
Thijs Kinkhorst
thijs at alioth.debian.org
Sun May 4 13:45:16 UTC 2008
Author: thijs
Date: 2008-05-04 13:45:16 +0000 (Sun, 04 May 2008)
New Revision: 1046
Modified:
pear/php-xml-parser/trunk/debian/changelog
pear/php-xml-parser/trunk/debian/control
pear/php-xml-parser/trunk/debian/rules
Log:
* New upstream release.
* Packaging cleanups: redo build process, checked for newest
policy, add Homepage and Vcs fields.
Modified: pear/php-xml-parser/trunk/debian/changelog
===================================================================
--- pear/php-xml-parser/trunk/debian/changelog 2008-05-04 13:31:07 UTC (rev 1045)
+++ pear/php-xml-parser/trunk/debian/changelog 2008-05-04 13:45:16 UTC (rev 1046)
@@ -1,3 +1,11 @@
+php-xml-parser (1.2.8-1) unstable; urgency=low
+
+ * New upstream release.
+ * Packaging cleanups: redo build process, checked for newest
+ policy, add Homepage and Vcs fields.
+
+ -- Thijs Kinkhorst <thijs at debian.org> Sun, 04 May 2008 15:33:42 +0200
+
php-xml-parser (1.2.6-2) unstable; urgency=low
* Need to replace php4-pear (<< 4:4.4.0-0), yes the epoch matters.
Modified: pear/php-xml-parser/trunk/debian/control
===================================================================
--- pear/php-xml-parser/trunk/debian/control 2008-05-04 13:31:07 UTC (rev 1045)
+++ pear/php-xml-parser/trunk/debian/control 2008-05-04 13:45:16 UTC (rev 1046)
@@ -2,9 +2,13 @@
Section: web
Priority: optional
Maintainer: Debian PHP Maintainers <pkg-php-maint at lists.alioth.debian.org>
-Uploaders: Adam Conrad <adconrad at 0c3.net>, Ondřej Surý <ondrej at debian.org>
-Build-Depends: debhelper (>= 4.0)
-Standards-Version: 3.6.2
+Uploaders: Thijs Kinkhorst <thijs at debian.org>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.3
+Build-Depends-Indep: php-pear
+Vcs-Svn: svn://svn.debian.org/pkg-php/pear/php-xml-parser/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-php/pear/php-xml-parser/trunk
+Homepage: http://pear.php.net/package/XML_Parser
Package: php-xml-parser
Architecture: all
@@ -23,5 +27,3 @@
Furthermore its now possible to split the parser from the handler object,
so you do not have to extend XML_Parser anymore in order to parse
a document with it.
- .
- Homepage: http://pear.php.net/package/XML_Parser
Modified: pear/php-xml-parser/trunk/debian/rules
===================================================================
--- pear/php-xml-parser/trunk/debian/rules 2008-05-04 13:31:07 UTC (rev 1045)
+++ pear/php-xml-parser/trunk/debian/rules 2008-05-04 13:45:16 UTC (rev 1046)
@@ -1,38 +1,76 @@
#!/usr/bin/make -f
-source=$(shell dpkg-parsechangelog | grep '^Source: ' | sed -e 's/^Source: //')
+DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
-build:
- # Nothing to do here
+PEAR ?= /usr/bin/pear
+pear_pkg = $(shell ls |grep XML_Parser)
+package = php-xml-parser
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ touch build-stamp
+
clean:
dh_testdir
dh_testroot
- dh_clean
+ if [ -f $(pear_pkg)/package.xml ]; then \
+ rm $(pear_pkg)/package.xml; \
+ fi
+ dh_clean build-stamp configure-stamp
-binary: binary-arch binary-indep
- # Nothing to do here
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
-binary-arch:
- # Nothing to do here
+ # Add here commands to install the package into debian/package.
+ cp package.xml $(pear_pkg)/package.xml;
+ $(PEAR) install -f -n -R debian/$(package) $(pear_pkg)/package.xml;
+ rm -f debian/$(package)/usr/share/php/.filemap;
+ rm -f debian/$(package)/usr/share/php/.lock;
+ rm -rf debian/$(package)/usr/share/php/.channels;
+ rm -rf debian/$(package)/usr/share/php/.depdblock;
+ rm -rf debian/$(package)/usr/share/php/.depdb;
+ rm -rf debian/$(package)/usr/share/php/.registry/.channel.pecl.php.net;
+ rm -rf debian/$(package)/usr/share/php/.registry/.channel.__uri;
+ rm -rf debian/$(package)/tmp
-binary-indep:
+ # remove duplicated files, these files are in /usr/share/doc/package
+ rm -rf debian/$(package)/usr/share/php/docs;
+ rm -rf debian/$(package)/usr/share/php/tests;
+ rm -rf debian/$(package)/usr/share/php/data/Log/misc;
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-independent files here.
+binary-indep: build install
dh_testdir
- dh_installdirs
-
- # Custom package actions
- cp Parser.php debian/$(source)/usr/share/php/XML/
- cp Parser/* debian/$(source)/usr/share/php/XML/Parser/
- cp tests/* debian/$(source)/usr/share/php/tests/
-
- # Rest of the debhelper scripts
dh_testroot
- dh_installchangelogs
- dh_installexamples
dh_installdocs
+ dh_installexamples $(pear_pkg)/examples/*
+ dh_installchangelogs
+ dh_compress
dh_fixperms
- dh_compress
+ dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-.PHONY: binary binary-arch binary-indep build clean
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
+
+get-orig-source:
+ wget http://download.pear.php.net/package/XML_Parser-${DEB_UPSTREAM_VERSION}.tgz -O php-xml-parser_${DEB_UPSTREAM_VERSION}.orig.tar.gz
+
More information about the Pkg-php-commits
mailing list