#!/usr/bin/php
<?php
+/*
+ * minify.spec does not see these: pear(HTTP/ConditionalGet.php) pear(HTTP/Encoder.php)
+ * perl version does
+ */
/**
*
* Check system dependences between php-pear modules.
* Michał Moskal <malekith@pld-linux.org> (Perl version)
* Elan Ruusamäe <glen@pld-linux.org>
*
+ * URL: <http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rpm/rpm-php-requires.php>
+ *
* Requires: php-pear-PHP_CompatInfo
* Requires: php-pcre
*/
if ($ext == 'bz2') {
$ext = 'bzip2';
}
- // SPL ext is in php-spl package
- if ($ext == 'SPL') {
- $ext = 'spl';
+ // libxml ext is in php-xml package
+ if ($ext == 'libxml') {
+ $ext = 'xml';
}
- // ereg
- if ($ext == 'ereg') {
- // not yet
- continue;
+
+ // these need to be lowercased
+ if (in_array($ext, array('SPL', 'PDO', 'SQLite', 'Reflection', 'SimpleXML'))) {
+ $ext = strtolower($ext);
}
+
printf("$fmt\n", $ext);
}
}