[php-psr-http-message] Initial import (#1159085)

Shawn Iwinski siwinski at fedoraproject.org
Wed Nov 5 21:28:23 UTC 2014


commit 2089be4560db2d7118780cdc0bd1685a13afb07b
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Wed Nov 5 16:18:14 2014 -0500

    Initial import (#1159085)

 .gitignore                |    1 +
 php-psr-http-message.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6bf31ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-psr-http-message-0.4.0-05f67fe3f44fa213b543160452cfc202304a7e06.tar.gz
diff --git a/php-psr-http-message.spec b/php-psr-http-message.spec
new file mode 100644
index 0000000..5bc5460
--- /dev/null
+++ b/php-psr-http-message.spec
@@ -0,0 +1,81 @@
+#
+# RPM spec file for php-psr-http-message
+#
+# Copyright (c) 2014 Shawn Iwinski <shawn.iwinski at gmail.com>
+#
+# License: MIT
+# http://opensource.org/licenses/MIT
+#
+# Please preserve changelog entries
+#
+
+%global github_owner     php-fig
+%global github_name      http-message
+%global github_version   0.4.0
+%global github_commit    05f67fe3f44fa213b543160452cfc202304a7e06
+
+%global composer_vendor  psr
+%global composer_project http-message
+
+%{!?phpdir:  %global phpdir  %{_datadir}/php}
+
+Name:      php-%{composer_vendor}-%{composer_project}
+Version:   %{github_version}
+Release:   1%{?github_release}%{?dist}
+Summary:   Common interface for HTTP messages (PSR-7)
+
+Group:     Development/Libraries
+License:   MIT
+URL:       https://github.com/%{github_owner}/%{github_name}
+Source0:   %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+
+BuildArch: noarch
+
+# phpcompatinfo (computed from version 0.4.0)
+Requires:  php(language) >= 5.3.0
+
+# Composer
+Provides:  php-composer(%{composer_vendor}/%{composer_project}) = %{version}
+
+%description
+This package holds all interfaces/classes/traits related to PSR-7.
+
+Note that this is not a HTTP message implementation of its own. It is merely an
+interface that describes a HTTP message. See the specification for more details.
+
+
+%prep
+%setup -qn %{github_name}-%{github_commit}
+
+# W: spurious-executable-perm /usr/share/doc/php-psr-http-message/README.md
+# W: spurious-executable-perm /usr/share/doc/php-psr-http-message/composer.json
+# E: script-without-shebang /usr/share/licenses/php-psr-http-message/LICENSE
+# https://github.com/php-fig/http-message/pull/10
+chmod a-x README.md composer.json LICENSE
+
+
+%build
+# Empty build section, nothing required
+
+
+%install
+mkdir -pm 0755 %{buildroot}%{phpdir}/Psr/Http/Message
+cp -rp src/* %{buildroot}%{phpdir}/Psr/Http/Message/
+
+
+%check
+# No tests provided by upstream
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc README.md composer.json
+%dir %{phpdir}/Psr
+%dir %{phpdir}/Psr/Http
+     %{phpdir}/Psr/Http/Message
+
+
+%changelog
+* Thu Oct 30 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 0.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..ce3a8eb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3a6aae3e8a265369f165a29e3e716a1b  php-psr-http-message-0.4.0-05f67fe3f44fa213b543160452cfc202304a7e06.tar.gz


More information about the scm-commits mailing list