From: Adam Gołębiowski Date: Mon, 8 Apr 2019 06:35:24 +0000 (+0200) Subject: - release 2, restore case-sensitive.patch X-Git-Tag: auto/th/phpcs-3.4.0-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphpcs.git;a=commitdiff_plain;h=00dc0c8 - release 2, restore 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