From a5c2e93346687667ed075349c7a6ba0c2bd45aa2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 6 Nov 2014 07:23:56 +0100 Subject: php-egulias-email-validator: backport stuff --- php-egulias-email-validator.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'php-egulias-email-validator.spec') 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 - 1.2.4-1 +- backport for remi repository + * Mon Nov 03 2014 Shawn Iwinski - 1.2.4-1 - Updated to 1.2.4 -- cgit