cvs: pear-core(PEAR_1_3) / package-PEAR.xml template.spec /PEAR/Command Package.php
| From: | Greg Beaver | Date: | Fri, 22 Oct 2004 04:59:38 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) / package-PEAR.xml template.spec /PEAR/Command Package.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1112@lists.php.net to get a copy of this message | ||
cellog Fri Oct 22 00:59:38 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core package-PEAR.xml template.spec
/pear-core/PEAR/Command Package.php
Log:
fix Bug #1163: pear makerpm broken
http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.106.2.5&r2=1.106.2.6&ty=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.106.2.5 pear-core/package-PEAR.xml:1.106.2.6
--- pear-core/package-PEAR.xml:1.106.2.5 Tue Oct 19 00:33:03 2004
+++ pear-core/package-PEAR.xml Fri Oct 22 00:59:38 2004
@@ -4,16 +4,16 @@
<name>PEAR</name>
<summary>PEAR Base System</summary>
<description>The PEAR package contains:
- * the PEAR base class
- * the PEAR_Error error handling mechanism
- * the alpha-quality PEAR_Exception php5-only exception class
- * the beta-quality PEAR_ErrorStack advanced error handling mechanism
* the PEAR installer, for creating, distributing
and installing packages
+ * the alpha-quality PEAR_Exception php5-only exception class
+ * the beta-quality PEAR_ErrorStack advanced error handling mechanism
+ * the PEAR_Error error handling mechanism
* the OS_Guess class for retrieving info about the OS
where PHP is running on
* the System class for quick handling common operations
with files and directories
+ * the PEAR base class
</description>
<maintainers>
<maintainer>
@@ -72,8 +72,6 @@
<file role="php" name="Guess.php"/>
</dir>
<dir name="PEAR">
- <file role="php" name="Autoloader.php"/>
- <file role="php" name="Command.php"/>
<dir name="Command">
<file role="php" name="Auth.php"/>
<file role="php" name="Build.php"/>
@@ -85,14 +83,17 @@
<file role="php" name="Remote.php"/>
<file role="php" name="Mirror.php"/>
</dir>
+ <dir name="Frontend">
+ <file role="php" name="CLI.php"/>
+ </dir>
+ <file role="php" name="Autoloader.php"/>
+ <file role="php" name="Command.php"/>
<file role="php" name="Common.php"/>
<file role="php" name="Config.php"/>
<file role="php" name="Dependency.php"/>
<file role="php" name="Downloader.php"/>
+ <file role="php" name="Exception.php"/>
<file role="php" name="ErrorStack.php"/>
- <dir name="Frontend">
- <file role="php" name="CLI.php"/>
- </dir>
<file role="php" name="Builder.php"/>
<file role="php" name="Installer.php"/>
<file role="php" name="Packager.php"/>
@@ -120,7 +121,6 @@
</dir>
<file role="data" name="package.dtd"/>
<file role="data" name="template.spec"/>
- <file role="php" name="Exception.php"/>
<file role="php" name="PEAR.php"/>
<file role="php" name="System.php"/>
</filelist>
http://cvs.php.net/diff.php/pear-core/template.spec?r1=1.3&r2=1.3.4.1&ty=u
Index: pear-core/template.spec
diff -u pear-core/template.spec:1.3 pear-core/template.spec:1.3.4.1
--- pear-core/template.spec:1.3 Mon Jun 16 04:27:47 2003
+++ pear-core/template.spec Fri Oct 22 00:59:38 2004
@@ -30,25 +30,29 @@
%build
echo BuildRoot=%{buildroot}
+%clean
+[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
+
%postun
pear uninstall --nodeps -r @package@
-rm @rpm_xml_dir@/@package@.xml
%post
pear install --nodeps -r @rpm_xml_dir@/@package@.xml
%install
-pear -c %{buildroot}/pearrc install --nodeps -R %{buildroot} \
- $RPM_SOURCE_DIR/@package@-%{version}.tgz
+pear -c "%{buildroot}/pearrc" install --nodeps -R "%{buildroot}" \
+ "$RPM_SOURCE_DIR/@package@-%{version}.tgz"
rm %{buildroot}/pearrc
rm %{buildroot}/%{_libdir}/php/pear/.filemap
rm %{buildroot}/%{_libdir}/php/pear/.lock
rm -rf %{buildroot}/%{_libdir}/php/pear/.registry
-if [ -d "%{buildroot}/docs/@package@/doc" ]; then
- rm -rf $RPM_BUILD_DIR/doc
- mv %{buildroot}/docs/@package@/doc $RPM_BUILD_DIR
- rm -rf %{buildroot}/docs
-fi
+for DOCDIR in docs doc examples; do
+ if [ -d "%{buildroot}/docs/@package@/$DOCDIR" ]; then
+ rm -rf $RPM_BUILD_DIR/$DOCDIR
+ mv %{buildroot}/docs/@package@/$DOCDIR $RPM_BUILD_DIR
+ rm -rf %{buildroot}/docs
+ fi
+done
mkdir -p %{buildroot}@rpm_xml_dir@
tar -xzf $RPM_SOURCE_DIR/@package@-%{version}.tgz package.xml
cp -p package.xml %{buildroot}@rpm_xml_dir@/@package@.xml
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Package.php?r1=1.61.2.1&r2=1.61.2.2&ty=u
Index: pear-core/PEAR/Command/Package.php
diff -u pear-core/PEAR/Command/Package.php:1.61.2.1 pear-core/PEAR/Command/Package.php:1.61.2.2
--- pear-core/PEAR/Command/Package.php:1.61.2.1 Tue Oct 19 00:18:27 2004
+++ pear-core/PEAR/Command/Package.php Fri Oct 22 00:59:38 2004
@@ -17,7 +17,7 @@
// | Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Package.php,v 1.61.2.1 2004/10/19 04:18:27 cellog Exp $
+// $Id: Package.php,v 1.61.2.2 2004/10/22 04:59:38 cellog Exp $
require_once 'PEAR/Common.php';
require_once 'PEAR/Command/Common.php';
@@ -269,12 +269,6 @@
if (isset($options['showname'])) {
$this->output = $result;
}
- /* (cox) What is supposed to do that code?
- $lines = explode("\n", $this->output);
- foreach ($lines as $line) {
- $this->output .= $line."n";
- }
- */
if (PEAR::isError($result)) {
$this->output .= "Package failed: ".$result->getMessage();
}
@@ -673,6 +667,7 @@
if (!isset($attr['role'])) {
continue;
}
+ $name = preg_replace('![/:\\\\]!', '/', $name);
if ($attr['role'] == 'doc') {
$info['doc_files'] .= " $name";