summaryrefslogtreecommitdiffstats
path: root/php-pear-PHP-CodeSniffer.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-01-12 08:38:18 +0100
committerRemi Collet <remi@php.net>2024-01-12 08:38:18 +0100
commitb4dd5d832e49eaf641edd5831895757ae4e80a77 (patch)
tree32acc50a9ea1785c70738a0aa77c756168c276b5 /php-pear-PHP-CodeSniffer.spec
parent10775c2c97faf4986674db86603b3ea20e7bf4f0 (diff)
update to 3.8.1
add patch for test suite from https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/256
Diffstat (limited to 'php-pear-PHP-CodeSniffer.spec')
-rw-r--r--php-pear-PHP-CodeSniffer.spec17
1 files changed, 12 insertions, 5 deletions
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec
index e0a5407..9bc34b0 100644
--- a/php-pear-PHP-CodeSniffer.spec
+++ b/php-pear-PHP-CodeSniffer.spec
@@ -1,6 +1,6 @@
# spec file for php-pear-PHP-CodeSniffer
#
-# Copyright (c) 2013-2023 Remi Collet
+# Copyright (c) 2013-2024 Remi Collet
# Copyright (c) 2009-2013 Christof Damian
# Copyright (c) 2006-2009 Konstantin Ryabitsev
#
@@ -16,7 +16,7 @@
%bcond_without tests
-%global gh_commit 5805f7a4e4958dbb5e944ef1e6edae0a303765e7
+%global gh_commit 14f5fff1e64118595db5408e946f3a22c75807f7
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner PHPCSStandards
%global gh_project PHP_CodeSniffer
@@ -25,7 +25,7 @@
Name: php-pear-PHP-CodeSniffer
-Version: 3.8.0
+Version: 3.8.1
Release: 1%{?dist}
Summary: PHP coding standards enforcement tool
@@ -37,6 +37,7 @@ Source1: makesrc.sh
# RPM installation path
Patch0: %{name}-rpm.patch
+Patch1: 0001-skip-tests-requiring-git-repository.patch
BuildArch: noarch
BuildRequires: php(language) >= 5.4
@@ -48,9 +49,9 @@ BuildRequires: php-iconv
BuildRequires: php-intl
%if %{with tests}
# to run test suite, from composer.json "require-dev"
-# "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+# "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
%global phpunit %{_bindir}/phpunit9
-BuildRequires: %{phpunit}
+BuildRequires: phpunit9 >= 9.3.4
%endif
# from composer.json "require": {
@@ -81,6 +82,7 @@ certain standards, such as PEAR, or user-defined.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
%patch -P0 -p1 -b .rpm
+%patch -P1 -p1 -b .nogit
%build
@@ -143,6 +145,11 @@ fi
%changelog
+* Fri Jan 12 2024 Remi Collet <remi@remirepo.net> - 3.8.1-1
+- update to 3.8.1
+- add patch for test suite from
+ https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/256
+
* Mon Dec 11 2023 Remi Collet <remi@remirepo.net> - 3.8.0-1
- update to 3.8.0
- sources from github instead or pear channel