From 7374fb34460c7b82e18ef96543cf548bd4f29f82 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 2 May 2016 06:57:24 +0200 Subject: php-myclabs-deep-copy: 1.5.1 --- composer.json | 21 +++++++++++++++++++++ php-myclabs-deep-copy.spec | 15 ++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d20287a --- /dev/null +++ b/composer.json @@ -0,0 +1,21 @@ +{ + "name": "myclabs/deep-copy", + "type": "library", + "description": "Create deep copies (clones) of your objects", + "keywords": ["clone", "copy", "duplicate", "object", "object graph"], + "homepage": "https://github.com/myclabs/DeepCopy", + "license": "MIT", + "autoload": { + "psr-4": { "DeepCopy\\": "src/DeepCopy/" } + }, + "autoload-dev": { + "psr-4": { "DeepCopyTest\\": "tests/DeepCopyTest/" } + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "doctrine/collections": "1.*", + "phpunit/phpunit": "~4.1" + } +} diff --git a/php-myclabs-deep-copy.spec b/php-myclabs-deep-copy.spec index 0f29fc2..447540f 100644 --- a/php-myclabs-deep-copy.spec +++ b/php-myclabs-deep-copy.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit e3abefcd7f106677fd352cd7c187d6c969aa9ddc +%global gh_commit a8773992b362b58498eed24bf85005f363c34771 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner myclabs %global gh_project DeepCopy @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-myclabs-deep-copy -Version: 1.5.0 +Version: 1.5.1 Release: 1%{?dist} Summary: Create deep copies (clones) of your objects @@ -86,6 +86,11 @@ EOF %{_bindir}/php -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ %{_bindir}/phpunit --verbose + +if which php70; then + php70 -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ + %{_bindir}/phpunit --verbose +fi %else : Test suite disabled %endif @@ -105,6 +110,10 @@ rm -rf %{buildroot} %changelog +* Mon May 2 2016 Remi Collet - 1.5.1-1 +- update to 1.5.1 +- run test suite with both PHP 5 and 7 when available + * Sun Nov 8 2015 Remi Collet - 1.5.0-1 - update to 1.5.0 @@ -116,4 +125,4 @@ rm -rf %{buildroot} * Sat Jul 4 2015 Remi Collet - 1.3.0-1 - initial package, version 1.3.0 -- open https://github.com/myclabs/DeepCopy/pull/14 - fix perms \ No newline at end of file +- open https://github.com/myclabs/DeepCopy/pull/14 - fix perms -- cgit