Compare commits
No commits in common. "rawhide" and "f36" have entirely different histories.
4 changed files with 25 additions and 103 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,5 +1 @@
|
|||
/php-zumba-json-serializer-3.0.1-d91d5a2.tar.gz
|
||||
/php-zumba-json-serializer-3.0.2-421dcdd.tar.gz
|
||||
/php-zumba-json-serializer-3.2.0-9378616.tgz
|
||||
/php-zumba-json-serializer-3.2.1-c869bcb.tgz
|
||||
/php-zumba-json-serializer-3.2.2-1b1b230.tgz
|
||||
|
|
|
|||
32
makesrc.sh
32
makesrc.sh
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
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}
|
||||
|
||||
if [ -f $NAME-$VERSION-$SHORT.tgz ]; then
|
||||
echo "skip $NAME-$VERSION-$SHORT.tgz already here"
|
||||
else
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT\n"
|
||||
|
||||
echo "Cloning..."
|
||||
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT || exit 1
|
||||
cp composer.json ../composer.json
|
||||
popd
|
||||
|
||||
echo "Archiving..."
|
||||
tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs $PROJECT-$COMMIT
|
||||
|
||||
echo "Cleaning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
fi
|
||||
|
||||
echo "Done."
|
||||
|
||||
|
|
@ -1,15 +1,15 @@
|
|||
# remirepo/fedora spec file for php-zumba-json-serializer
|
||||
#
|
||||
# SPDX-FileCopyrightText: Copyright 2021-2025 Remi Collet
|
||||
# SPDX-License-Identifier: CECILL-2.1
|
||||
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||
# Copyright (c) 2021 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%global gh_commit 1b1b2302d46692f317021ee4b9cc06b1311b7333
|
||||
%global gh_commit d91d5a22bbbacbb1d6ad23302137a90e9a7dafd5
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner zumba
|
||||
%global gh_project json-serializer
|
||||
|
|
@ -18,41 +18,41 @@
|
|||
%global major %nil
|
||||
|
||||
Name: php-%{gh_owner}-%{gh_project}%{major}
|
||||
Version: 3.2.2
|
||||
Release: 1%{?dist}
|
||||
Version: 3.0.1
|
||||
Release: 2%{?dist}
|
||||
Summary: Serialize PHP variables
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
Source0: %{name}-%{version}-%{?gh_short}.tgz
|
||||
Source1: makesrc.sh
|
||||
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{?gh_short}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
# as we use phpunit10 by default
|
||||
BuildRequires: php(language) >= 8.1
|
||||
BuildRequires: php(language) >= 7.0
|
||||
BuildRequires: php-date
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-mbstring
|
||||
BuildRequires: php-pcre
|
||||
BuildRequires: php-reflection
|
||||
BuildRequires: php-spl
|
||||
# For tests, from composer.json "require-dev": {
|
||||
# "phpunit/phpunit": ">=8.0 <12.0"
|
||||
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
|
||||
BuildRequires: phpunit11
|
||||
%global phpunit %{_bindir}/phpunit11
|
||||
%else
|
||||
BuildRequires: phpunit10
|
||||
%global phpunit %{_bindir}/phpunit10
|
||||
%endif
|
||||
# "phpunit/phpunit": ">=6.0 <10.0"
|
||||
BuildRequires: phpunit9
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
%endif
|
||||
# For autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": "^7.2 || ^8.0",
|
||||
# "php": ">=7.0.0",
|
||||
# "ext-mbstring": "*"
|
||||
Requires: php(language) >= 7.2
|
||||
Requires: php(language) >= 7.0
|
||||
Requires: php-mbstring
|
||||
# From phpcompatinfo report for 3.0.1
|
||||
Requires: php-json
|
||||
Requires: php-pcre
|
||||
Requires: php-reflection
|
||||
Requires: php-spl
|
||||
# For generated autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
|
||||
|
|
@ -94,14 +94,13 @@ require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload
|
|||
EOF
|
||||
|
||||
ret=0
|
||||
# ignore tests relying on SuperClosure (deprecated and removed from repo)
|
||||
for cmdarg in "php %{phpunit}" "php81 %{_bindir}/phpunit10" php82 php83 php84; do
|
||||
for cmdarg in "php %{phpunit}" php74 php80 php81; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 ${2:-%{_bindir}/phpunit11} \
|
||||
$1 ${2:-%{_bindir}/phpunit9} \
|
||||
--bootstrap vendor/autoload.php \
|
||||
--filter '^((?!(testAddSerializer|testGetPreferredSerializer|testSerialize|testUnserialize)).)*$' \
|
||||
--no-coverage || ret=1
|
||||
--no-coverage \
|
||||
--verbose || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -119,47 +118,6 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Dec 12 2025 Remi Collet <remi@remirepo.net> - 3.2.2-1
|
||||
- update to 3.2.2
|
||||
- re-license spec file to CECILL-2.1
|
||||
- raise dependency on php 7.2
|
||||
- switch to phpunit11
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Oct 19 2023 Remi Collet <remi@remirepo.net> - 3.2.1-1
|
||||
- update to 3.2.1
|
||||
|
||||
* 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
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Dec 8 2022 Remi Collet <remi@remirepo.net> - 3.0.2-1
|
||||
- update to 3.0.2 (no change)
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-zumba-json-serializer-3.2.2-1b1b230.tgz) = 7ae1d8acab55b6232259a2b14445742f1b6cea33ba1d22589bed873573431f3793c5c96595aecfcc0345c50bd59676823696bcfe6347425b81a40de526632319
|
||||
SHA512 (php-zumba-json-serializer-3.0.1-d91d5a2.tar.gz) = af236e8eae6d00ebd70165711f0afc1f5ff20dcd9ff94039c5fe51df3ce058cebf65ff7c7257bb670c6d3bac97b2a68861b13ae01c1d813fdc59f43c389379b0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue