diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-07-20 08:43:37 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-07-20 08:43:37 +0200 |
commit | 053c8e4f5ee516cb122f5f8482472849f7293ac4 (patch) | |
tree | 74b226f62cb0050adb0169b4a3ef03551c541144 | |
parent | 7a5dcc8085ac820c2a0ce6a0615e98204f4a6462 (diff) |
php-guzzlehttp-promises: add backport stuff
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-guzzlehttp-promises.spec | 12 |
2 files changed, 16 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-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 <remi@remirepo.net> - 1.0.1-3 +- add EL-5 stuff, backport for #remirepo + * Sun Jul 19 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0.1-3 - Use full paths in autoloader |