summaryrefslogtreecommitdiffstats
path: root/php-doctrine-datafixtures.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-11 15:44:00 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-11 15:44:00 +0100
commit68adb18b935e8cea89260e16d736830e7c100b37 (patch)
tree42f6621c64c6d904ba7a09734128d2c9ad73e425 /php-doctrine-datafixtures.spec
parentfcd15b77b10a4a20f58a780eced1c7487cee47f2 (diff)
php-doctrine-datafixtures: backport
Diffstat (limited to 'php-doctrine-datafixtures.spec')
-rw-r--r--php-doctrine-datafixtures.spec11
1 files changed, 11 insertions, 0 deletions
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 <rpms@famillecollet.com> 1.0.0-2
+- backport for remi repo
+
* Sun Jan 05 2014 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0.0-2
- Use non-PEAR Doctrine pkgs
- Conditional %%{?dist}