|
|
@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Fedora spec file for php-fedora-autoloader
|
|
|
|
# Fedora spec file for php-fedora-autoloader
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Shawn Iwinski <shawn@iwin.ski>
|
|
|
|
# Copyright (c) 2016-2017 Shawn Iwinski <shawn@iwin.ski>
|
|
|
|
# Remi Collet <remi@fedoraproject.org>
|
|
|
|
# Remi Collet <remi@fedoraproject.org>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# License: MIT
|
|
|
|
# License: MIT
|
|
|
@ -12,8 +12,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
%global github_owner php-fedora
|
|
|
|
%global github_owner php-fedora
|
|
|
|
%global github_name autoloader
|
|
|
|
%global github_name autoloader
|
|
|
|
%global github_version 0.2.1
|
|
|
|
%global github_version 1.0.0
|
|
|
|
%global github_commit 98d5a2ec9389686eec8e185c1d0495ef1a6a75c3
|
|
|
|
%global github_commit a71e31e6342b74dd3a4816ac04a05e2a8560228c
|
|
|
|
|
|
|
|
|
|
|
|
%global composer_vendor fedora
|
|
|
|
%global composer_vendor fedora
|
|
|
|
%global composer_project autoloader
|
|
|
|
%global composer_project autoloader
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: php-%{composer_vendor}-%{composer_project}
|
|
|
|
Name: php-%{composer_vendor}-%{composer_project}
|
|
|
|
Version: %{github_version}
|
|
|
|
Version: %{github_version}
|
|
|
|
Release: 3%{?github_release}%{?dist}
|
|
|
|
Release: 1%{?github_release}%{?dist}
|
|
|
|
Summary: Fedora Autoloader
|
|
|
|
Summary: Fedora Autoloader
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -49,13 +49,15 @@ BuildRequires: php(language) >= %{php_min_ver}
|
|
|
|
BuildRequires: php-composer(phpunit/phpunit)
|
|
|
|
BuildRequires: php-composer(phpunit/phpunit)
|
|
|
|
BuildRequires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
BuildRequires: php-composer(theseer/autoload) >= %{phpab_min_ver}
|
|
|
|
BuildRequires: php-pear
|
|
|
|
BuildRequires: php-pear
|
|
|
|
## phpcompatinfo (computed from version 0.2.1)
|
|
|
|
## phpcompatinfo (computed from version 1.0.0)
|
|
|
|
|
|
|
|
BuildRequires: php-ctype
|
|
|
|
BuildRequires: php-spl
|
|
|
|
BuildRequires: php-spl
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# composer.json
|
|
|
|
# composer.json
|
|
|
|
Requires: php(language) >= %{php_min_ver}
|
|
|
|
Requires: php(language) >= %{php_min_ver}
|
|
|
|
# phpcompatinfo (computed from version 0.2.1)
|
|
|
|
# phpcompatinfo (computed from version 1.0.0)
|
|
|
|
|
|
|
|
Requires: php-ctype
|
|
|
|
Requires: php-spl
|
|
|
|
Requires: php-spl
|
|
|
|
|
|
|
|
|
|
|
|
# Composer
|
|
|
|
# Composer
|
|
|
@ -112,11 +114,17 @@ cp -p res/phpab/fedora.php.tpl %{buildroot}%{phpab_template_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if %{with_tests}
|
|
|
|
%if %{with_tests}
|
|
|
|
%{_bindir}/php \
|
|
|
|
RETURN_CODE=0
|
|
|
|
|
|
|
|
for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71; do
|
|
|
|
|
|
|
|
if which $PHP_EXEC; then
|
|
|
|
|
|
|
|
$PHP_EXEC \
|
|
|
|
-d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \
|
|
|
|
-d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \
|
|
|
|
%{_bindir}/phpunit \
|
|
|
|
%{_bindir}/phpunit \
|
|
|
|
--bootstrap %{buildroot}%{phpdir}/Fedora/Autoloader/autoload.php \
|
|
|
|
--bootstrap %{buildroot}%{phpdir}/Fedora/Autoloader/autoload.php \
|
|
|
|
--verbose
|
|
|
|
--verbose
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $RETURN_CODE
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
: Tests skipped
|
|
|
|
: Tests skipped
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -135,6 +143,10 @@ cp -p res/phpab/fedora.php.tpl %{buildroot}%{phpab_template_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Mar 13 2017 Shawn Iwinski <shawn@iwin.ski> - 1.0.0-1
|
|
|
|
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
|
|
|
- Test with SCLs if available
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|