summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-12-12 08:32:51 +0100
committerRemi Collet <remi@remirepo.net>2017-12-12 08:32:51 +0100
commit7fd5cc5031a98ed1f7dff4dc50607514a725edbb (patch)
tree90acbc9195d9a66c271d314dad622c273650ae83
parent40958b853da0ad05226a2c605b714505cf0888db (diff)
Update to 2.7.0
raise dependency on PHP 5.6 raise dependency on zend-servicemanager 2.7.8 raise dependency on zend-stdlib 2.7.7 raise dependency on zend-validator 2.10.1 use phpunit6 on F26+
-rw-r--r--36.patch383
-rw-r--r--composer.json58
-rw-r--r--php-zendframework-zend-barcode.spec68
3 files changed, 80 insertions, 429 deletions
diff --git a/36.patch b/36.patch
deleted file mode 100644
index 7500f91..0000000
--- a/36.patch
+++ /dev/null
@@ -1,383 +0,0 @@
-From 70c29818f054a807e4f0cb16c041fe7cace32741 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 20 Oct 2017 13:00:34 +0200
-Subject: [PATCH] Fix for php72 (object is a reserved keyword)
-
----
- src/Renderer/AbstractRenderer.php | 4 ++--
- test/FactoryTest.php | 8 ++++----
- test/Renderer/ImageTest.php | 32 ++++++++++++++++----------------
- test/Renderer/PdfTest.php | 14 +++++++-------
- test/Renderer/TestCommon.php | 20 ++++++++++----------
- 5 files changed, 39 insertions(+), 39 deletions(-)
-
-diff --git a/src/Renderer/AbstractRenderer.php b/src/Renderer/AbstractRenderer.php
-index ae02588..2263432 100644
---- a/src/Renderer/AbstractRenderer.php
-+++ b/src/Renderer/AbstractRenderer.php
-@@ -12,7 +12,7 @@
- use Traversable;
- use Zend\Barcode\Barcode;
- use Zend\Barcode\Exception as BarcodeException;
--use Zend\Barcode\Object;
-+use Zend\Barcode\Object\ObjectInterface;
- use Zend\Stdlib\ArrayUtils;
-
- /**
-@@ -327,7 +327,7 @@ public function getAutomaticRenderError()
- * @param Object\ObjectInterface $barcode
- * @return AbstractRenderer
- */
-- public function setBarcode(Object\ObjectInterface $barcode)
-+ public function setBarcode(ObjectInterface $barcode)
- {
- $this->barcode = $barcode;
- return $this;
-diff --git a/test/FactoryTest.php b/test/FactoryTest.php
-index 15e1ed6..742b7a0 100644
---- a/test/FactoryTest.php
-+++ b/test/FactoryTest.php
-@@ -13,7 +13,7 @@
- use Zend\Barcode;
- use Zend\Barcode\Exception\InvalidArgumentException;
- use Zend\Barcode\Renderer;
--use Zend\Barcode\Object;
-+use Zend\Barcode\Object\Code25;
- use Zend\Config\Config;
- use Zend\ServiceManager\Exception\InvalidServiceException;
- use ZendPdf as Pdf;
-@@ -159,14 +159,14 @@ public function testFactoryWithoutBarcodeWithAutomaticExceptionRenderWithZendCon
- public function testFactoryWithExistingBarcodeObject()
- {
- $this->checkGDRequirement();
-- $barcode = new Object\Code25();
-+ $barcode = new Code25();
- $renderer = Barcode\Barcode::factory($barcode);
- $this->assertSame($barcode, $renderer->getBarcode());
- }
-
- public function testBarcodeObjectFactoryWithExistingBarcodeObject()
- {
-- $barcode = new Object\Code25();
-+ $barcode = new Code25();
- $generatedBarcode = Barcode\Barcode::makeBarcode($barcode);
- $this->assertSame($barcode, $generatedBarcode);
- }
-@@ -411,7 +411,7 @@ public function testProxyBarcodeRendererDrawAsSvgAutomaticallyRenderSvgIfExcepti
- public function testProxyBarcodeObjectFont()
- {
- Barcode\Barcode::setBarcodeFont('my_font.ttf');
-- $barcode = new Object\Code25();
-+ $barcode = new Code25();
- $this->assertSame('my_font.ttf', $barcode->getFont());
- Barcode\Barcode::setBarcodeFont('');
- }
-diff --git a/test/Renderer/ImageTest.php b/test/Renderer/ImageTest.php
-index db32b33..e5c833c 100644
---- a/test/Renderer/ImageTest.php
-+++ b/test/Renderer/ImageTest.php
-@@ -10,7 +10,7 @@
- namespace ZendTest\Barcode\Renderer;
-
- use Zend\Barcode;
--use Zend\Barcode\Object;
-+use Zend\Barcode\Object\Code39;
- use Zend\Barcode\Renderer as RendererNS;
-
- /**
-@@ -99,7 +99,7 @@ public function testNonAllowedImageType()
- public function testDrawReturnResource()
- {
- $this->checkTTFRequirement();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
- $resource = $this->renderer->draw();
- $this->assertInternalType('resource', $resource, 'Image must be a resource');
-@@ -109,7 +109,7 @@ public function testDrawReturnResource()
- public function testDrawWithExistantResourceReturnResource()
- {
- $this->checkTTFRequirement();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
- $imageResource = imagecreatetruecolor(500, 500);
- $this->renderer->setResource($imageResource);
-@@ -121,7 +121,7 @@ public function testDrawWithExistantResourceReturnResource()
-
- public function testGoodUserHeight()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $this->renderer->setBarcode($barcode);
- $this->renderer->setHeight(62);
-@@ -131,7 +131,7 @@ public function testGoodUserHeight()
- public function testBadUserHeightLessThanBarcodeHeight()
- {
- $this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $this->renderer->setBarcode($barcode);
- $this->renderer->setHeight(61);
-@@ -140,7 +140,7 @@ public function testBadUserHeightLessThanBarcodeHeight()
-
- public function testGoodUserWidth()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $this->renderer->setBarcode($barcode);
- $this->renderer->setWidth(211);
-@@ -150,7 +150,7 @@ public function testGoodUserWidth()
- public function testBadUserWidthLessThanBarcodeWidth()
- {
- $this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $this->renderer->setBarcode($barcode);
- $this->renderer->setWidth(210);
-@@ -159,7 +159,7 @@ public function testBadUserWidthLessThanBarcodeWidth()
-
- public function testGoodHeightOfUserResource()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $imageResource = imagecreatetruecolor(500, 62);
- $this->renderer->setResource($imageResource);
-@@ -170,7 +170,7 @@ public function testGoodHeightOfUserResource()
- public function testBadHeightOfUserResource()
- {
- $this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $this->renderer->setBarcode($barcode);
- $imageResource = imagecreatetruecolor(500, 61);
-@@ -180,7 +180,7 @@ public function testBadHeightOfUserResource()
-
- public function testGoodWidthOfUserResource()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $imageResource = imagecreatetruecolor(211, 500);
- $this->renderer->setResource($imageResource);
-@@ -191,7 +191,7 @@ public function testGoodWidthOfUserResource()
- public function testBadWidthOfUserResource()
- {
- $this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $this->renderer->setBarcode($barcode);
- $imageResource = imagecreatetruecolor(210, 500);
-@@ -203,7 +203,7 @@ public function testNoFontWithOrientation()
- {
- $this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
- Barcode\Barcode::setBarcodeFont(null);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $barcode->setOrientation(1);
- $this->renderer->setBarcode($barcode);
- $this->renderer->draw();
-@@ -281,7 +281,7 @@ public function testTopOffsetOverrideVerticalPosition()
- */
- public function testImageGifWithNoTransparency()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
-
- $this->renderer->setTransparentBackground(false);
-@@ -299,7 +299,7 @@ public function testImageGifWithNoTransparency()
- */
- public function testImagePngWithNoTransparency()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
-
- $this->renderer->setTransparentBackground(false);
-@@ -317,7 +317,7 @@ public function testImagePngWithNoTransparency()
- */
- public function testImageGifWithTransparency()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
-
- $this->renderer->setTransparentBackground(true);
-@@ -335,7 +335,7 @@ public function testImageGifWithTransparency()
- */
- public function testImagePngWithTransparency()
- {
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
-
- $this->renderer->setTransparentBackground(true);
-diff --git a/test/Renderer/PdfTest.php b/test/Renderer/PdfTest.php
-index 36ac49e..5b4c9fb 100644
---- a/test/Renderer/PdfTest.php
-+++ b/test/Renderer/PdfTest.php
-@@ -11,7 +11,7 @@
-
- use ZendPdf as Pdf;
- use Zend\Barcode;
--use Zend\Barcode\Object;
-+use Zend\Barcode\Object\Code39;
-
- /**
- * @group Zend_Barcode
-@@ -45,7 +45,7 @@ public function testGoodPdfResource()
- public function testDrawReturnResource()
- {
- Barcode\Barcode::setBarcodeFont(__DIR__ . '/../Object/_fonts/Vera.ttf');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
- $resource = $this->renderer->draw();
- $this->assertInstanceOf('ZendPdf\PdfDocument', $resource);
-@@ -55,7 +55,7 @@ public function testDrawReturnResource()
- public function testDrawWithExistantResourceReturnResource()
- {
- Barcode\Barcode::setBarcodeFont(__DIR__ . '/../Object/_fonts/Vera.ttf');
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->renderer->setBarcode($barcode);
- $pdfResource = new Pdf\PdfDocument();
- $this->renderer->setResource($pdfResource);
-@@ -75,7 +75,7 @@ protected function getRendererWithWidth500AndHeight300()
- public function testHorizontalPositionToCenter()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->setHorizontalPosition('center');
-@@ -86,7 +86,7 @@ public function testHorizontalPositionToCenter()
- public function testHorizontalPositionToRight()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->setHorizontalPosition('right');
-@@ -97,7 +97,7 @@ public function testHorizontalPositionToRight()
- public function testVerticalPositionToMiddle()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setVerticalPosition('middle');
-@@ -108,7 +108,7 @@ public function testVerticalPositionToMiddle()
- public function testVerticalPositionToBottom()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setVerticalPosition('bottom');
-diff --git a/test/Renderer/TestCommon.php b/test/Renderer/TestCommon.php
-index f04e49f..a2de440 100644
---- a/test/Renderer/TestCommon.php
-+++ b/test/Renderer/TestCommon.php
-@@ -11,7 +11,7 @@
-
- use ZendTest\Barcode\Object\TestAsset as TestAsset;
- use Zend\Barcode;
--use Zend\Barcode\Object;
-+use Zend\Barcode\Object\Code39;
- use Zend\Config;
-
- abstract class TestCommon extends \PHPUnit_Framework_TestCase
-@@ -51,7 +51,7 @@ public function tearDown()
-
- public function testSetBarcodeObject()
- {
-- $barcode = new Object\Code39();
-+ $barcode = new Code39();
- $this->renderer->setBarcode($barcode);
- $this->assertSame($barcode, $this->renderer->getBarcode());
- }
-@@ -200,7 +200,7 @@ public function testHorizontalPositionToLeft()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->draw();
-@@ -211,7 +211,7 @@ public function testHorizontalPositionToCenter()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->setHorizontalPosition('center');
-@@ -223,7 +223,7 @@ public function testHorizontalPositionToRight()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->setHorizontalPosition('right');
-@@ -235,7 +235,7 @@ public function testLeftOffsetOverrideHorizontalPosition()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(211, $barcode->getWidth());
- $renderer->setBarcode($barcode);
- $renderer->setLeftOffset(12);
-@@ -248,7 +248,7 @@ public function testVerticalPositionToTop()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setVerticalPosition('top');
-@@ -260,7 +260,7 @@ public function testVerticalPositionToMiddle()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setVerticalPosition('middle');
-@@ -272,7 +272,7 @@ public function testVerticalPositionToBottom()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setVerticalPosition('bottom');
-@@ -284,7 +284,7 @@ public function testTopOffsetOverrideVerticalPosition()
- {
- $renderer = $this->getRendererWithWidth500AndHeight300();
- $renderer->setModuleSize(1);
-- $barcode = new Object\Code39(['text' => '0123456789']);
-+ $barcode = new Code39(['text' => '0123456789']);
- $this->assertEquals(62, $barcode->getHeight());
- $renderer->setBarcode($barcode);
- $renderer->setTopOffset(12);
diff --git a/composer.json b/composer.json
index 9fbaf0f..8fd1b34 100644
--- a/composer.json
+++ b/composer.json
@@ -3,39 +3,61 @@
"description": "provides a generic way to generate barcodes",
"license": "BSD-3-Clause",
"keywords": [
- "zf2",
+ "zf",
+ "zendframework",
"barcode"
],
- "homepage": "https://github.com/zendframework/zend-barcode",
- "autoload": {
- "psr-4": {
- "Zend\\Barcode\\": "src/"
- }
+ "support": {
+ "docs": "https://docs.zendframework.com/zend-barcode/",
+ "issues": "https://github.com/zendframework/zend-barcode/issues",
+ "source": "https://github.com/zendframework/zend-barcode",
+ "rss": "https://github.com/zendframework/zend-barcode/releases.atom",
+ "slack": "https://zendframework-slack.herokuapp.com",
+ "forum": "https://discourse.zendframework.com/c/questions/components"
},
"require": {
- "php": "^5.5 || ^7.0",
- "zendframework/zend-stdlib": "^2.7 || ^3.0",
- "zendframework/zend-validator": "^2.6",
- "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3"
+ "php": "^5.6 || ^7.0",
+ "zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
+ "zendframework/zend-stdlib": "^2.7.7 || ^3.1",
+ "zendframework/zend-validator": "^2.10.1"
},
"require-dev": {
- "zendframework/zend-config": "^2.6",
- "zendframework/zendpdf": "*",
- "fabpot/php-cs-fixer": "1.7.*",
- "phpunit/PHPUnit": "~4.0"
+ "phpunit/phpunit": "^5.7.23 || ^6.4.3",
+ "zendframework/zend-coding-standard": "~1.0.0",
+ "zendframework/zend-config": "^2.6 || ^3.1",
+ "zendframework/zendpdf": "^2.0.2"
},
"suggest": {
"zendframework/zendpdf": "ZendPdf component"
},
- "extra": {
- "branch-alias": {
- "dev-master": "2.6-dev",
- "dev-develop": "2.7-dev"
+ "autoload": {
+ "psr-4": {
+ "Zend\\Barcode\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendTest\\Barcode\\": "test/"
}
+ },
+ "config": {
+ "sort-packages": true
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.7.x-dev",
+ "dev-develop": "2.8.x-dev"
+ }
+ },
+ "scripts": {
+ "check": [
+ "@cs-check",
+ "@test"
+ ],
+ "cs-check": "phpcs",
+ "cs-fix": "phpcbf",
+ "test": "phpunit --colors=always",
+ "test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
+ "upload-coverage": "coveralls -v"
}
}
diff --git a/php-zendframework-zend-barcode.spec b/php-zendframework-zend-barcode.spec
index 2cd21e2..80a9d43 100644
--- a/php-zendframework-zend-barcode.spec
+++ b/php-zendframework-zend-barcode.spec
@@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit 9201afb8a1356f149ddb955a3c9e017f47c0dd6c
+%global gh_commit 50f24f604ef2172a0127efe91e786bc2caf2e8cf
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner zendframework
%global gh_project zend-barcode
@@ -20,8 +20,8 @@
%endif
Name: php-%{gh_owner}-%{gh_project}
-Version: 2.6.0
-Release: 5%{?dist}
+Version: 2.7.0
+Release: 1%{?dist}
Summary: Zend Framework %{library} component
Group: Development/Libraries
@@ -30,28 +30,32 @@ URL: https://zendframework.github.io/%{gh_project}/
Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
-Patch0: https://github.com/zendframework/zend-barcode/pull/36.patch
-
BuildArch: noarch
# Tests
%if %{with_tests}
-BuildRequires: php(language) >= 5.5
+BuildRequires: php(language) >= 5.6
BuildRequires: php-dom
BuildRequires: php-gd
BuildRequires: php-iconv
BuildRequires: php-pcre
BuildRequires: php-spl
-BuildRequires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7
-BuildRequires: php-autoloader(%{gh_owner}/zend-validator) >= 2.5
-BuildRequires: php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.5
+BuildRequires: php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.7.8
+BuildRequires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7.7
+BuildRequires: php-autoloader(%{gh_owner}/zend-validator) >= 2.10.1
# From composer, "require-dev": {
-# "zendframework/zend-config": "^2.6",
-# "zendframework/zendpdf": "*",
-# "fabpot/php-cs-fixer": "1.7.*",
-# "phpunit/PHPUnit": "~4.0"
+# "phpunit/phpunit": "^5.7.23 || ^6.4.3",
+# "zendframework/zend-coding-standard": "~1.0.0",
+# "zendframework/zend-config": "^2.6 || ^3.1",
+# "zendframework/zendpdf": "^2.0.2"
BuildRequires: php-autoloader(%{gh_owner}/zend-config) >= 2.6
-BuildRequires: php-autoloader(%{gh_owner}/zendpdf)
-BuildRequires: php-composer(phpunit/phpunit) >= 4.0
+BuildRequires: php-autoloader(%{gh_owner}/zendpdf) >= 2.0.2
+%if 0%{?fedora} >= 26
+%global phpunit %{_bindir}/phpunit6
+BuildRequires: phpunit6 >= 6.4.3
+%else
+%global phpunit %{_bindir}/phpunit
+BuildRequires: php-composer(phpunit/phpunit) >= 5.7.22
+%endif
# Autoloader
BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5
%endif
@@ -59,18 +63,18 @@ BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5
BuildRequires: php-fedora-autoloader-devel
# From composer, "require": {
-# "php": "^5.5 || ^7.0",
-# "zendframework/zend-stdlib": "^2.7 || ^3.0",
-# "zendframework/zend-validator": "^2.6",
-# "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3"
-Requires: php(language) >= 5.5
+# "php": "^5.6 || ^7.0",
+# "zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
+# "zendframework/zend-stdlib": "^2.7.7 || ^3.1",
+# "zendframework/zend-validator": "^2.10.1"
+Requires: php(language) >= 5.6
%if ! %{bootstrap}
-Requires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7
+Requires: php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.7.8
+Requires: php-autoloader(%{gh_owner}/zend-servicemanager) < 4
+Requires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7.7
Requires: php-autoloader(%{gh_owner}/zend-stdlib) < 4
-Requires: php-autoloader(%{gh_owner}/zend-validator) >= 2.6
+Requires: php-autoloader(%{gh_owner}/zend-validator) >= 2.10.1
Requires: php-autoloader(%{gh_owner}/zend-validator) < 3
-Requires: php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.7.5
-Requires: php-autoloader(%{gh_owner}/zend-servicemanager) < 4
# From composer, "suggest": {
# "zendframework/zendpdf": "ZendPdf component"
%if 0%{?fedora} >= 21
@@ -103,7 +107,6 @@ Documentation: https://zendframework.github.io/%{gh_project}/
%prep
%setup -q -n %{gh_project}-%{gh_commit}
-%patch0 -p1
mv LICENSE.md LICENSE
@@ -141,9 +144,10 @@ EOF
export TESTS_ZEND_BARCODE_PDF_SUPPORT=1
ret=0
-for cmd in php php56 php70 php71 php72; do
- if which $cmd; then
- $cmd %{_bindir}/phpunit --verbose || ret=1
+for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do
+ if which $cmdarg; then
+ set $cmdarg
+ $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1
fi
done
exit $ret
@@ -161,6 +165,14 @@ exit $ret
%changelog
+* Tue Dec 12 2017 Remi Collet <remi@remirepo.net> - 2.7.0-1
+- Update to 2.7.0
+- raise dependency on PHP 5.6
+- raise dependency on zend-servicemanager 2.7.8
+- raise dependency on zend-stdlib 2.7.7
+- raise dependency on zend-validator 2.10.1
+- use phpunit6 on F26+
+
* Thu Dec 7 2017 Remi Collet <remi@remirepo.net> - 2.6.0-5
- switch from zend-loader to fedora/autoloader
- run PDF tests