summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-01 14:03:28 +0200
committerRemi Collet <remi@remirepo.net>2017-08-01 14:03:28 +0200
commit5131547d3ef412c6f4886548191ad285f0bbad7b (patch)
tree4cce1b92bc5de91149fbd08973c9df78acac1e9c
New package
-rw-r--r--.gitignore7
-rw-r--r--Makefile4
-rw-r--r--REFLECTION1773
-rw-r--r--php-pecl-psr.spec256
4 files changed, 2040 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1ab5c4f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/REFLECTION b/REFLECTION
new file mode 100644
index 0000000..d17174d
--- /dev/null
+++ b/REFLECTION
@@ -0,0 +1,1773 @@
+Extension [ <persistent> extension #118 psr version 0.3.0RC3 ] {
+
+ - Dependencies {
+ Dependency [ spl (Required) ]
+ }
+
+ - Classes [29] {
+ Interface [ <internal:psr> interface Psr\Cache\CacheException ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Cache\CacheItemInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:psr> abstract public method getKey ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method get ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method isHit ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method set ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method expiresAt ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $expiration ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method expiresAfter ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $time ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Cache\CacheItemPoolInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr> abstract public method getItem ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getItems ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> array $keys ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method hasItem ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method clear ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method deleteItem ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method deleteItems ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $keys ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method save ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Cache\CacheItemInterface $logger ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method saveDeferred ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Cache\CacheItemInterface $logger ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method commit ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Cache\InvalidArgumentException extends Psr\Cache\CacheException ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Container\ContainerExceptionInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Container\ContainerInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:psr> abstract public method get ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $id ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method has ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $id ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Container\NotFoundExceptionInterface extends Psr\Container\ContainerExceptionInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\MessageInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [11] {
+ Method [ <internal:psr> abstract public method getProtocolVersion ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withProtocolVersion ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $version ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getHeaders ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method hasHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getHeaderLine ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withAddedHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withoutHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getBody ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withBody ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\RequestInterface extends Psr\Http\Message\MessageInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [17] {
+ Method [ <internal:psr> abstract public method getRequestTarget ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withRequestTarget ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $requestTarget ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getMethod ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withMethod ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $method ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getUri ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withUri ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> Psr\Http\Message\UriInterface $logger ]
+ Parameter #1 [ <optional> $preserveHost ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getProtocolVersion ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withProtocolVersion ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $version ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeaders ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method hasHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeaderLine ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withAddedHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withoutHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getBody ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withBody ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\ResponseInterface extends Psr\Http\Message\MessageInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [14] {
+ Method [ <internal:psr> abstract public method getStatusCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withStatus ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $code ]
+ Parameter #1 [ <optional> $reasonPhrase ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getReasonPhrase ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getProtocolVersion ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withProtocolVersion ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $version ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeaders ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method hasHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getHeaderLine ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withAddedHeader ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withoutHeader ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method getBody ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Http\Message\MessageInterface> abstract public method withBody ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Http\Message\StreamInterface $body ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\ServerRequestInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [13] {
+ Method [ <internal:psr> abstract public method getServerParams ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getCookieParams ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withCookieParams ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $cookies ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getQueryParams ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withQueryParams ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $query ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getUploadedFiles ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withUploadedFiles ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $uploadedFiles ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getParsedBody ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withParsedBody ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $parsedBody ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getAttributes ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getAttribute ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <optional> $default ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withAttribute ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withoutAttribute ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $name ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\StreamInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [15] {
+ Method [ <internal:psr> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method close ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method detach ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getSize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method tell ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method eof ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method isSeekable ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method seek ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $offset ]
+ Parameter #1 [ <optional> $whence ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method rewind ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method isWritable ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method write ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $string ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method isReadable ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method read ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $length ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getContents ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getMetadata ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $key ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\UploadedFileInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:psr> abstract public method getStream ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method moveTo ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $targetPath ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getSize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getError ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getClientFilename ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getClientMediaType ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Http\Message\UriInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [16] {
+ Method [ <internal:psr> abstract public method getScheme ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getAuthority ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getUserInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getHost ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getPort ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getPath ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getQuery ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getFragment ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withScheme ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $scheme ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withUserInfo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $user ]
+ Parameter #1 [ <optional> $password ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withHost ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $host ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withPort ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $port ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withPath ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $path ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withQuery ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $query ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withFragment ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $fragment ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Link\LinkInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [4] {
+ Method [ <internal:psr> abstract public method getHref ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method isTemplated ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getRels ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getAttributes ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Link\LinkProviderInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:psr> abstract public method getLinks ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getLinksByRel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $rel ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Link\EvolvableLinkInterface extends Psr\Link\LinkInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr> abstract public method withHref ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $href ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withRel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $rel ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withoutRel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $rel ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withAttribute ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $attribute ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withoutAttribute ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $attribute ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkInterface> abstract public method getHref ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkInterface> abstract public method isTemplated ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkInterface> abstract public method getRels ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkInterface> abstract public method getAttributes ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Link\EvolvableLinkProviderInterface extends Psr\Link\LinkProviderInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [4] {
+ Method [ <internal:psr> abstract public method withLink ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Link\LinkInterface $link ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method withoutLink ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Link\LinkInterface $link ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkProviderInterface> abstract public method getLinks ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Link\LinkProviderInterface> abstract public method getLinksByRel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $rel ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:psr> class Psr\Log\InvalidArgumentException extends InvalidArgumentException implements Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [4] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ }
+
+ - Methods [10] {
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:psr> class Psr\Log\LogLevel ] {
+
+ - Constants [8] {
+ Constant [ string EMERGENCY ] { emergency }
+ Constant [ string ALERT ] { alert }
+ Constant [ string CRITICAL ] { critical }
+ Constant [ string ERROR ] { error }
+ Constant [ string WARNING ] { warning }
+ Constant [ string NOTICE ] { notice }
+ Constant [ string INFO ] { info }
+ Constant [ string DEBUG ] { debug }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Log\LoggerInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr> abstract public method emergency ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method alert ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method critical ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method error ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method warning ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method notice ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method info ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method debug ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method log ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $level ]
+ Parameter #1 [ <required> $message ]
+ Parameter #2 [ <optional> array $context ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\Log\LoggerAwareInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:psr> abstract public method setLogger ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Log\LoggerInterface $logger ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:psr> abstract class Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method emergency ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method alert ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method critical ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method error ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method warning ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method notice ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method info ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, prototype Psr\Log\LoggerInterface> public method debug ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\LoggerInterface> abstract public method log ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $level ]
+ Parameter #1 [ <required> $message ]
+ Parameter #2 [ <optional> array $context ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:psr> class Psr\Log\NullLogger extends Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr, overwrites Psr\Log\LoggerInterface, prototype Psr\Log\LoggerInterface> public method log ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $level ]
+ Parameter #1 [ <required> $message ]
+ Parameter #2 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method emergency ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method alert ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method critical ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method error ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method warning ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method notice ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method info ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr, inherits Psr\Log\AbstractLogger, prototype Psr\Log\LoggerInterface> public method debug ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+ }
+ }
+
+ Trait [ <internal:psr> trait Psr\Log\LoggerTrait ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:psr> public method emergency ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method alert ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method critical ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method error ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method warning ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method notice ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method info ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> public method debug ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $message ]
+ Parameter #1 [ <optional> array $context ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method log ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $level ]
+ Parameter #1 [ <required> $message ]
+ Parameter #2 [ <optional> array $context ]
+ }
+ }
+ }
+ }
+
+ Trait [ <internal:psr> trait Psr\Log\LoggerAwareTrait ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [1] {
+ Property [ <default> protected $logger ]
+ }
+
+ - Methods [1] {
+ Method [ <internal:psr> public method setLogger ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Psr\Log\LoggerInterface $logger ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\SimpleCache\CacheException ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\SimpleCache\CacheInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:psr> abstract public method get ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $default ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method set ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <optional> $ttl ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method delete ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method clear ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:psr> abstract public method getMultiple ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $keys ]
+ Parameter #1 [ <optional> $default ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method setMultiple ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $values ]
+ Parameter #1 [ <optional> $ttl ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method deleteMultiple ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $keys ]
+ }
+ }
+
+ Method [ <internal:psr> abstract public method has ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:psr> interface Psr\SimpleCache\InvalidArgumentException extends Psr\SimpleCache\CacheException ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+ }
+}
+
diff --git a/php-pecl-psr.spec b/php-pecl-psr.spec
new file mode 100644
index 0000000..e89a6e7
--- /dev/null
+++ b/php-pecl-psr.spec
@@ -0,0 +1,256 @@
+# remirepo spec file for php-pecl-psr
+#
+# Copyright (c) 2017 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+%if 0%{?scl:1}
+%global sub_prefix %{scl_prefix}
+%scl_package php-pecl-psr
+%endif
+
+%global pecl_name psr
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global with_tests 0%{!?_without_tests:1}
+%if "%{php_version}" < "5.6"
+%global ini_name %{pecl_name}.ini
+%else
+%global ini_name 40-%{pecl_name}.ini
+%endif
+%global upstream_version 0.3.0
+%global upstream_prever RC3
+
+Summary: PSR interfaces
+Name: %{?sub_prefix}php-pecl-psr
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+License: PHP
+Group: Development/Languages
+URL: http://pecl.php.net/package/psr
+
+BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-pear
+
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
+%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
+
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
+Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+%endif
+
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+# Other third party repo stuff
+%if "%{php_version}" > "5.6"
+Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "7.0"
+Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "7.1"
+Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
+%endif
+%endif
+
+%if 0%{?fedora} < 20 && 0%{?rhel} < 7
+# Filter private shared object
+%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
+%{?filter_setup}
+%endif
+
+
+%description
+This extension provides the accepted PSR interfaces,
+so they can be used in an extension.
+
+See http://www.php-fig.org/psr/
+
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
+
+
+%package devel
+Summary: %{name} developer files (header)
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{?scl_prefix}php-devel%{?_isa}
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel%{?_isa} = %{version}-%{release}
+%endif
+
+%description devel
+These are the files needed to compile programs using %{name}.
+
+
+%prep
+%setup -q -c
+# rename source folder
+mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
+
+%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml}
+
+cd NTS
+
+# Sanity check, really often broken
+extver=$(sed -n '/#define PHP_PSR_VERSION/{s/.* "//;s/".*$//;p}' php_psr.h)
+if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.
+ exit 1
+fi
+cd ..
+
+%if %{with_zts}
+# duplicate for ZTS build
+cp -pr NTS ZTS
+%endif
+
+# Drop in the bit of configuration
+cat > %{ini_name} << 'EOF'
+; Enable %{pecl_name} extension module
+extension = %{pecl_name}.so
+EOF
+
+
+%build
+%{?dtsenable}
+
+cd NTS
+%{_bindir}/phpize
+%configure \
+ --enable-psr \
+ --with-php-config=%{_bindir}/php-config
+make %{?_smp_mflags}
+
+%if %{with_zts}
+cd ../ZTS
+%{_bindir}/zts-phpize
+%configure \
+ --enable-psr \
+ --with-php-config=%{_bindir}/zts-php-config
+make %{?_smp_mflags}
+%endif
+
+
+%install
+%{?dtsenable}
+
+# Install the NTS stuff
+make -C NTS install INSTALL_ROOT=%{buildroot}
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
+
+%if %{with_zts}
+# Install the ZTS stuff
+make -C ZTS install INSTALL_ROOT=%{buildroot}
+install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
+%endif
+
+# Install the package XML file
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+
+# Test & Documentation
+cd NTS
+for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
+do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
+done
+for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
+do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
+done
+
+
+%check
+# simple module load test
+%{__php} --no-php-ini \
+ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+
+%if %{with_zts}
+%{__ztsphp} --no-php-ini \
+ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+%endif
+
+%if %{with_tests}
+cd NTS
+: Upstream test suite for NTS extension
+TEST_PHP_EXECUTABLE=%{__php} \
+TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+%{__php} -n run-tests.php --show-diff
+
+%if %{with_zts}
+cd ../ZTS
+: Upstream test suite for ZTS extension
+TEST_PHP_EXECUTABLE=%{__ztsphp} \
+TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+%{__ztsphp} -n run-tests.php --show-diff
+%endif
+%else
+: Upstream test suite disabled
+%endif
+
+
+%if 0%{?fedora} < 24
+# when pear installed alone, after us
+%triggerin -- %{?scl_prefix}php-pear
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+# posttrans as pear can be installed after us
+%posttrans
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+%postun
+if [ $1 -eq 0 -a -x %{__pecl} ] ; then
+ %{pecl_uninstall} %{pecl_name} >/dev/null || :
+fi
+%endif
+
+
+%files
+%{?_licensedir:%license NTS/LICENSE.md}
+%doc %{pecl_docdir}/%{pecl_name}
+%{pecl_xmldir}/%{name}.xml
+
+%{php_extdir}/%{pecl_name}.so
+%config(noreplace) %{php_inidir}/%{ini_name}
+
+%if %{with_zts}
+%{php_ztsextdir}/%{pecl_name}.so
+%config(noreplace) %{php_ztsinidir}/%{ini_name}
+%endif
+
+
+%files devel
+%doc %{pecl_testdir}/%{pecl_name}
+%{php_incldir}/ext/%{pecl_name}
+
+%if %{with_zts}
+%{php_ztsincldir}/ext/%{pecl_name}
+%endif
+
+
+%changelog
+* Tue Aug 1 2017 Remi Collet <remi@remirepo.net> - 0.3.0~RC3-1
+- initial package
+