v4.0.4
This commit is contained in:
parent
edc1b813ba
commit
1721dfd141
4 changed files with 22 additions and 28 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
clog
|
||||
/php-pear-PHP-CodeSniffer-4.0.0-06113cf.tgz
|
||||
/php-pear-PHP-CodeSniffer-4.0.1-0525c73.tgz
|
||||
/php-pear-PHP-CodeSniffer-4.0.4.tgz
|
||||
|
|
|
|||
23
makesrc.sh
23
makesrc.sh
|
|
@ -4,29 +4,24 @@ 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
|
||||
if [ -f $NAME-$VERSION.tgz ]; then
|
||||
echo "$NAME-$VERSION.tgz already there"
|
||||
else
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n"
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION \n"
|
||||
|
||||
echo "Cloning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||
rm -rf $PROJECT-$VERSION
|
||||
git clone https://github.com/$OWNER/$PROJECT.git --depth 1 --branch $VERSION $PROJECT-$VERSION || exit 1
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT || echo exit 1
|
||||
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-vcs $PROJECT-$VERSION
|
||||
|
||||
echo "Cleaning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
rm -rf $PROJECT-$VERSION
|
||||
|
||||
echo "Done."
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# spec file for php-pear-PHP-CodeSniffer
|
||||
#
|
||||
# Copyright (c) 2013-2025 Remi Collet
|
||||
# Copyright (c) 2013-2026 Remi Collet
|
||||
# Copyright (c) 2009-2013 Christof Damian
|
||||
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
||||
#
|
||||
|
|
@ -13,26 +13,20 @@
|
|||
|
||||
%bcond_without tests
|
||||
|
||||
%global gh_commit 0525c73950de35ded110cffafb9892946d7771b5
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_date 2025-11-10
|
||||
%global gh_owner PHPCSStandards
|
||||
%global gh_project PHP_CodeSniffer
|
||||
# keep in old PEAR tree
|
||||
%global pear_phpdir %{_datadir}/pear
|
||||
|
||||
%global upstream_version 4.0.1
|
||||
#global upstream_prever rc1
|
||||
|
||||
Name: php-pear-PHP-CodeSniffer
|
||||
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
|
||||
Release: 3%{?dist}
|
||||
Version: 4.0.4
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP coding standards enforcement tool
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
# git snapshot to retrieve test suite
|
||||
Source0: %{name}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tgz
|
||||
Source0: %{name}-%{version}.tgz
|
||||
Source1: makesrc.sh
|
||||
|
||||
# RPM installation path
|
||||
|
|
@ -81,7 +75,7 @@ certain standards, such as PEAR, or user-defined.
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gh_project}-%{gh_commit}
|
||||
%setup -q -n %{gh_project}-%{version}
|
||||
%patch -P0 -p1 -b .rpm
|
||||
|
||||
|
||||
|
|
@ -123,11 +117,12 @@ for cmdarg in \
|
|||
"php82 %{_bindir}/phpunit11" \
|
||||
"php83 %{_bindir}/phpunit11" \
|
||||
"php84 %{_bindir}/phpunit11" \
|
||||
"php85 %{_bindir}/phpunit11"
|
||||
"php85 %{_bindir}/phpunit11" \
|
||||
"php86 %{_bindir}/phpunit11"
|
||||
do if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 -d memory_limit=-1 $2 \
|
||||
--filter '^((?!(testBrokenRulesetMultiError)).)*$' \
|
||||
--filter '^((?!(testBrokenRulesetMultiError|testFilenameParameterInjection)).)*$' \
|
||||
--no-coverage || ret=1
|
||||
fi
|
||||
done
|
||||
|
|
@ -144,6 +139,9 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 6 2026 Remi Collet <remi@remirepo.net> - 4.0.4-1
|
||||
- update to 4.0.4
|
||||
|
||||
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-pear-PHP-CodeSniffer-4.0.1-0525c73.tgz) = 384867fff733de98f3a0cd7105776aa571389e8f11a2d95ba51139a682778650900028722352779bb3b6986f61fa123ceded3d9496de0a05e0872ac21bb1329e
|
||||
SHA512 (php-pear-PHP-CodeSniffer-4.0.4.tgz) = d2ed0d2cf882eeb399c5688f63ada4120b115f093978d9ff2b464bdbea50118ed635d479acdbbce0cc107087899b46d83c8b05e4f11309665e7ed7d90e2b2875
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue