From 68adb18b935e8cea89260e16d736830e7c100b37 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 11 Jan 2014 15:44:00 +0100 Subject: php-doctrine-datafixtures: backport --- Makefile | 4 ++++ php-doctrine-datafixtures.spec | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/php-doctrine-datafixtures.spec b/php-doctrine-datafixtures.spec index 0241f5a..1009d33 100644 --- a/php-doctrine-datafixtures.spec +++ b/php-doctrine-datafixtures.spec @@ -19,6 +19,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-%(%{__id_u} -n) BuildArch: noarch # For tests BuildRequires: php(language) >= %{php_min_ver} @@ -57,6 +58,8 @@ of data fixtures for the Doctrine ORM or ODM. %install +rm -rf %{buildroot} + mkdir -p %{buildroot}/%{_datadir}/php cp -rp lib/* %{buildroot}/%{_datadir}/php/ @@ -85,12 +88,20 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %{_bindir}/phpunit --include-path ./lib:./tests -d date.timezone="UTC" +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %doc LICENSE *.md UPGRADE composer.json %{_datadir}/php/Doctrine/Common/DataFixtures %changelog +* Sat Jan 11 2014 Remi Collet 1.0.0-2 +- backport for remi repo + * Sun Jan 05 2014 Shawn Iwinski 1.0.0-2 - Use non-PEAR Doctrine pkgs - Conditional %%{?dist} -- cgit