Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e876ea37da | ||
|
|
44178b549f | ||
|
|
914a0b695d | ||
|
|
414893f1c6 | ||
|
|
e4893e2e7a | ||
|
|
c85af1a972 | ||
|
|
2acdd04e8a | ||
|
|
36b21561b7 | ||
|
|
90c96922b8 | ||
|
|
8fb1ba60a6 | ||
|
|
090f550e86 | ||
|
|
a539f84c96 |
3 changed files with 68 additions and 25 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -16,3 +16,6 @@
|
|||
/php-swaggest-json-schema-0.12.37-1d7cce2.tgz
|
||||
/php-swaggest-json-schema-0.12.38-ab7cca1.tgz
|
||||
/php-swaggest-json-schema-0.12.39-193ba39.tgz
|
||||
/php-swaggest-json-schema-0.12.41-1bb9790.tgz
|
||||
/php-swaggest-json-schema-0.12.42-d23adb5.tgz
|
||||
/php-swaggest-json-schema-0.12.43-1f3a77a.tgz
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# remirepo/fedora spec file for php-swaggest-json-schema
|
||||
#
|
||||
# Copyright (c) 2019-2021 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
# SPDX-FileCopyrightText: Copyright 2019-2024 Remi Collet
|
||||
# SPDX-License-Identifier: CECILL-2.1
|
||||
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
%bcond_without tests
|
||||
|
||||
# Github
|
||||
%global gh_commit 193ba39cce1ffa2d55ddd5445315e945a63298a2
|
||||
%global gh_commit 1f3a77a382c5d273a0f1fe34be3b8af4060a88cd
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner swaggest
|
||||
%global gh_project php-json-schema
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
%global major %nil
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 0.12.39
|
||||
Release: 2%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
|
||||
Version: 0.12.43
|
||||
Release: 3%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
|
||||
Summary: High definition PHP structures with JSON-schema based validation
|
||||
|
||||
License: MIT
|
||||
|
|
@ -34,22 +34,17 @@ Source1: makesrc.sh
|
|||
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
BuildRequires: php(language) >= 5.4
|
||||
BuildRequires: php(language) >= 7.1
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-mbstring
|
||||
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||
BuildRequires: (php-composer(phplang/scope-exit) >= 1.0 with php-composer(phplang/scope-exit) < 2)
|
||||
BuildRequires: (php-composer(swaggest/json-diff) >= 3.8.2 with php-composer(swaggest/json-diff) < 4)
|
||||
%else
|
||||
BuildRequires: php-phplang-scope-exit >= 1.0
|
||||
BuildRequires: php-swaggest-json-diff >= 3.8.2
|
||||
%endif
|
||||
# For tests, from composer.json "require-dev": {
|
||||
# "phpunit/phpunit": "^5",
|
||||
# "phpunit/php-code-coverage": "^4",
|
||||
# "codeclimate/php-test-reporter": "^0.4.0"
|
||||
BuildRequires: php-composer(phpunit/phpunit) >= 5
|
||||
%global phpunit %{_bindir}/phpunit
|
||||
BuildRequires: phpunit9
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
BuildRequires: php-date
|
||||
BuildRequires: php-filter
|
||||
BuildRequires: php-pcre
|
||||
|
|
@ -59,22 +54,17 @@ BuildRequires: php-fedora-autoloader-devel
|
|||
%endif
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": ">=5.4",
|
||||
# "php": ">=7.1",
|
||||
# "ext-json": "*",
|
||||
# "ext-mbstring": "*",
|
||||
# "phplang/scope-exit": "^1.0",
|
||||
# "swaggest/json-diff": "^3.8.2",
|
||||
# "symfony/polyfill-mbstring": "^1.19"
|
||||
Requires: php(language) >= 5.4
|
||||
Requires: php(language) >= 7.1
|
||||
Requires: php-json
|
||||
Requires: php-mbstring
|
||||
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||
Requires: (php-composer(phplang/scope-exit) >= 1.0 with php-composer(phplang/scope-exit) < 2)
|
||||
Requires: (php-composer(swaggest/json-diff) >= 3.8.2 with php-composer(swaggest/json-diff) < 4)
|
||||
%else
|
||||
Requires: php-phplang-scope-exit >= 1.0
|
||||
Requires: php-swaggest-json-diff >= 3.8.2
|
||||
%endif
|
||||
# From phpcompatinfo report for 0.12.17
|
||||
Requires: php-date
|
||||
Requires: php-filter
|
||||
|
|
@ -127,16 +117,28 @@ cat << 'EOF' | tee vendor/autoload.php
|
|||
<?php
|
||||
require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php';
|
||||
\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\Tests\\', dirname(__DIR__).'/tests/src');
|
||||
|
||||
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\Testcase {
|
||||
function setExpectedException($e, $m = '') {
|
||||
$this->expectException($e);
|
||||
if ($m) $this->expectExceptionMessage($m);
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# For phpunit9
|
||||
sed -e '/setUp()/s/$/:void/' \
|
||||
-i tests/src/PHPUnit/Example/ExampleTest.php
|
||||
|
||||
# Skip online tests: testInvalid, testValidate
|
||||
# Skip because of phpunit9: testPatternPropertiesMismatch
|
||||
ret=0
|
||||
for cmd in php php73 php74 php80 php81; do
|
||||
for cmd in php php81 php82 php83 php84; do
|
||||
if which $cmd; then
|
||||
$cmd %{phpunit} \
|
||||
--no-coverage \
|
||||
--filter '^((?!(SwaggerTest::testInvalid|SwaggerTest::testValidate)).)*$' \
|
||||
--verbose || ret=1
|
||||
--filter '^((?!(SwaggerTest::testInvalid|SwaggerTest::testValidate|testPatternPropertiesMismatch)).)*$' \
|
||||
|| ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -154,6 +156,44 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.43-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.43-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Mon Dec 23 2024 Remi Collet <remi@remirepo.net> - 0.12.43-1
|
||||
- update to 0.12.43
|
||||
- re-license spec file to CECILL-2.1
|
||||
- raise dependency on PHP 7.1
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.42-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.42-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.42-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Oct 6 2023 Remi Collet <remi@remirepo.net> - 0.12.42-2
|
||||
- switch to phpunit9
|
||||
|
||||
* Wed Sep 13 2023 Remi Collet <remi@remirepo.net> - 0.12.42-1
|
||||
- update to 0.12.42
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.41-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.41-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Aug 18 2022 Remi Collet <remi@remirepo.net> - 0.12.41-1
|
||||
- update to 0.12.41
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.39-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.39-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-swaggest-json-schema-0.12.39-193ba39.tgz) = 43c1ef489583ac757dc14aee0b4bf61a52a6d4f62c82a8d255a775abad60d5868922fd4c603c47e37a38efd1d13fc1385b07afcadd230a126e3b2aa49216ea3c
|
||||
SHA512 (php-swaggest-json-schema-0.12.43-1f3a77a.tgz) = fc1961dfb66d289af17ad602fd01edebb0d9647c28a93203c931a9290eb56eb9e5cdc764878d2e267a4940fbe2d0f9295c375236c184ca15b49d843a7a327969
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue