summaryrefslogtreecommitdiffstats
path: root/php-guzzlehttp-psr7.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-guzzlehttp-psr7.spec')
-rw-r--r--php-guzzlehttp-psr7.spec12
1 files changed, 12 insertions, 0 deletions
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