Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit php5-pear-date
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 09 Aug 2007 15:05:01 +0200
  • Message-id: <20070809130501.A3886678180@xxxxxxxxxxxxxxx>

Hello community,

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

--------
--- php5-pear-date/php5-pear-date.changes       2006-10-26 13:54:50.000000000 +0200
+++ /mounts/work_src_done/NOARCH/php5-pear-date/php5-pear-date.changes  2007-08-07 23:03:35.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Aug  6 18:14:07 CEST 2007 - crrodriguez@xxxxxxx
+
+- updated to version 1.4.7
+- use the new PEAR package format. 
+
+-------------------------------------------------------------------

Old:
----
  Date-1.4.6.tgz

New:
----
  Date-1.4.7.tgz

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

Other differences:
------------------
++++++ php5-pear-date.spec ++++++
--- /var/tmp/diff_new_pack.y18161/_old  2007-08-09 15:02:33.000000000 +0200
+++ /var/tmp/diff_new_pack.y18161/_new  2007-08-09 15:02:33.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package php5-pear-date (Version 1.4.6)
+# spec file for package php5-pear-date (Version 1.4.7)
 #
-# 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-date
-BuildRequires:  php5-pear
-%define peardir %{_datadir}/php5/PEAR
-License:        Other License(s), see package
-Group:          Productivity/Networking/Web/Servers
-Version:        1.4.6
-Release:        32
+%define peardir %(pear config-get php_dir 2> /dev/null)
+%define xmldir  /var/lib/pear
 Summary:        PEAR date and time zone classes
+Version:        1.4.7
+Release:        1
+License:        BSD 3-Clause
+Group:          Development/Libraries/PHP
+Source0:        http://pear.php.net/get/Date-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 URL:            http://pear.php.net/package/Date
-Requires:       php5-pear
-Provides:       php-pear-date
-Source:         http://pear.php.net/get/Date-%{version}.tgz
+BuildRequires:  php5-pear
+PreReq:         php5-pear
 BuildArch:    noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Generic PEAR classes for representation and manipulation of dates,
@@ -44,27 +44,55 @@
     Monte Ohrt <monte@xxxxxxxx>
 
 %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 \
+        -d ext_dir=%{_libdir} \
+        -s
 
 %build
 
 %install
-mv package*.xml Date-%{version}
-cd Date-%{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}
-# workaround
-sed -i "s|$RPM_BUILD_ROOT|/|g" $RPM_BUILD_ROOT%{peardir}/test/Date/tests/calc.php
+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}/Date.xml
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+pear install --nodeps --soft --force --register-only %{xmldir}/Date.xml
+
+%postun
+if [ "$1" -eq "0" ]; then
+    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date
+fi
 
 %files
-%defattr(-, root, root)
-%dir %{peardir}/test
-%{peardir}/test/Date
-%{peardir}/Date
-%{peardir}/Date.php
-%doc %{_docdir}/%{name}
-
-%changelog -n php5-pear-date
+%defattr(-,root,root)
+%doc docs/Date/*
+%{peardir}/*
+%{xmldir}/Date.xml
+
+%changelog
+* Mon Aug 06 2007 - crrodriguez@xxxxxxx
+- updated to version 1.4.7
+- use the new PEAR package format.
 * Thu Oct 26 2006 - anosek@xxxxxxx
 - fixed: pear is pulling packages from the network during autobuild
   [#214347]

++++++ Date-1.4.6.tgz -> Date-1.4.7.tgz ++++++
++++ 24477 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