workaround when not in global autoloader

epel9
Remi Collet 8 years ago
parent 4646429ab1
commit 635908a833

@ -32,7 +32,7 @@
Name: php-%{composer_vendor}-%{composer_project}
Version: %{github_version}
Release: 3%{?github_release}%{?dist}
Release: 2%{?github_release}%{?dist}
Summary: Fedora Autoloader
Group: Development/Libraries
@ -112,9 +112,12 @@ cp -p res/phpab/fedora.php.tpl %{buildroot}%{phpab_template_dir}/
%check
%if %{with_tests}
# drop to avoid duplicated class (used for boostrap)
if grep Fedora/Autoloader %{_datadir}/php/PHPUnit/Autoload.php; then
# drop to avoid duplicated class (used for boostrap)
:> src/autoload.php
else
# workaround when not in global autoloader
sed -e '/define(/d' -i src/autoload.php
fi
: Run upstream test suite
@ -139,6 +142,9 @@ fi
%changelog
* Thu Oct 27 2016 Remi Collet <remi@fedoraproject.org> - 0.2.0-2
- workaround when not in global autoloader
* Wed Oct 26 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.0-1
- Update to 0.2.0
- Remove applied patches that are included in 0.2.0

Loading…
Cancel
Save