#
%define _pearname PEAR
%define _status stable
-%define php_name php%{?php_suffix}
-%define php_min_version 5.4.0
-%include /usr/lib/rpm/macros.php
+%define php_min_version 7.2.0
Summary: PEAR Base System
Summary(pl.UTF-8): Podstawowy system PEAR
Name: php-pear-%{_pearname}
-Version: 1.10.1
-Release: 2
+Version: 1.10.12
+Release: 1
Epoch: 1
License: New BSD License
Group: Development/Languages/PHP
-Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: da3f4d00c7415d39cb57848742e09894
-Source1: http://pear.php.net/get/Console_Getopt-1.4.1.tgz
-# Source1-md5: a95c86528f910562772274eefb90ca2c
-Source2: http://pear.php.net/get/Structures_Graph-1.1.1.tgz
+Source0: https://pear.php.net/get/%{_pearname}-%{version}.tgz
+# Source0-md5: 37928350e906191f0171a4a34dd3aa0e
+Source1: https://pear.php.net/get/Console_Getopt-1.4.3.tgz
+# Source1-md5: 78620b71acdf113968c3482845bcbbc2
+Source2: https://pear.php.net/get/Structures_Graph-1.1.1.tgz
# Source2-md5: f1be7827074c4f51eb1af245f0f7c5c4
Patch0: %{name}-sysconfdir.patch
Patch1: ext-check.patch
Patch2: %{name}-FHS.patch
-URL: http://pear.php.net/package/PEAR
-BuildRequires: %{php_name}-pcre
-BuildRequires: %{php_name}-xml
+URL: https://pear.php.net/package/PEAR
+BuildRequires: php(pcre)
+BuildRequires: php(xml)
BuildRequires: /usr/bin/php
BuildRequires: rpm-php-pearprov >= 4.4.2-30.1
-BuildRequires: rpmbuild(macros) >= 1.654
+BuildRequires: rpmbuild(macros) >= 1.747
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: /usr/bin/php
Requires: php(core) >= %{php_min_version}
Requires: php(xml)
Requires: php(zlib)
Requires: php-pear >= 4:1.2-1
-Requires: php-pear-Archive_Tar >= 1.3.11
-Requires: php-pear-Console_Getopt >= 1.2.3
-Requires: php-pear-Structures_Graph >= 1.0.4
-Requires: php-pear-XML_Util >= 1.2.3
+Requires: php-pear-Archive_Tar >= 1.4.0
+Requires: php-pear-Console_Getopt >= 1.4.1
+Requires: php-pear-Structures_Graph >= 1.1.0
+Requires: php-pear-XML_Util >= 1.3.0
Requires: rpm-whiteout
Suggests: php-pear-Net_FTP
Obsoletes: php-pear-PEAR-Command
%description core
This package includes PEAR core classes:
- PEAR class and PEAR_Error
-- System
-- OS_Guess
and classes for PHP 5:
- PEAR_ErrorStack and PEAR_Exception
%{php_pear_dir}/pearcmd.php
%{php_pear_dir}/peclcmd.php
%{php_pear_dir}/PEAR/*
+%{php_pear_dir}/OS
+%{php_pear_dir}/System.php
# in -core subpackage
%exclude %{php_pear_dir}/PEAR/ErrorStack.php
%files core
%defattr(644,root,root,755)
%{php_pear_dir}/PEAR.php
-%{php_pear_dir}/System.php
-%{php_pear_dir}/OS
%dir %{php_pear_dir}/PEAR
%{php_pear_dir}/PEAR/ErrorStack.php
%{php_pear_dir}/PEAR/Exception.php