[main][extended] Fixing `php-pear` build. (#2147)
This commit is contained in:
Родитель
d0940a3053
Коммит
8099cbd66b
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"php-fedora-autoloader-1.0.1-7cd61b5a927c8f446df8e820aa288434e18a7f0c.tar.gz": "406b2715c2312016c89486632d854abda3e31bf820d6d68759e92214b40e7685"
|
||||
}
|
||||
}
|
|
@ -1,234 +0,0 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
#
|
||||
# Fedora spec file for php-fedora-autoloader
|
||||
#
|
||||
# Copyright (c) 2016-2020 Shawn Iwinski <shawn@iwin.ski>
|
||||
# Remi Collet <remi@fedoraproject.org>
|
||||
#
|
||||
# License: MIT
|
||||
# http://opensource.org/licenses/MIT
|
||||
#
|
||||
# Please preserve changelog entries
|
||||
#
|
||||
|
||||
%global github_owner php-fedora
|
||||
%global github_name autoloader
|
||||
%global github_version 1.0.1
|
||||
%global github_commit 7cd61b5a927c8f446df8e820aa288434e18a7f0c
|
||||
|
||||
%global composer_vendor fedora
|
||||
%global composer_project autoloader
|
||||
|
||||
# "php": ">= 5.3.3"
|
||||
%global php_min_ver 5.3.3
|
||||
# "theseer/autoload": "^1.22"
|
||||
%global phpab_min_ver 1.22
|
||||
%global phpab_max_ver 2.0
|
||||
|
||||
%{!?phpdir: %global phpdir %{_datadir}/php}
|
||||
%global phpab_template_dir %{phpdir}/TheSeer/Autoload/templates/ci
|
||||
|
||||
Name: php-%{composer_vendor}-%{composer_project}
|
||||
Version: %{github_version}
|
||||
Release: 3%{?dist}
|
||||
Summary: Fedora Autoloader
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/%{github_owner}/%{github_name}
|
||||
Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
# Tests
|
||||
%if %{with_check}
|
||||
BuildRequires: php-cli
|
||||
## composer.json
|
||||
BuildRequires: php(language) >= %{php_min_ver}
|
||||
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
|
||||
%global phpunit %{_bindir}/phpunit6
|
||||
%else
|
||||
%global phpunit %{_bindir}/phpunit
|
||||
%endif
|
||||
BuildRequires: %{phpunit}
|
||||
BuildRequires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
||||
BuildRequires: php-pear
|
||||
## phpcompatinfo (computed from version 1.0.1)
|
||||
BuildRequires: php-ctype
|
||||
BuildRequires: php-spl
|
||||
%endif
|
||||
|
||||
# composer.json
|
||||
Requires: php(language) >= %{php_min_ver}
|
||||
# phpcompatinfo (computed from version 1.0.1)
|
||||
Requires: php-ctype
|
||||
Requires: php-spl
|
||||
|
||||
# Composer
|
||||
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
||||
|
||||
%description
|
||||
Static PSR-4 [1], PSR-0 [2], and classmap autoloader. Includes loader for
|
||||
required and optional dependencies.
|
||||
|
||||
[1] http://www.php-fig.org/psr/psr-4/
|
||||
[2] http://www.php-fig.org/psr/psr-0/
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%package devel
|
||||
|
||||
Summary: %{name} devel
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
||||
Requires: php-composer(theseer/autoload) < %{phpab_max_ver}
|
||||
|
||||
%description devel
|
||||
Provides needed tools to build other packages:
|
||||
- phpab fedora template
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qn %{github_name}-%{github_commit}
|
||||
|
||||
: Set autoload path in phpab templates
|
||||
sed "s#___AUTOLOAD_PATH___#'Fedora/Autoloader'#" \
|
||||
res/phpab/fedora.php.tpl >res/phpab/fedora2.php.tpl
|
||||
sed "s#___AUTOLOAD_PATH___#'%{phpdir}/Fedora/Autoloader'#" \
|
||||
-i res/phpab/fedora.php.tpl
|
||||
|
||||
|
||||
%build
|
||||
# Empty build section, nothing to build
|
||||
|
||||
|
||||
%install
|
||||
: Main
|
||||
mkdir -p %{buildroot}%{phpdir}/Fedora/Autoloader
|
||||
cp -rp src/* %{buildroot}%{phpdir}/Fedora/Autoloader/
|
||||
|
||||
: Devel
|
||||
mkdir -p %{buildroot}%{phpab_template_dir}
|
||||
cp -p res/phpab/fedora*.php.tpl %{buildroot}%{phpab_template_dir}/
|
||||
|
||||
|
||||
%check
|
||||
: Create tests bootstrap
|
||||
cat <<'BOOTSTRAP' | tee bootstrap.php
|
||||
<?php
|
||||
require '%{buildroot}%{phpdir}/Fedora/Autoloader/autoload.php';
|
||||
|
||||
if (!class_exists('PHPUnit\\Framework\\TestCase')) {
|
||||
class_alias('PHPUnit_Framework_TestCase', 'PHPUnit\\Framework\\TestCase');
|
||||
}
|
||||
BOOTSTRAP
|
||||
|
||||
: Upstream tests
|
||||
RETURN_CODE=0
|
||||
for PHP_EXEC in "php %{phpunit}" %{?rhel:php54 php55 php56} php70 "php71 %{_bindir}/phpunit6" "php72 %{_bindir}/phpunit6" "php73 %{_bindir}/phpunit6" "php74 %{_bindir}/phpunit6"; do
|
||||
set $PHP_EXEC
|
||||
if [ "php" == "$1" ] || which $PHP_EXEC; then
|
||||
$1 -d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \
|
||||
${2:-%{_bindir}/phpunit} \
|
||||
--bootstrap bootstrap.php \
|
||||
--verbose
|
||||
fi
|
||||
done
|
||||
exit $RETURN_CODE
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE
|
||||
%dir %{phpdir}/Fedora
|
||||
%{phpdir}/Fedora/Autoloader
|
||||
|
||||
%files devel
|
||||
%doc *.md
|
||||
%doc composer.json
|
||||
%{phpab_template_dir}/fedora*.php.tpl
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.0.1-3
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
* Wed Feb 12 2020 Shawn Iwinski <shawn@iwin.ski> - 1.0.1-2
|
||||
- Add tests bootstrap to fix EPEL6 build
|
||||
|
||||
* Wed Feb 12 2020 Shawn Iwinski <shawn@iwin.ski> - 1.0.1-1
|
||||
- Update to 1.0.1 (RHBZ #1802372)
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Dec 4 2018 Remi Collet <remi@remirepo.net> - 1.0.0-5
|
||||
- cleanup for EL-8
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Thu May 04 2017 Shawn Iwinski <shawn@iwin.ski> - 1.0.0-1
|
||||
- Update to 1.0.0
|
||||
|
||||
* Tue Mar 28 2017 Shawn Iwinski <shawn@iwin.ski> - 1.0.0-0.1.rc1
|
||||
- Update to 1.0.0-rc1
|
||||
- Test with SCLs if available
|
||||
- Add fedora2 template relying on include_path
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Oct 28 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.1-2
|
||||
- Do not install tests into buildroot
|
||||
|
||||
* Fri Oct 28 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.1-1
|
||||
- Update to 0.2.1
|
||||
- Remove applied patches that are included in 0.2.1
|
||||
- Re-add custom include_path and bootstrap for tests
|
||||
- Add php-cli build dependency
|
||||
|
||||
* Thu Oct 27 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.0-5
|
||||
- Add upstream patch "Remove self-autoload constant and prepend
|
||||
self-autoload PSR-4 register"
|
||||
- Remove custom include_path and bootstrap for tests
|
||||
|
||||
* Thu Oct 27 2016 Remi Collet <remi@fedoraproject.org> - 0.2.0-4
|
||||
- workaround when not in global autoloader
|
||||
|
||||
* Wed Oct 26 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.0-3
|
||||
- Update to 0.2.0
|
||||
- Remove applied patches that are included in 0.2.0
|
||||
|
||||
* Tue Oct 25 2016 Remi Collet <remi@fedoraproject.org> - 0.1.2-3
|
||||
- rename 1 method to avoid conflicts with symfony
|
||||
|
||||
* Sat Oct 22 2016 Remi Collet <remi@fedoraproject.org> - 0.1.2-2
|
||||
- ensure we use newly installed autoloader in buildroot
|
||||
|
||||
* Fri Oct 21 2016 Remi Collet <remi@fedoraproject.org> - 0.1.2-1
|
||||
- update to 0.1.2
|
||||
|
||||
* Wed Oct 19 2016 Shawn Iwinski <shawn@iwin.ski> - 0.1.1-1
|
||||
- Update to 0.1.1
|
||||
- Fix phpab template
|
||||
- Move docs to devel subpackage
|
||||
|
||||
* Wed Oct 19 2016 Shawn Iwinski <shawn@iwin.ski> - 0.1.0-1
|
||||
- Initial package
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"Archive_Tar-1.4.12.tgz": "c1e90dacd204cf0f9b28f93360cfc339077d97f9b3ae3c11d31daa2808a4fa24",
|
||||
"Archive_Tar-1.4.14.tgz": "4af263e4fdfcb400f888f84cccf8d05d1be2eb78128349431405b2ffb0c0c9f4",
|
||||
"Console_Getopt-1.4.3.tgz": "54bdfb7c2c958cbd7e1e8f1b964b95c3bfbf3b2779052523011b4ee49d7dfacd",
|
||||
"PEAR-1.10.12.tgz": "df363c5e6091334c43f560eec2f220be2f8044eb5d422204a715adc4663ba923",
|
||||
"PEAR-1.10.13.tgz": "078889293d84a0826d842e2d4916870137f44a82a5b931a2e280b0bec6d905bc",
|
||||
"PEAR_Manpages-1.10.0.tgz": "503cdd117028458999d62ba1d477a112714fe3f9fb53df94324205b95455a237",
|
||||
"Structures_Graph-1.1.1.tgz": "3b19abac379883f095c11fe2e5550cb61691b868f3d96573f6ed564be82fa08e",
|
||||
"XML_Util-1.4.5.tgz": "e0f8736cb47ce9dd32814de45425ff03ad55a72ba8bb757e42c456f861feedf6",
|
||||
|
|
|
@ -1,130 +1,105 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
# Fedora spec file for php-pear
|
||||
#
|
||||
# License: MIT
|
||||
# http://opensource.org/licenses/MIT
|
||||
#
|
||||
# Please preserve changelog entries
|
||||
#
|
||||
%global peardir %{_datadir}/pear
|
||||
%global metadir %{_localstatedir}/lib/pear
|
||||
|
||||
%global getoptver 1.4.3
|
||||
%global arctarver 1.4.12
|
||||
%global arctarver 1.4.14
|
||||
# https://pear.php.net/bugs/bug.php?id=19367
|
||||
# Structures_Graph 1.0.4 - incorrect FSF address
|
||||
%global structver 1.1.1
|
||||
%global xmlutil 1.4.5
|
||||
%global manpages 1.10.0
|
||||
|
||||
# Tests are only run with rpmbuild --with tests
|
||||
# Can't be run in mock / koji because PEAR is the first package
|
||||
%global with_tests 0%{?_with_tests:1}
|
||||
|
||||
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||
%global macrosdir %{_rpmconfigdir}/macros.d
|
||||
|
||||
%{!?pecl_xmldir: %global pecl_xmldir %{_sharedstatedir}/php/peclxml}
|
||||
|
||||
Summary: PHP Extension and Application Repository framework
|
||||
Name: php-pear
|
||||
Version: 1.10.12
|
||||
Release: 7%{?dist}
|
||||
Summary: PHP Extension and Application Repository framework
|
||||
Name: php-pear
|
||||
Version: 1.10.13
|
||||
Release: 3%{?dist}
|
||||
# PEAR, PEAR_Manpages, Archive_Tar, XML_Util, Console_Getopt are BSD
|
||||
# Structures_Graph is LGPLv3+
|
||||
License: BSD and LGPLv3+
|
||||
URL: http://pear.php.net/package/PEAR
|
||||
Source0: http://download.pear.php.net/package/PEAR-%{version}%{?pearprever}.tgz
|
||||
License: BSD AND LGPLv3+
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: https://pear.php.net/package/PEAR
|
||||
Source0: http://download.pear.php.net/package/PEAR-%{version}.tgz
|
||||
# wget https://raw.githubusercontent.com/pear/pear-core/stable/install-pear.php
|
||||
Source1: install-pear.php
|
||||
Source3: cleanup.php
|
||||
Source10: pear.sh
|
||||
Source11: pecl.sh
|
||||
Source12: peardev.sh
|
||||
Source13: macros.pear
|
||||
Source21: http://pear.php.net/get/Archive_Tar-%{arctarver}.tgz
|
||||
Source22: http://pear.php.net/get/Console_Getopt-%{getoptver}.tgz
|
||||
Source23: http://pear.php.net/get/Structures_Graph-%{structver}.tgz
|
||||
Source24: http://pear.php.net/get/XML_Util-%{xmlutil}.tgz
|
||||
Source25: http://pear.php.net/get/PEAR_Manpages-%{manpages}.tgz
|
||||
Source1: install-pear.php
|
||||
Source3: cleanup.php
|
||||
Source10: pear.sh
|
||||
Source11: pecl.sh
|
||||
Source12: peardev.sh
|
||||
Source13: macros.pear
|
||||
Source21: https://pear.php.net/get/Archive_Tar-%{arctarver}.tgz
|
||||
Source22: https://pear.php.net/get/Console_Getopt-%{getoptver}.tgz
|
||||
Source23: https://pear.php.net/get/Structures_Graph-%{structver}.tgz
|
||||
Source24: https://pear.php.net/get/XML_Util-%{xmlutil}.tgz
|
||||
Source25: https://pear.php.net/get/PEAR_Manpages-%{manpages}.tgz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) > 5.4
|
||||
BuildRequires: php-cli
|
||||
BuildRequires: php-xml
|
||||
BuildRequires: %{_bindir}/gpg
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: %{_bindir}/gpg
|
||||
BuildRequires: php(language) > 5.4
|
||||
BuildRequires: php-cli
|
||||
# For pecl_xmldir macro
|
||||
BuildRequires: php-devel
|
||||
%if %{with_tests}
|
||||
BuildRequires: php-devel
|
||||
BuildRequires: php-xml
|
||||
|
||||
%if %{with_check}
|
||||
BuildRequires: %{_bindir}/phpunit
|
||||
%endif
|
||||
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
|
||||
Provides: php-pear(Console_Getopt) = %{getoptver}
|
||||
Provides: php-pear(Archive_Tar) = %{arctarver}
|
||||
Provides: php-pear(PEAR) = %{version}
|
||||
Provides: php-pear(Structures_Graph) = %{structver}
|
||||
Provides: php-pear(XML_Util) = %{xmlutil}
|
||||
Provides: php-pear(PEAR_Manpages) = %{manpages}
|
||||
|
||||
Provides: php-composer(pear/console_getopt) = %{getoptver}
|
||||
Provides: php-composer(pear/archive_tar) = %{arctarver}
|
||||
Provides: php-composer(pear/pear-core-minimal) = %{version}
|
||||
Provides: php-composer(pear/structures_graph) = %{structver}
|
||||
Provides: php-composer(pear/xml_util) = %{xmlutil}
|
||||
|
||||
Provides: php-autoloader(pear/console_getopt) = %{getoptver}
|
||||
Provides: php-autoloader(pear/archive_tar) = %{arctarver}
|
||||
Provides: php-autoloader(pear/pear-core-minimal) = %{version}
|
||||
Provides: php-autoloader(pear/structures_graph) = %{structver}
|
||||
Provides: php-autoloader(pear/xml_util) = %{xmlutil}
|
||||
|
||||
|
||||
# Archive_Tar requires 5.2
|
||||
# XML_Util, Structures_Graph require 5.3
|
||||
# Console_Getopt requires 5.4
|
||||
# PEAR requires 5.4
|
||||
Requires: php(language) > 5.4
|
||||
Requires: php-cli
|
||||
# phpci detected extension
|
||||
# PEAR (date, spl always builtin):
|
||||
Requires: php-ftp
|
||||
Requires: php-pcre
|
||||
Requires: php-posix
|
||||
Requires: php-tokenizer
|
||||
Requires: php-xml
|
||||
Requires: php-zlib
|
||||
# Console_Getopt: pcre
|
||||
# Archive_Tar: pcre, posix, zlib
|
||||
Requires: php-bz2
|
||||
# Structures_Graph: none
|
||||
# XML_Util: pcre
|
||||
# optional: overload and xdebug
|
||||
# for /var/www/html ownership
|
||||
Requires: httpd-filesystem
|
||||
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
Requires: httpd-filesystem
|
||||
# Archive_Tar requires 5.2
|
||||
# XML_Util, Structures_Graph require 5.3
|
||||
# Console_Getopt requires 5.4
|
||||
# PEAR requires 5.4
|
||||
Requires: php(language) > 5.4
|
||||
# Console_Getopt: pcre
|
||||
# Archive_Tar: pcre, posix, zlib
|
||||
Requires: php-bz2
|
||||
Requires: php-cli
|
||||
# phpci detected extension
|
||||
# PEAR (date, spl always builtin):
|
||||
Requires: php-ftp
|
||||
Requires: php-pcre
|
||||
Requires: php-posix
|
||||
Requires: php-tokenizer
|
||||
Requires: php-xml
|
||||
Requires: php-zlib
|
||||
|
||||
Provides: php-pear(Console_Getopt) = %{getoptver}
|
||||
Provides: php-pear(Archive_Tar) = %{arctarver}
|
||||
Provides: php-pear(PEAR) = %{version}
|
||||
Provides: php-pear(Structures_Graph) = %{structver}
|
||||
Provides: php-pear(XML_Util) = %{xmlutil}
|
||||
Provides: php-pear(PEAR_Manpages) = %{manpages}
|
||||
|
||||
Provides: php-composer(pear/console_getopt) = %{getoptver}
|
||||
Provides: php-composer(pear/archive_tar) = %{arctarver}
|
||||
Provides: php-composer(pear/pear-core-minimal) = %{version}
|
||||
Provides: php-composer(pear/structures_graph) = %{structver}
|
||||
Provides: php-composer(pear/xml_util) = %{xmlutil}
|
||||
|
||||
%description
|
||||
PEAR is a framework and distribution system for reusable PHP
|
||||
components. This package contains the basic PEAR components.
|
||||
|
||||
%prep
|
||||
%setup -cT
|
||||
%setup -q -cT
|
||||
|
||||
# Create a usable PEAR directory (used by install-pear.php)
|
||||
for archive in %{SOURCE0} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} %{SOURCE25}
|
||||
do
|
||||
tar xzf $archive --strip-components 1 || tar xzf $archive --strip-path 1
|
||||
tar xzf $archive --strip-components 1 || tar xzf $archive --strip-path 1
|
||||
file=${archive##*/}
|
||||
[ -f LICENSE ] && mv LICENSE LICENSE-${file%%-*}
|
||||
[ -f README ] && mv README README-${file%%-*}
|
||||
|
||||
tar xzf $archive 'package.xml'
|
||||
tar xzf $archive --wildcards 'package*xml'
|
||||
[ -f package2.xml ] && mv package2.xml ${file%%-*}.xml \
|
||||
|| mv package.xml ${file%%-*}.xml
|
||||
done
|
||||
|
@ -137,35 +112,8 @@ sed -e 's:@BINDIR@:%{_bindir}:' \
|
|||
-e 's:@LIBDIR@:%{_localstatedir}/lib:' \
|
||||
%{SOURCE13} > macros.pear
|
||||
|
||||
|
||||
%build
|
||||
|
||||
# Create per package autoloader
|
||||
phpab --template fedora \
|
||||
--output PEAR/autoload.php\
|
||||
PEAR OS System.php PEAR.php
|
||||
|
||||
phpab --template fedora \
|
||||
--output Structures/Graph/autoload.php \
|
||||
Structures
|
||||
|
||||
mkdir Archive/Tar
|
||||
phpab --template fedora \
|
||||
--output Archive/Tar/autoload.php \
|
||||
Archive
|
||||
|
||||
mkdir Console/Getopt
|
||||
phpab --template fedora \
|
||||
--output Console/Getopt/autoload.php \
|
||||
Console
|
||||
|
||||
mkdir XML/Util
|
||||
phpab --template fedora \
|
||||
--output XML/Util/autoload.php \
|
||||
XML
|
||||
|
||||
|
||||
|
||||
%install
|
||||
export PHP_PEAR_SYSCONF_DIR=%{_sysconfdir}
|
||||
export PHP_PEAR_SIG_KEYDIR=%{_sysconfdir}/pearkeys
|
||||
|
@ -176,12 +124,12 @@ export PHP_PEAR_INSTALL_DIR=%{peardir}
|
|||
# so it's not possible to set a sane default via the environment.
|
||||
# The ${PWD} bit will be stripped via relocate.php later.
|
||||
export PHP_PEAR_CACHE_DIR=${PWD}%{_localstatedir}/cache/php-pear
|
||||
export PHP_PEAR_TEMP_DIR=/var/tmp
|
||||
export PHP_PEAR_TEMP_DIR=%{_var}/tmp
|
||||
|
||||
install -d %{buildroot}%{peardir} \
|
||||
%{buildroot}%{_localstatedir}/cache/php-pear \
|
||||
%{buildroot}%{_localstatedir}/www/html \
|
||||
%{buildroot}%{_localstatedir}/lib/pear/pkgxml \
|
||||
%{buildroot}%{metadir}/pkgxml \
|
||||
%{buildroot}%{_sysconfdir}/pear
|
||||
|
||||
export INSTALL_ROOT=%{buildroot}
|
||||
|
@ -227,15 +175,7 @@ popd
|
|||
rm -rf %{buildroot}/.depdb* %{buildroot}/.lock %{buildroot}/.channels %{buildroot}/.filemap
|
||||
|
||||
# Need for re-registrying XML_Util
|
||||
install -m 644 *.xml %{buildroot}%{_localstatedir}/lib/pear/pkgxml
|
||||
|
||||
|
||||
# install autoloaders
|
||||
for i in PEAR/autoload.php Structures/Graph/autoload.php Archive/Tar/autoload.php Console/Getopt/autoload.php XML/Util/autoload.php
|
||||
do install -Dpm 644 $i %{buildroot}%{peardir}/$i
|
||||
done
|
||||
|
||||
|
||||
install -m 644 *.xml %{buildroot}%{metadir}/pkgxml
|
||||
|
||||
%check
|
||||
# Check that no bogus paths are left in the configuration, or in
|
||||
|
@ -243,13 +183,12 @@ done
|
|||
grep %{buildroot} %{buildroot}%{_sysconfdir}/pear.conf && exit 1
|
||||
grep %{_libdir} %{buildroot}%{_sysconfdir}/pear.conf && exit 1
|
||||
grep '"/tmp"' %{buildroot}%{_sysconfdir}/pear.conf && exit 1
|
||||
grep /usr/local %{buildroot}%{_sysconfdir}/pear.conf && exit 1
|
||||
grep %{_prefix}/local %{buildroot}%{_sysconfdir}/pear.conf && exit 1
|
||||
grep -rl %{buildroot} %{buildroot} && exit 1
|
||||
|
||||
|
||||
%if %{with_tests}
|
||||
cp /etc/php.ini .
|
||||
echo "include_path=.:%{buildroot}%{peardir}:/usr/share/php" >>php.ini
|
||||
cp %{_sysconfdir}/php.ini .
|
||||
echo "include_path=.:%{buildroot}%{peardir}:%{_datadir}/php" >>php.ini
|
||||
export PHPRC=$PWD/php.ini
|
||||
LOG=$PWD/rpmlog
|
||||
ret=0
|
||||
|
@ -260,21 +199,18 @@ phpunit \
|
|||
|
||||
cd %{buildroot}%{_datadir}/tests/pear/XML_Util/tests
|
||||
phpunit \
|
||||
--bootstrap=/usr/share/pear/XML/Util/autoload.php \
|
||||
--bootstrap=%{peardir}XML/Util/autoload.php \
|
||||
--test-suffix .php . || ret=1
|
||||
|
||||
cd %{buildroot}%{_datadir}/tests/pear/Console_Getopt/tests
|
||||
%{_bindir}/php \
|
||||
%{buildroot}/usr/share/pear/pearcmd.php \
|
||||
%{buildroot}%{peardir}pearcmd.php \
|
||||
run-tests \
|
||||
| tee -a $LOG
|
||||
|
||||
grep "FAILED TESTS" $LOG && ret=1
|
||||
|
||||
exit $ret
|
||||
%else
|
||||
echo 'Test suite disabled (missing "--with tests" option)'
|
||||
%endif
|
||||
|
||||
# Register newly installed PECL packages
|
||||
%transfiletriggerin -- %{pecl_xmldir}
|
||||
|
@ -298,21 +234,22 @@ while ($file=fgets(STDIN)) {
|
|||
%{_bindir}/pecl uninstall --nodeps --ignore-errors --register-only "$name" >/dev/null || :
|
||||
done
|
||||
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 -a -d %{metadir}/.registry ] ; then
|
||||
rm -rf %{metadir}/.registry
|
||||
fi
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%doc README*
|
||||
%doc %{_docdir}/pear/*
|
||||
%{peardir}
|
||||
%dir %{metadir}
|
||||
%{metadir}/.channels
|
||||
%verify(not mtime size md5) %{metadir}/.depdb
|
||||
%verify(not mtime) %{metadir}/.depdblock
|
||||
%verify(not mtime) %{metadir}/.depdblock
|
||||
%verify(not mtime size md5) %{metadir}/.filemap
|
||||
%verify(not mtime) %{metadir}/.lock
|
||||
%verify(not mtime) %{metadir}/.lock
|
||||
%{metadir}/.registry
|
||||
%{metadir}/pkgxml
|
||||
%{_bindir}/*
|
||||
|
@ -320,10 +257,7 @@ fi
|
|||
%{macrosdir}/macros.pear
|
||||
%dir %{_localstatedir}/cache/php-pear
|
||||
%dir %{_sysconfdir}/pear
|
||||
%license LICENSE*
|
||||
%doc README*
|
||||
%dir %{_docdir}/pear
|
||||
%doc %{_docdir}/pear/*
|
||||
%{_datadir}/tests/pear
|
||||
%{_datadir}/pear-data
|
||||
%{_mandir}/man1/pear.1*
|
||||
|
@ -331,14 +265,34 @@ fi
|
|||
%{_mandir}/man1/peardev.1*
|
||||
%{_mandir}/man5/pear.conf.5*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 01 2021 Muhammad Falak <mwani@microsft.com> - 1.10.12-7
|
||||
- Remove epoch
|
||||
* Tue Feb 08 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.10.13-3
|
||||
- Removed dependency on "php-fedora-autoloader".
|
||||
- Updated URLs to HTTPS.
|
||||
- Removed epoch.
|
||||
- Initial CBL-Mariner import from Fedora 36 (license: MIT).
|
||||
- License verified.
|
||||
|
||||
* Fri Feb 12 2021 Henry Li <lihl@microsoft.com> - 1:1.10.12-6
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Remove wildcard matching of "package*xml" to "package.xml"
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.10.13-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Aug 11 2021 Remi Collet <remi@remirepo.net> - 1.10.13-1
|
||||
- update to 1.10.13
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.10.12-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Remi Collet <remi@remirepo.net> - 1:1.10.12-9
|
||||
- update Archive_Tar to 1.4.14
|
||||
|
||||
* Fri Jun 18 2021 Remi Collet <remi@remirepo.net> - 1:1.10.12-8
|
||||
- fedora/autoloader is optional
|
||||
|
||||
* Mon May 10 2021 Remi Collet <remi@remirepo.net> - 1:1.10.12-7
|
||||
- update Archive_Tar to 1.4.13
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.10.12-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jan 19 2021 Remi Collet <remi@remirepo.net> - 1:1.10.12-5
|
||||
- update Archive_Tar to 1.4.12
|
||||
|
@ -349,6 +303,9 @@ fi
|
|||
* Wed Sep 16 2020 Remi Collet <remi@remirepo.net> - 1:1.10.12-3
|
||||
- update Archive_Tar to 1.4.10
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.10.12-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Apr 20 2020 Remi Collet <remi@remirepo.net> - 1.10.12-1
|
||||
- update PEAR to 1.10.12
|
||||
- update XML_Util to 1.4.5
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1663,7 +1663,6 @@
|
|||
"pesign",
|
||||
"phodav",
|
||||
"php",
|
||||
"php-fedora-autoloader",
|
||||
"php-pear",
|
||||
"physfs",
|
||||
"picosat",
|
||||
|
|
|
@ -21279,23 +21279,13 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "php-fedora-autoloader",
|
||||
"version": "1.0.1",
|
||||
"downloadUrl": "https://github.com/php-fedora/autoloader/archive/7cd61b5a927c8f446df8e820aa288434e18a7f0c/php-fedora-autoloader-1.0.1-7cd61b5a927c8f446df8e820aa288434e18a7f0c.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "php-pear",
|
||||
"version": "1.10.12",
|
||||
"downloadUrl": "http://download.pear.php.net/package/PEAR-1.10.12.tgz"
|
||||
"version": "1.10.13",
|
||||
"downloadUrl": "http://download.pear.php.net/package/PEAR-1.10.13.tgz"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче