Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit php5-pear-log
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 09 Aug 2007 15:08:03 +0200
  • Message-id: <20070809130804.3CAD8678180@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package php5-pear-log
checked in at Thu Aug 9 15:08:03 CEST 2007.

--------
--- php5-pear-log/php5-pear-log.changes 2006-10-26 13:52:47.000000000 +0200
+++ /mounts/work_src_done/NOARCH/php5-pear-log/php5-pear-log.changes    2007-08-07 01:44:32.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Aug  7 01:44:06 CEST 2007 - crrodriguez@xxxxxxx
+
+- update to version 1.9.11
+- Use the new pear package format 
+
+-------------------------------------------------------------------

Old:
----
  Log-1.9.8.tgz

New:
----
  Log-1.9.11.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ php5-pear-log.spec ++++++
--- /var/tmp/diff_new_pack.U26711/_old  2007-08-09 15:07:50.000000000 +0200
+++ /var/tmp/diff_new_pack.U26711/_new  2007-08-09 15:07:50.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package php5-pear-log (Version 1.9.8)
+# spec file for package php5-pear-log (Version 1.9.11)
 #
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # This file and all modifications and additions to the pristine
 # package are under the same license as the package itself.
 #
@@ -11,19 +11,19 @@
 # norootforbuild
 
 Name:           php5-pear-log
-BuildRequires:  php5-pear
-%define peardir %{_datadir}/php5/PEAR
-License:        Other License(s), see package
-Group:          Productivity/Networking/Web/Servers
-Version:        1.9.8
-Release:        19
+%define peardir %(pear config-get php_dir 2> /dev/null)
+%define xmldir  /var/lib/pear
 Summary:        PEAR Logging utilities
+Version:        1.9.11
+Release:        1
+License:        Other uncritical OpenSource License, The PHP License, version 3.0.
+Group:          Development/Libraries/PHP
+Source0:        http://pear.php.net/get/Log-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 URL:            http://pear.php.net/package/Log
-Requires:       php5-pear
-Provides:       php-pear-log
-Source:         http://pear.php.net/get/Log-%{version}.tgz
+BuildRequires:  php5-pear
+PreReq:         php5-pear
 BuildArch:    noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 The Log framework for PEAR provides an abstracted logging system. It
@@ -37,29 +37,56 @@
     Jon Parise <jon@xxxxxxx>
 
 %prep
-%setup -c
+%setup -c -T
+pear -v -c pearrc \
+        -d php_dir=%{peardir} \
+        -d doc_dir=/docs \
+        -d bin_dir=%{_bindir} \
+        -d data_dir=%{peardir}/data \
+        -d test_dir=%{peardir}/tests \
+        -s
 
 %build
 
 %install
-mv package*.xml Log-%{version}
-cd Log-%{version}
-PHP_PEAR_PHP_BIN="/usr/bin/php5 -d memory_limit=50m" pear5 -v -d doc_dir=%{_docdir}/%{name} install --offline -R "$RPM_BUILD_ROOT" package.xml
-rm -rf "$RPM_BUILD_ROOT"/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} "$RPM_BUILD_ROOT/tmp"
+export PHP_PEAR_PHP_BIN="/usr/bin/php5 -dmemory_limit=-1"
+pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
+        
+# Clean up unnecessary files
+%{__rm} pearrc
+%{__rm} %{buildroot}/%{peardir}/.filemap
+%{__rm} %{buildroot}/%{peardir}/.lock
+%{__rm} -rf %{buildroot}/%{peardir}/.registry
+%{__rm} -rf %{buildroot}%{peardir}/.channels
+%{__rm} %{buildroot}%{peardir}/.depdb
+%{__rm} %{buildroot}%{peardir}/.depdblock
+mv %{buildroot}/docs .
+# Install XML package description
+%{__mkdir_p} %{buildroot}%{xmldir}
+%{__tar} -xzf %{SOURCE0} package.xml
+%{__cp} -p package.xml %{buildroot}%{xmldir}/Log.xml
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
-%files
-%defattr(-, root, root)
-%{peardir}/data/Log
-%dir %{peardir}/test
-%{peardir}/test/Log
-%{peardir}/Log
-%{peardir}/Log.php
-%doc %{_docdir}/%{name}
+%post
+pear install --nodeps --soft --force --register-only %{xmldir}/Log.xml
 
-%changelog -n php5-pear-log
+%postun
+if [ "$1" -eq "0" ]; then
+    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Log
+fi
+
+%files
+%defattr(-,root,root)
+%doc docs/Log/*
+%{peardir}/*
+%{xmldir}/Log.xml
+
+%changelog
+* Tue Aug 07 2007 - crrodriguez@xxxxxxx
+- update to version 1.9.11
+- Use the new pear package format
 * Thu Oct 26 2006 - anosek@xxxxxxx
 - fixed: pear is pulling packages from the network during autobuild
   [#214347]

++++++ Log-1.9.8.tgz -> Log-1.9.11.tgz ++++++
++++ 12695 lines of diff (skipped)


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread