[packages/php-pear-OLE] Up to 1.0.1
arekm
arekm at pld-linux.org
Mon May 4 12:56:38 CEST 2026
commit 684460ca190e01d7a95e2bab9a8435503b7fac21
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon May 4 12:56:29 2026 +0200
Up to 1.0.1
php-pear-OLE-git.patch | 116 -------------------------------------------------
php-pear-OLE.spec | 17 +++-----
2 files changed, 6 insertions(+), 127 deletions(-)
---
diff --git a/php-pear-OLE.spec b/php-pear-OLE.spec
index bd3d07d..243041d 100644
--- a/php-pear-OLE.spec
+++ b/php-pear-OLE.spec
@@ -1,18 +1,15 @@
-%define status beta
+%define status stable
%define pearname OLE
-%define subver RC2
-%define rel 3
Summary: %{pearname} - package for reading and writing OLE containers
Summary(pl.UTF-8): %{pearname} - pakiet do odczytu i zapisu kontenerów OLE
Name: php-pear-%{pearname}
-Version: 1.0.0
-Release: 0.%{subver}.%{rel}
+Version: 1.0.1
+Release: 1
License: PHP
Group: Development/Languages/PHP
-Source0: http://pear.php.net/get/%{pearname}-%{version}%{subver}.tgz
-# Source0-md5: 5ef0283689ddf6b41de0588bce995c89
-Patch0: %{name}-git.patch
-URL: http://pear.php.net/package/OLE/
+Source0: https://pear.php.net/get/%{pearname}-%{version}.tgz
+# Source0-md5: c5abc46db7d08ecf582dd1081b940416
+URL: https://pear.php.net/package/OLE/
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.580
@@ -38,8 +35,6 @@ Ta klasa ma w PEAR status: %{status}.
%prep
%pear_package_setup
-cd ./%{php_pear_dir}
-%patch -P0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/php-pear-OLE-git.patch b/php-pear-OLE-git.patch
deleted file mode 100644
index aad1720..0000000
--- a/php-pear-OLE-git.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-diff -urN OLE-1.0.0RC2.org/OLE/ChainedBlockStream.php OLE-1.0.0RC2/OLE/ChainedBlockStream.php
---- OLE-1.0.0RC2.org/OLE/ChainedBlockStream.php 2012-01-26 02:28:26.000000000 +0100
-+++ OLE-1.0.0RC2/OLE/ChainedBlockStream.php 2014-06-18 11:44:19.000000000 +0200
-@@ -17,7 +17,7 @@
- * @package OLE
- * @author Christian Schmidt <schmidt at php.net>
- * @license http://www.php.net/license/3_0.txt PHP License 3.0
-- * @version CVS: $Id: ChainedBlockStream.php 322771 2012-01-26 01:24:20Z clockwerx $
-+ * @version CVS: $Id$
- * @link http://pear.php.net/package/OLE
- * @since File available since Release 0.6.0
- */
-diff -urN OLE-1.0.0RC2.org/OLE/PPS/File.php OLE-1.0.0RC2/OLE/PPS/File.php
---- OLE-1.0.0RC2.org/OLE/PPS/File.php 2012-01-26 02:28:26.000000000 +0100
-+++ OLE-1.0.0RC2/OLE/PPS/File.php 2014-06-18 11:44:19.000000000 +0200
-@@ -17,7 +17,7 @@
- // | Based on OLE::Storage_Lite by Kawai, Takanori |
- // +----------------------------------------------------------------------+
- //
--// $Id: File.php 252097 2008-02-02 21:00:37Z schmidt $
-+// $Id$
-
-
- require_once 'OLE/PPS.php';
-@@ -47,7 +47,8 @@
- */
- function OLE_PPS_File($name)
- {
-- $this->_tmp_dir = System::tmpdir();
-+ $system = new System();
-+ $this->_tmp_dir = $system->tmpdir();
- $this->OLE_PPS(
- null,
- $name,
-diff -urN OLE-1.0.0RC2.org/OLE/PPS/Root.php OLE-1.0.0RC2/OLE/PPS/Root.php
---- OLE-1.0.0RC2.org/OLE/PPS/Root.php 2012-01-26 02:28:26.000000000 +0100
-+++ OLE-1.0.0RC2/OLE/PPS/Root.php 2014-06-18 11:44:19.000000000 +0200
-@@ -17,7 +17,7 @@
- // | Based on OLE::Storage_Lite by Kawai, Takanori |
- // +----------------------------------------------------------------------+
- //
--// $Id: Root.php 322720 2012-01-25 12:56:57Z clockwerx $
-+// $Id$
-
-
- require_once 'OLE/PPS.php';
-@@ -53,7 +53,8 @@
- */
- function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
- {
-- $this->_tmp_dir = System::tmpdir();
-+ $system = new System();
-+ $this->_tmp_dir = $system->tmpdir();
- $this->OLE_PPS(
- null,
- OLE::Asc2Ucs('Root Entry'),
-@@ -620,7 +621,7 @@
- else
- fwrite($FILE, pack("V", -2));
-
-- fwrite($FILE, pack("V", 1));
-+ fwrite($FILE, pack("V", $num_sb_blocks));
-
- // Extra BDList Start, Count
- if($bbd_info["blockchain_list_entries"] < $bbd_info["header_blockchain_list_entries"])
-diff -urN OLE-1.0.0RC2.org/OLE/PPS.php OLE-1.0.0RC2/OLE/PPS.php
---- OLE-1.0.0RC2.org/OLE/PPS.php 2012-01-26 02:28:26.000000000 +0100
-+++ OLE-1.0.0RC2/OLE/PPS.php 2014-06-18 11:44:19.000000000 +0200
-@@ -17,7 +17,7 @@
- // | Based on OLE::Storage_Lite by Kawai, Takanori |
- // +----------------------------------------------------------------------+
- //
--// $Id: PPS.php 322771 2012-01-26 01:24:20Z clockwerx $
-+// $Id$
-
-
- require_once 'PEAR.php';
-diff -urN OLE-1.0.0RC2.org/OLE.php OLE-1.0.0RC2/OLE.php
---- OLE-1.0.0RC2.org/OLE.php 2012-01-26 02:28:26.000000000 +0100
-+++ OLE-1.0.0RC2/OLE.php 2014-06-18 11:44:19.000000000 +0200
-@@ -17,7 +17,7 @@
- // | Based on OLE::Storage_Lite by Kawai, Takanori |
- // +----------------------------------------------------------------------+
- //
--// $Id: OLE.php 260165 2008-05-23 16:33:58Z schmidt $
-+// $Id$
-
-
- /**
-@@ -475,7 +475,7 @@
- * @param string $ascii The ASCII string to transform
- * @return string The string in Unicode
- */
-- function Asc2Ucs($ascii)
-+ static function Asc2Ucs($ascii)
- {
- $rawname = '';
- for ($i = 0; $i < strlen($ascii); $i++) {
-@@ -493,7 +493,7 @@
- * @param integer $date A timestamp
- * @return string The string for the OLE container
- */
-- function LocalDate2OLE($date = null)
-+ static function LocalDate2OLE($date = null)
- {
- if (!isset($date)) {
- return "\x00\x00\x00\x00\x00\x00\x00\x00";
-@@ -538,7 +538,7 @@
- * @access public
- * @static
- */
-- function OLE2LocalDate($string)
-+ static function OLE2LocalDate($string)
- {
- if (strlen($string) != 8) {
- return new PEAR_Error("Expecting 8 byte string");
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pear-OLE.git/commitdiff/684460ca190e01d7a95e2bab9a8435503b7fac21
More information about the pld-cvs-commit
mailing list