|
|
@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Fedora spec file for php-fedora-autoloader
|
|
|
|
# Fedora spec file for php-fedora-autoloader
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016-2020 Shawn Iwinski <shawn@iwin.ski>
|
|
|
|
# Copyright (c) 2016-2021 Shawn Iwinski <shawn@iwin.ski>
|
|
|
|
# Remi Collet <remi@fedoraproject.org>
|
|
|
|
# Remi Collet <remi@fedoraproject.org>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# License: MIT
|
|
|
|
# License: MIT
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: php-%{composer_vendor}-%{composer_project}
|
|
|
|
Name: php-%{composer_vendor}-%{composer_project}
|
|
|
|
Version: %{github_version}
|
|
|
|
Version: %{github_version}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Fedora Autoloader
|
|
|
|
Summary: Fedora Autoloader
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -45,13 +45,18 @@ BuildArch: noarch
|
|
|
|
BuildRequires: php-cli
|
|
|
|
BuildRequires: php-cli
|
|
|
|
## composer.json
|
|
|
|
## composer.json
|
|
|
|
BuildRequires: php(language) >= %{php_min_ver}
|
|
|
|
BuildRequires: php(language) >= %{php_min_ver}
|
|
|
|
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
|
|
|
|
%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
|
|
|
|
%global phpunit %{_bindir}/phpunit6
|
|
|
|
%global phpunit %{_bindir}/phpunit8
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%global phpunit %{_bindir}/phpunit
|
|
|
|
%global phpunit %{_bindir}/phpunit
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: %{phpunit}
|
|
|
|
BuildRequires: %{phpunit}
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
BuildRequires:(php-composer(theseer/autoload) >= %{phpab_min_ver} with php-composer(theseer/autoload) < %{phpab_max_ver})
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: php-composer(theseer/autoload) < %{phpab_max_ver}
|
|
|
|
BuildRequires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
BuildRequires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: php-pear
|
|
|
|
BuildRequires: php-pear
|
|
|
|
## phpcompatinfo (computed from version 1.0.1)
|
|
|
|
## phpcompatinfo (computed from version 1.0.1)
|
|
|
|
BuildRequires: php-ctype
|
|
|
|
BuildRequires: php-ctype
|
|
|
@ -82,8 +87,12 @@ required and optional dependencies.
|
|
|
|
Summary: %{name} devel
|
|
|
|
Summary: %{name} devel
|
|
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
Requires:(php-composer(theseer/autoload) >= %{phpab_min_ver} with php-composer(theseer/autoload) < %{phpab_max_ver})
|
|
|
|
|
|
|
|
%else
|
|
|
|
Requires: php-composer(theseer/autoload) < %{phpab_max_ver}
|
|
|
|
Requires: php-composer(theseer/autoload) < %{phpab_max_ver}
|
|
|
|
|
|
|
|
Requires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Provides needed tools to build other packages:
|
|
|
|
Provides needed tools to build other packages:
|
|
|
@ -131,11 +140,11 @@ BOOTSTRAP
|
|
|
|
|
|
|
|
|
|
|
|
: Upstream tests
|
|
|
|
: Upstream tests
|
|
|
|
RETURN_CODE=0
|
|
|
|
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
|
|
|
|
for PHP_EXEC in "php %{phpunit}" php73 php74 php80; do
|
|
|
|
set $PHP_EXEC
|
|
|
|
set $PHP_EXEC
|
|
|
|
if [ "php" == "$1" ] || which $PHP_EXEC; then
|
|
|
|
if [ "php" == "$1" ] || which $PHP_EXEC; then
|
|
|
|
$1 -d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \
|
|
|
|
$1 -d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \
|
|
|
|
${2:-%{_bindir}/phpunit} \
|
|
|
|
${2:-%{_bindir}/phpunit8} \
|
|
|
|
--bootstrap bootstrap.php \
|
|
|
|
--bootstrap bootstrap.php \
|
|
|
|
--verbose
|
|
|
|
--verbose
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -159,6 +168,10 @@ exit $RETURN_CODE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Mar 8 2021 Remi Collet <remi@remirepo.net> - 1.0.1-5
|
|
|
|
|
|
|
|
- use range dependencies
|
|
|
|
|
|
|
|
- switch to phpunit8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|