+# needs 'pear' for 'pear make-rpm-spec' command, ./builder for fetching sources.
+# You should have all PEAR packages installed to get best results (needed for epoch autodetection)
+# So far there are 3 packages with epoch > 0:
+# $ grep ^Epoch:.* php-pear-*.spec | grep -v 'Epoch:.*0'
+# php-pear-MDB2.spec:Epoch: 1
+# php-pear-MDB.spec:Epoch: 1
+# php-pear-PEAR.spec:Epoch: 1
+#
+# To create completely new PEAR package spec, follow something like this:
+# $ pear download RDF-alpha
+# File RDF-0.1.0alpha1.tgz downloaded
+# $ pear make-rpm-spec RDF-0.1.0alpha1.tgz
+# Wrote RPM spec file php-pear-RDF.spec
+# $
+#
+# TODO: adjust similiarily noautoreqdeps
+# BUGS: the beta portions in version deps could be wrong (php-4.3.0b1 and alike)
+# see php-pear-DBA_Relational.spec
+# Something strange: Requires: php-common < 4:3:5.1
+#
+# NOTE: old version of this script which was used to convert to new package format is in CVS branch MIGRATE.
+#
+# Send blames and beer\b\b\b\bideas to glen@pld-linux.org
+
+PROGRAM=${0##*/}
+APPDIR=$(d=$0; [ -L "$d" ] && d=$(readlink -f "$d"); dirname "$d")
+