summaryrefslogtreecommitdiffstats
path: root/php-psr-http-message.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-06 07:19:39 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-06 07:19:39 +0100
commit7755d8a9457753e3c7ab240d06be96beb7a48a35 (patch)
tree530a76ec6694c87d39c90118a13076efa7ce2d6c /php-psr-http-message.spec
parentfda21d63981786abe71f87386f0755b722f04f80 (diff)
php-psr-http-message: backport stuff
Diffstat (limited to 'php-psr-http-message.spec')
-rw-r--r--php-psr-http-message.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/php-psr-http-message.spec b/php-psr-http-message.spec
index 5bc5460..2cdbc95 100644
--- a/php-psr-http-message.spec
+++ b/php-psr-http-message.spec
@@ -30,6 +30,7 @@ URL: https://github.com/%{github_owner}/%{github_name}
Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# phpcompatinfo (computed from version 0.4.0)
Requires: php(language) >= 5.3.0
@@ -59,6 +60,7 @@ chmod a-x README.md composer.json LICENSE
%install
+rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{phpdir}/Psr/Http/Message
cp -rp src/* %{buildroot}%{phpdir}/Psr/Http/Message/
@@ -67,7 +69,12 @@ cp -rp src/* %{buildroot}%{phpdir}/Psr/Http/Message/
# No tests provided by upstream
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md composer.json
@@ -77,5 +84,8 @@ cp -rp src/* %{buildroot}%{phpdir}/Psr/Http/Message/
%changelog
+* Thu Nov 6 2014 Remi Collet <remi@fedoraproject.org> - 0.4.0-1
+- backport for remi repository
+
* Thu Oct 30 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 0.4.0-1
- Initial package