summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-20 09:42:53 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-20 09:42:53 +0200
commitff30adf6692657cc2ec4decebc9a0774a32a189f (patch)
tree049f6ab6557806fdbdc724886e38d2b39d2bfa7d
parent4a9351275d2de33eeb0ed375a827144b61f6042a (diff)
php-guzzlehttp-psr7: add backport stuff
-rw-r--r--Makefile4
-rw-r--r--php-guzzlehttp-psr7.spec12
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-psr7.spec b/php-guzzlehttp-psr7.spec
index e7d7d02..3fc83ff 100644
--- a/php-guzzlehttp-psr7.spec
+++ b/php-guzzlehttp-psr7.spec
@@ -1,3 +1,4 @@
+# remirepo spec file for php-guzzlehttp-psr7, from
#
# Fedora spec file for php-guzzlehttp-psr7
#
@@ -38,6 +39,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}
@@ -113,6 +115,8 @@ AUTOLOAD
%install
+rm -rf %{buildroot}
+
mkdir -p %{buildroot}%{phpdir}/GuzzleHttp/Psr7
cp -rp src/* %{buildroot}%{phpdir}/GuzzleHttp/Psr7/
@@ -128,7 +132,12 @@ sed "s#require.*autoload.*#require '%{buildroot}%{phpdir}/GuzzleHttp/Psr7/autolo
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc *.md
@@ -138,6 +147,9 @@ sed "s#require.*autoload.*#require '%{buildroot}%{phpdir}/GuzzleHttp/Psr7/autolo
%changelog
+* Mon Jul 20 2015 Remi Collet <remi@remirepo.net> - 1.1.0-3
+- add EL-5 stuff, backport for #remirepo
+
* Sun Jul 19 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.1.0-3
- Use full paths in autoloader