summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--php-doctrine-orm.spec11
2 files changed, 15 insertions, 0 deletions
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-orm.spec b/php-doctrine-orm.spec
index ca79f1d..5ebc8ca 100644
--- a/php-doctrine-orm.spec
+++ b/php-doctrine-orm.spec
@@ -30,6 +30,7 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_co
# 2) Auto-load using Doctrine\Common\ClassLoader
Patch0: %{name}-bin.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php(language) >= %{php_min_ver}
@@ -90,6 +91,8 @@ chmod a-x lib/Doctrine/ORM/Tools/Pagination/Paginator.php
%install
+rm -rf %{buildroot}
+
mkdir -p %{buildroot}/%{_datadir}/php
cp -rp lib/Doctrine %{buildroot}/%{_datadir}/php/
@@ -101,13 +104,21 @@ install -pm 0755 bin/doctrine.php %{buildroot}/%{_bindir}/doctrine
# No upstream tests provided in source
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%doc LICENSE *.md *.markdown composer.json
%{_datadir}/php/Doctrine/ORM
%{_bindir}/doctrine
%changelog
+* Sat Jan 11 2014 Remi Collet <rpms@famillecollet.com> 2.4.1-2
+- backport for remi repo
+
* Sat Jan 04 2014 Shawn Iwinski <shawn.iwinski@gmail.com> 2.4.1-2
- Conditional %%{?dist}
- Bin script patch instead of inline update and use Doctrine Common classloader