diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-11-06 07:23:56 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-11-06 07:23:56 +0100 |
commit | a5c2e93346687667ed075349c7a6ba0c2bd45aa2 (patch) | |
tree | bdcae5834387b4731ee1c61e42217257eb52a26f /php-egulias-email-validator.spec | |
parent | acf4c8ff630cad4e7e44946719bef617572dabdf (diff) |
php-egulias-email-validator: backport stuff
Diffstat (limited to 'php-egulias-email-validator.spec')
-rw-r--r-- | php-egulias-email-validator.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/php-egulias-email-validator.spec b/php-egulias-email-validator.spec index 6aa24a3..84e5801 100644 --- a/php-egulias-email-validator.spec +++ b/php-egulias-email-validator.spec @@ -39,6 +39,7 @@ License: MIT URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %if %{with_tests} BuildRequires: php-phpunit-PHPUnit @@ -81,6 +82,7 @@ sed -i 's/\r$//' README.md %install +rm -rf %{buildroot} mkdir -pm 0755 %{buildroot}%{phpdir} cp -rp src/* %{buildroot}%{phpdir}/ @@ -98,16 +100,18 @@ spl_autoload_register(function ($class) { }); AUTOLOAD -# Create PHPUnit config with colors turned off -sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml - %{__phpunit} --include-path %{buildroot}%{phpdir} -d date.timezone="UTC" %else : Tests skipped %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md composer.json @@ -116,6 +120,9 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %changelog +* Thu Nov 6 2014 Remi Collet <remi@fedoraproject.org> - 1.2.4-1 +- backport for remi repository + * Mon Nov 03 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2.4-1 - Updated to 1.2.4 |