summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-11 15:34:28 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-11 15:34:28 +0100
commitd16ef43fc9a8e217ce15a3f58623e8899d70733d (patch)
treebcbcbed91b9677ae88e46830b26b21ebdf529714
parent04573e54ee55bd11f4e814919b08ce0d09acf3e8 (diff)
php-doctrine-lexer: backport
-rw-r--r--Makefile4
-rw-r--r--php-doctrine-lexer.spec10
2 files changed, 14 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-lexer.spec b/php-doctrine-lexer.spec
index 6cf88e5..59e9eed 100644
--- a/php-doctrine-lexer.spec
+++ b/php-doctrine-lexer.spec
@@ -18,6 +18,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
Requires: php(language) >= %{php_min_ver}
@@ -41,6 +42,7 @@ This lexer is used in Doctrine Annotations and in Doctrine ORM (DQL).
%install
+rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/php
cp -rp lib/* %{buildroot}/%{_datadir}/php/
@@ -49,7 +51,12 @@ cp -rp lib/* %{buildroot}/%{_datadir}/php/
# No upstream tests
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%doc LICENSE *.md composer.json
%dir %{_datadir}/php/Doctrine
%dir %{_datadir}/php/Doctrine/Common
@@ -57,6 +64,9 @@ cp -rp lib/* %{buildroot}/%{_datadir}/php/
%changelog
+* Sat Jan 11 2014 Remi Collet <rpms@famillecollet.com> 1.0-2.20131220gitf12a5f7
+- backport for remi repo
+
* Mon Jan 06 2014 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0-2.20131220gitf12a5f7
- Conditional %%{?dist}