Minor updates per review

This commit is contained in:
Shawn Iwinski 2014-11-05 18:20:48 -05:00
commit 4fe09f4c57

View file

@ -31,7 +31,7 @@
Name: php-%{composer_vendor}-%{composer_project}
Version: %{github_version}
Release: 1%{?github_release}%{?dist}
Release: 2%{?github_release}%{?dist}
Summary: A set of code generator utilities built on top of PHP-Parsers
Group: Development/Libraries
@ -90,15 +90,13 @@ cat > autoload.php <<'AUTOLOAD'
spl_autoload_register(function ($class) {
$src = str_replace('\\', '/', $class).'.php';
include_once $src;
@include_once $src;
});
AUTOLOAD
# Create PHPUnit config with colors turned off
sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml
find /usr/share/php/PhpParser
%{__phpunit} \
--bootstrap autoload.php \
--include-path %{buildroot}%{phpdir}:./tests \
@ -116,5 +114,9 @@ find /usr/share/php/PhpParser
%changelog
* Wed Nov 05 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 0.3.0-2
- Silenced include in autoloader
- Removed debug from %%check
* Mon Oct 27 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 0.3.0-1
- Initial package