summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-05-05 07:31:58 +0200
committerRemi Collet <remi@php.net>2026-05-05 07:31:58 +0200
commit63327566f114276f801015a4ef3b66886715f369 (patch)
tree0dccf5fc96f473e602f2ef68fe837debf557ae82
parent7fd04b072c581df7946e060dc2d8c08daeb53cff (diff)
update to 5.3.4HEADmaster
-rwxr-xr-xphp-justinrainbow-json-schema5-makesrc.sh15
-rw-r--r--php-justinrainbow-json-schema5.spec11
2 files changed, 11 insertions, 15 deletions
diff --git a/php-justinrainbow-json-schema5-makesrc.sh b/php-justinrainbow-json-schema5-makesrc.sh
index dfd5c2a..6bf6616 100755
--- a/php-justinrainbow-json-schema5-makesrc.sh
+++ b/php-justinrainbow-json-schema5-makesrc.sh
@@ -4,24 +4,19 @@ NAME=$(basename $PWD)
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
-COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
-SHORT=${COMMIT:0:7}
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n"
echo "Cloning..."
-git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
+git clone https://github.com/$OWNER/$PROJECT.git --depth 1 -b $VERSION $PROJECT-$VERSION
-echo "Getting commit..."
-pushd $PROJECT-$COMMIT
-git checkout $COMMIT
-cp composer.json ../composer.json
-popd
+echo "Getting composer..."
+cp $PROJECT-$VERSION/composer.json composer.json
echo "Archiving..."
-tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT
+tar czf $NAME-$VERSION.tgz --exclude .git $PROJECT-$VERSION
echo "Cleaning..."
-rm -rf $PROJECT-$COMMIT
+rm -rf $PROJECT-$VERSION
echo "Done."
diff --git a/php-justinrainbow-json-schema5.spec b/php-justinrainbow-json-schema5.spec
index 12345b0..01a1c9a 100644
--- a/php-justinrainbow-json-schema5.spec
+++ b/php-justinrainbow-json-schema5.spec
@@ -14,8 +14,6 @@
%bcond_without tests
%endif
-%global gh_commit a0b7c13588b102d7d6536823e96d1c88d3dba85e
-%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner justinrainbow
%global gh_project json-schema
%global php_home %{_datadir}/php
@@ -34,14 +32,14 @@
%global eolv2 0
Name: php-%{gh_owner}-%{gh_project}%{major}
-Version: 5.3.3
+Version: 5.3.4
Release: 1%{?dist}
Summary: A library to validate a json schema
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
# git snapshot to get upstream test suite
-Source0: %{name}-%{version}-%{gh_short}.tgz
+Source0: %{name}-%{version}.tgz
Source1: https://github.com/%{ts_owner}/%{ts_project}/archive/%{ts_commit}/%{ts_project}-%{ts_version}-%{ts_short}.tar.gz
Source2: %{name}-autoload.php
Source3: %{name}-makesrc.sh
@@ -98,7 +96,7 @@ Autoloader: %{php_home}/JsonSchema%{major}/autoload.php
%prep
-%setup -q -n %{gh_project}-%{gh_commit} -a 1
+%setup -q -n %{gh_project}-%{version} -a 1
%patch -P0 -p1 -b .rpm
find src -name \*.rpm -delete -print
@@ -176,6 +174,9 @@ exit $ret
%changelog
+* Tue May 5 2026 Remi Collet <remi@remirepo.net> - 5.3.4-1
+- update to 5.3.4
+
* Wed Mar 25 2026 Remi Collet <remi@remirepo.net> - 5.3.3-1
- update to 5.3.3