From 00dc0c8c94a1bdeac0969948a31da49869f6942e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Mon, 8 Apr 2019 08:35:24 +0200 Subject: [PATCH] - release 2, restore case-sensitive.patch --- case-sensitive.patch | 11 +++++++++++ phpcs.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 case-sensitive.patch diff --git a/case-sensitive.patch b/case-sensitive.patch new file mode 100644 index 0000000..e558ae2 --- /dev/null +++ b/case-sensitive.patch @@ -0,0 +1,11 @@ +--- PHP_CodeSniffer-3.4.0/usr/share/pear/PHP/CodeSniffer/src/Filters/Filter.php~ 2018-12-20 00:57:58.000000000 +0100 ++++ PHP_CodeSniffer-3.4.0/usr/share/pear/PHP/CodeSniffer/src/Filters/Filter.php 2019-04-08 08:28:26.042280047 +0200 +@@ -256,7 +256,7 @@ + $testPath = $path; + } + +- $pattern = '`'.$pattern.'`i'; ++ $pattern = '`'.$pattern.'`'; + if (preg_match($pattern, $testPath) === 1) { + return true; + } diff --git a/phpcs.spec b/phpcs.spec index 747e856..dc2fa51 100644 --- a/phpcs.spec +++ b/phpcs.spec @@ -9,11 +9,12 @@ Summary: PHP_CodeSniffer tokenises PHP code and detects violations of a defined Summary(pl.UTF-8): PHP_CodeSniffer analizuje kod PHP pod kątem naruszeń zdefiniowanych standardów kodowania Name: phpcs Version: 3.4.0 -Release: 1 +Release: 2 License: BSD License Group: Development/Languages/PHP Source0: https://pear.php.net/get/%{pearname}-%{version}.tgz # Source0-md5: daedf0015977e8d398f381bb2e05ae6b +Patch0: case-sensitive.patch URL: https://github.com/squizlabs/PHP_CodeSniffer BuildRequires: php-pear-PEAR BuildRequires: rpm-php-pearprov >= 4.4.2-11 @@ -51,6 +52,7 @@ przez programistów pewnych częstych błędów semantycznych. %prep %pear_package_setup +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT -- 2.43.0