summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-14 13:32:07 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-14 13:32:07 +0100
commitf27690014c4c2c3c9896261f512d8068d6123c31 (patch)
tree13d6cf59b4bd1c94ef2ed387bf325e8a88a6d92f
parentae5cf7cec69c9b1464ff912efaf5759ac254fe21 (diff)
php-twig-extensions: backport stuff
-rw-r--r--Makefile4
-rw-r--r--php-twig-extensions.spec10
2 files changed, 14 insertions, 0 deletions
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-twig-extensions.spec b/php-twig-extensions.spec
index 89cf96b..478c4f8 100644
--- a/php-twig-extensions.spec
+++ b/php-twig-extensions.spec
@@ -40,6 +40,7 @@ License: MIT
URL: http://twig.sensiolabs.org/doc/extensions/index.html
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
BuildRequires: php-phpunit-PHPUnit
@@ -84,6 +85,7 @@ Common additional features for Twig that do not directly belong in core Twig.
%install
+rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{phpdir}
cp -rp lib/* %{buildroot}%{phpdir}/
@@ -106,7 +108,12 @@ AUTOLOAD
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.rst composer.json doc
@@ -114,6 +121,9 @@ AUTOLOAD
%changelog
+* Fri Nov 14 2014 Remi Collet <remi@fedoraproject.org> - 1.2.0-2
+- backport for remi repo, add EL-5 stuff
+
* Thu Nov 13 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2.0-2
- Conditional %%{?dist}
- Removed color turn off and default timezone for phpunit