remi pushed to php-pear-PHP-CodeSniffer (epel7). "update to 2.3.1"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Apr 23 12:37:57 UTC 2015
>From f62ee646a23c982a6fcbc81ac54dcdaa046453b4 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Thu, 23 Apr 2015 14:37:47 +0200
Subject: update to 2.3.1
diff --git a/.gitignore b/.gitignore
index 89868e1..81b0fc1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,4 @@
-PHP_CodeSniffer-1.3.0a1.tgz
-/PHP_CodeSniffer-1.3.0RC1.tgz
-/PHP_CodeSniffer-1.3.0.tgz
-/PHP_CodeSniffer-1.3.1.tgz
-/PHP_CodeSniffer-1.3.3.tgz
-/PHP_CodeSniffer-1.3.4.tgz
-/PHP_CodeSniffer-1.3.5.tgz
-/PHP_CodeSniffer-1.3.6.tgz
-/PHP_CodeSniffer-1.4.0.tgz
-/PHP_CodeSniffer-1.4.3.tgz
-/PHP_CodeSniffer-1.4.4.tgz
-/PHP_CodeSniffer-1.4.5.tgz
-/PHP_CodeSniffer-1.5.5.tgz
+clog
+/PHP_CodeSniffer-2.2.0.tgz
+/PHP_CodeSniffer-2.3.0.tgz
+/PHP_CodeSniffer-2.3.1.tgz
diff --git a/PHP_CodeSniffer-licence.txt b/PHP_CodeSniffer-licence.txt
deleted file mode 100644
index b2f2ab1..0000000
--- a/PHP_CodeSniffer-licence.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-PHP_CodeSniffer Licence
-
-Copyright (c) 2006, Squiz Pty Ltd (ABN 77 084 670 600) All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- * Neither the name of Squiz Pty Ltd nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/PHP_CodeSniffer-role.patch b/PHP_CodeSniffer-role.patch
new file mode 100644
index 0000000..6a7d5f8
--- /dev/null
+++ b/PHP_CodeSniffer-role.patch
@@ -0,0 +1,10 @@
+--- package.xml.old 2014-12-05 12:39:59.000000000 +0100
++++ package.xml 2014-12-05 12:40:45.000000000 +0100
+@@ -1949,6 +1949,7 @@
+ <filelist>
+ <install as="phpcs" name="scripts/phpcs" />
+ <install as="phpcbf" name="scripts/phpcbf" />
++ <install as="phpcs-svn-pre-commit" name="scripts/phpcs-svn-pre-commit" />
+ <install as="README" name="README.md" />
+ <install as="CONTRIBUTING" name="CONTRIBUTING.md" />
+ <install as="LICENCE" name="licence.txt" />
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec
index ae80242..ae4436a 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-2014 Remi Collet
+# Copyright (c) 2013-2015 Remi Collet
# Copyright (c) 2009-2013 Christof Damian
# Copyright (c) 2006-2009 Konstantin Ryabitsev
#
@@ -14,7 +14,7 @@
%global pear_name PHP_CodeSniffer
Name: php-pear-PHP-CodeSniffer
-Version: 1.5.5
+Version: 2.3.1
Release: 1%{?dist}
Summary: PHP coding standards enforcement tool
@@ -22,8 +22,8 @@ Group: Development/Tools
License: BSD
URL: http://pear.php.net/package/PHP_CodeSniffer
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
-# https://github.com/squizlabs/PHP_CodeSniffer/issues/273
-Source1: PHP_CodeSniffer-licence.txt
+
+Patch0: %{pear_name}-role.patch
BuildArch: noarch
BuildRequires: php-pear
@@ -34,16 +34,14 @@ Requires(post): %{__pear}
Requires(postun): %{__pear}
# From package.xml
Requires: php-pear(PEAR)
-# From package.xml - optional
-Requires: php-pear(pear.phpunit.de/PHP_Timer) >= 1.0.0
-# From phpcompatinfo report for version 1.5.5
+# From phpcompatinfo report for version 2.0.0
Requires: php-ctype
Requires: php-date
Requires: php-dom
Requires: php-iconv
Requires: php-pcre
Requires: php-reflection
-Requires: php-simplexml
+Requires: php-soap
Requires: php-spl
Requires: php-tokenizer
Requires: php-xmlwriter
@@ -62,8 +60,11 @@ certain standards, such as PEAR, or user-defined.
%prep
%setup -q -c
-sed -e '/phpcs-svn-pre-commit/s/role="script"/role="doc"/' \
- package.xml >%{pear_name}-%{version}/%{pear_name}.xml
+# install scripts/phpcs-svn-pre-commit properly
+%patch0 -p0 -b .old
+
+cd %{pear_name}-%{version}
+mv ../package.xml %{pear_name}.xml
%build
@@ -82,17 +83,12 @@ rm -rf %{buildroot}%{pear_metadir}/.??*
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
-install -pm 644 %{SOURCE1} %{buildroot}%{pear_docdir}/%{pear_name}/LICENSE
-
%check
cd %{pear_name}-%{version}/tests
-# Version 1.5.5 : 216, Assertions: 57, Skipped: 4.
-%{_bindir}/phpunit \
- -d date.timezone=UTC \
- --verbose \
- AllTests.php
+# Version 2.2.0: Tests: 219, Assertions: 69, Skipped: 4.
+%{_bindir}/phpunit AllTests.php
%post
@@ -112,10 +108,16 @@ fi
%{pear_testdir}/%{pear_name}
%{pear_datadir}/%{pear_name}
%{pear_phpdir}/PHP
+%{_bindir}/phpcbf
%{_bindir}/phpcs
+%{_bindir}/phpcs-svn-pre-commit
%changelog
+* Thu Apr 23 2015 Remi Collet <remi at fedoraproject.org> - 2.3.1-1
+- Update to 2.3.1 (stable)
+- add phpcbf and phpcs-svn-pre-commit commands
+
* Thu Oct 9 2014 Remi Collet <remi at fedoraproject.org> - 1.5.5
- Update to 1.5.5
- cleanup + changes from remi repo
diff --git a/sources b/sources
index cb59f72..85eca90 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-157b659379676741db692de5ec151c33 PHP_CodeSniffer-1.5.5.tgz
+10241b74aaa31b65982ea8575fc2a765 PHP_CodeSniffer-2.3.1.tgz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/php-pear-PHP-CodeSniffer.git/commit/?h=epel7&id=f62ee646a23c982a6fcbc81ac54dcdaa046453b4
More information about the scm-commits
mailing list