From 64988817163926903c2366b33df4355dc592525a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 6 Nov 2014 07:28:03 +0100 Subject: php-ocramius-code-generator-utils: backport stuff --- Makefile | 4 ++++ php-ocramius-code-generator-utils.spec | 13 ++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/php-ocramius-code-generator-utils.spec b/php-ocramius-code-generator-utils.spec index 307fede..83752a3 100644 --- a/php-ocramius-code-generator-utils.spec +++ b/php-ocramius-code-generator-utils.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} # composer.json @@ -78,6 +79,7 @@ when combined with Reflection. %install +rm -rf %{buildroot} mkdir -pm 0755 %{buildroot}%{phpdir} cp -rp src/* %{buildroot}%{phpdir}/ @@ -94,9 +96,6 @@ 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} \ --bootstrap autoload.php \ --include-path %{buildroot}%{phpdir}:./tests \ @@ -106,7 +105,12 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md composer.json @@ -114,6 +118,9 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %changelog +* Thu Nov 6 2014 Remi Collet - 0.3.0-2 +- backport for remi repository + * Wed Nov 05 2014 Shawn Iwinski - 0.3.0-2 - Silenced include in autoloader - Removed debug from %%check -- cgit