From 053c8e4f5ee516cb122f5f8482472849f7293ac4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 20 Jul 2015 08:43:37 +0200 Subject: php-guzzlehttp-promises: add backport stuff --- Makefile | 4 ++++ php-guzzlehttp-promises.spec | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Makefile 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-guzzlehttp-promises.spec b/php-guzzlehttp-promises.spec index ecdeb44..b592dcb 100644 --- a/php-guzzlehttp-promises.spec +++ b/php-guzzlehttp-promises.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-guzzlehttp-promises, from # # Fedora spec file for php-guzzlehttp-promises # @@ -35,6 +36,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 # Tests %if %{with_tests} @@ -104,6 +106,8 @@ AUTOLOAD %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{phpdir}/GuzzleHttp/Promise cp -rp src/* %{buildroot}%{phpdir}/GuzzleHttp/Promise/ @@ -119,7 +123,12 @@ sed "s#require.*autoload.*#require '%{buildroot}%{phpdir}/GuzzleHttp/Promise/aut %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md @@ -129,6 +138,9 @@ sed "s#require.*autoload.*#require '%{buildroot}%{phpdir}/GuzzleHttp/Promise/aut %changelog +* Mon Jul 20 2015 Remi Collet - 1.0.1-3 +- add EL-5 stuff, backport for #remirepo + * Sun Jul 19 2015 Shawn Iwinski - 1.0.1-3 - Use full paths in autoloader -- cgit