Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4151444624 |
3 changed files with 22 additions and 70 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -12,7 +12,3 @@ clog
|
|||
/php-justinrainbow-json-schema5-5.2.9-44c6787.tgz
|
||||
/php-justinrainbow-json-schema5-5.2.10-2ba9c8c.tgz
|
||||
/php-justinrainbow-json-schema5-5.2.11-2ab6744.tgz
|
||||
/php-justinrainbow-json-schema5-5.2.12-ad87d5a.tgz
|
||||
/php-justinrainbow-json-schema5-5.2.13-fbbe7e5.tgz
|
||||
/php-justinrainbow-json-schema5-5.3.0-feb2ca6.tgz
|
||||
/php-justinrainbow-json-schema5-5.3.1-b5a44b6.tgz
|
||||
|
|
|
|||
|
|
@ -1,24 +1,17 @@
|
|||
# remirepo/fedora spec file for php-justinrainbow-json-schema5
|
||||
#
|
||||
# SPDX-FileCopyrightText: Copyright 2016-2025 Remi Collet
|
||||
# SPDX-License-Identifier: CECILL-2.1
|
||||
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||
# Copyright (c) 2016-2019 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
|
||||
# disable test suite until recent phpunit is supported
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
%endif
|
||||
|
||||
%global gh_commit b5a44b6391a3bbb75c9f2b73e1ef03d6045e1e20
|
||||
%global gh_commit 2ab6744b7296ded80f8cc4f9509abbff393399aa
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner justinrainbow
|
||||
%global gh_project json-schema
|
||||
%global php_home %{_datadir}/php
|
||||
%global with_tests 0%{!?_without_tests:1}
|
||||
%global major 5
|
||||
|
||||
|
||||
|
|
@ -34,7 +27,7 @@
|
|||
%global eolv2 0
|
||||
|
||||
Name: php-%{gh_owner}-%{gh_project}%{major}
|
||||
Version: 5.3.1
|
||||
Version: 5.2.11
|
||||
Release: 1%{?dist}
|
||||
Summary: A library to validate a json schema
|
||||
License: MIT
|
||||
|
|
@ -50,12 +43,16 @@ Source3: %{name}-makesrc.sh
|
|||
Patch0: %{name}-rpm.patch
|
||||
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
%if %{with_tests}
|
||||
# For tests
|
||||
BuildRequires: php(language) >= 7.1
|
||||
BuildRequires: php(language) >= 5.3.3
|
||||
BuildRequires: php-curl
|
||||
BuildRequires: php-date
|
||||
BuildRequires: php-filter
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-mbstring
|
||||
BuildRequires: php-pcre
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "json-schema/json-schema-test-suite": "1.2.0",
|
||||
# "friendsofphp/php-cs-fixer": "^2.1",
|
||||
|
|
@ -68,12 +65,16 @@ BuildRequires: composer
|
|||
%endif
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": ">=7.1"
|
||||
Requires: php(language) >= 7.1
|
||||
# "php": ">=5.3.3"
|
||||
Requires: php(language) >= 5.3.3
|
||||
# From phpcompatinfo report for version 4.0.1
|
||||
Requires: php-curl
|
||||
Requires: php-date
|
||||
Requires: php-filter
|
||||
Requires: php-json
|
||||
Requires: php-mbstring
|
||||
Requires: php-pcre
|
||||
Requires: php-spl
|
||||
# Autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
%if %{eolv1}
|
||||
|
|
@ -100,7 +101,7 @@ Autoloader: %{php_home}/JsonSchema%{major}/autoload.php
|
|||
%prep
|
||||
%setup -q -n %{gh_project}-%{gh_commit} -a 1
|
||||
|
||||
%patch -P0 -p1 -b .rpm
|
||||
%patch0 -p1 -b .rpm
|
||||
find src -name \*.rpm -delete -print
|
||||
|
||||
cp %{SOURCE2} src/JsonSchema/autoload.php
|
||||
|
|
@ -136,7 +137,7 @@ install -Dpm 0755 bin/validate-json %{buildroot}%{_bindir}/validate-json%{major}
|
|||
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%if %{with_tests}
|
||||
: Test suite autoloader
|
||||
cat << 'EOF' | tee vendor/autoload.php
|
||||
<?php
|
||||
|
|
@ -155,7 +156,7 @@ php bin/validate-json-test \
|
|||
|
||||
: Upstream test suite
|
||||
ret=0
|
||||
for cmd in php php81 php82 php83 php84 php85; do
|
||||
for cmd in php php73 php74 php80; do
|
||||
if which $cmd; then
|
||||
$cmd -d memory_limit=1G %{_bindir}/phpunit -d memory_limit=1G --verbose || ret=1
|
||||
fi
|
||||
|
|
@ -176,54 +177,9 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Dec 12 2025 Remi Collet <remi@remirepo.net> - 5.3.1-1
|
||||
- update to 5.3.1
|
||||
- re-license spec file to CECILL-2.1
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Mon Jul 8 2024 Remi Collet <remi@remirepo.net> - 5.3.0-1
|
||||
- update to 5.3.0
|
||||
- raise dependency on PHP 7.1
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.13-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.13-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Sep 28 2023 Remi Collet <remi@remirepo.net> - 5.2.13-1
|
||||
- update to 5.2.13
|
||||
- disable test suite
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.12-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.12-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.12-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Apr 13 2022 Remi Collet <remi@remirepo.net> - 5.2.12-1
|
||||
- update to 5.2.12
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.11-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Remi Collet <remi@remirepo.net> - 5.2.11-1
|
||||
- update to 5.2.11
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.10-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (JSON-Schema-Test-Suite-1.2.0-f3d5aeb.tar.gz) = 6b917a0a0b02d5b2be6457403fba0ae4d3789634da911ebbdc56986b99ae285ed8a7bc696abc668f2a95b55e33d7bfbf8709162fc0995d76ab2f0d05494a2d02
|
||||
SHA512 (php-justinrainbow-json-schema5-5.3.1-b5a44b6.tgz) = bf183d685d7410c09da2c24d6aeac86fe6f804bd79f15bc573d9e52f7437817437e975d34ce79e56f824fa6d9deb57cc7df531977e745a66c0a0c54eafeacb8c
|
||||
SHA512 (php-justinrainbow-json-schema5-5.2.11-2ab6744.tgz) = fc4bc72c02a040a634a3a2086af2f4fb216a950f4158535e61a2e16b238d952c6da84a38e077c1fd75d9169de289a4d41d36bcdd067c595fb86e6e5e617548af
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue