diff options
| -rw-r--r-- | composer.json | 10 | ||||
| -rw-r--r-- | php-zumba-json-serializer.spec | 25 | 
2 files changed, 21 insertions, 14 deletions
diff --git a/composer.json b/composer.json index 63c7d4a..6653a83 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@      "type": "library",      "description": "Serialize PHP variables, including objects, in JSON format. Support to unserialize it too.",      "keywords": ["json", "serialize", "serializer"], -    "homepage": "http://tech.zumba.com", +    "homepage": "https://tech.zumba.com",      "license": "MIT",      "scripts": {          "test": "phpunit --colors=always" @@ -26,18 +26,12 @@          "opis/closure": "Allow to serialize PHP closures"      },      "require-dev": { -        "phpunit/phpunit": ">=6.0 <10.0" +        "phpunit/phpunit": ">=6.0 <11.0"      },      "autoload": {          "psr-4": {              "Zumba\\": "src/",              "Zumba\\JsonSerializer\\Test\\": "tests/"          } -    }, -    "archive": { -        "exclude": [ -            "/tests", -            "/phpunit.xml" -        ]      }  } diff --git a/php-zumba-json-serializer.spec b/php-zumba-json-serializer.spec index 683d70f..abdfc9b 100644 --- a/php-zumba-json-serializer.spec +++ b/php-zumba-json-serializer.spec @@ -9,7 +9,7 @@  %bcond_without       tests -%global gh_commit    3d9f1b7ac4ce46107db500f3cc1384217ddf1649 +%global gh_commit    93786164efd20b6e01d42b03d4f7c2e52c9cebd8  %global gh_short     %(c=%{gh_commit}; echo ${c:0:7})  %global gh_owner     zumba  %global gh_project   json-serializer @@ -18,13 +18,14 @@  %global major        %nil  Name:           php-%{gh_owner}-%{gh_project}%{major} -Version:        3.1.0 +Version:        3.2.0  Release:        1%{?dist}  Summary:        Serialize PHP variables  License:        MIT  URL:            https://github.com/%{gh_owner}/%{gh_project} -Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{?gh_short}.tar.gz +Source0:        %{name}-%{version}-%{?gh_short}.tgz +Source1:        makesrc.sh  BuildArch:      noarch  %if %{with tests} @@ -36,10 +37,17 @@ BuildRequires:  php-pcre  BuildRequires:  php-reflection  BuildRequires:  php-spl  # For tests, from composer.json "require-dev": { -#        "phpunit/phpunit": ">=6.0 <10.0" +#        "phpunit/phpunit": ">=6.0 <11.0" +# remirepo:1 +%if 0%{?fedora} >= 38 +BuildRequires:  phpunit10 +%global phpunit %{_bindir}/phpunit10 +# remirepo:4 +%else  BuildRequires:  phpunit9  %global phpunit %{_bindir}/phpunit9  %endif +%endif  # For autoloader  BuildRequires:  php-fedora-autoloader-devel @@ -95,10 +103,10 @@ EOF  ret=0  # ignore testS relying on SuperClosure (deprecated and removed from repo) -for cmdarg in "php %{phpunit}" php80 php81 php82 php83; do +for cmdarg in "php %{phpunit}" "php80 %{_bindir}/phpunit9" php81 php82 php83; do     if which $cmdarg; then        set $cmdarg -      $1 ${2:-%{_bindir}/phpunit9} \ +      $1 ${2:-%{_bindir}/phpunit10} \            --bootstrap vendor/autoload.php \            --filter '^((?!(testAddSerializer|testGetPreferredSerializer|testSerialize|testUnserialize)).)*$' \            --no-coverage || ret=1 @@ -121,6 +129,11 @@ exit $ret  %changelog +* Tue Sep 26 2023 Remi Collet <remi@remirepo.net> - 3.2.0-1 +- update to 3.2.0 +- sources from git snapshot +- switch to phpunit10 +  * Tue Jul 18 2023 Remi Collet <remi@remirepo.net> - 3.1.0-1  - update to 3.1.0  | 
