|
|
@ -2,7 +2,7 @@
|
|
|
|
%define pear_name PHP_CodeSniffer
|
|
|
|
%define pear_name PHP_CodeSniffer
|
|
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Version: 1.2.1
|
|
|
|
Version: 1.2.2
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
|
@ -16,25 +16,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: php-pear >= 1:1.4.9-1.2
|
|
|
|
BuildRequires: php-pear >= 1:1.4.9-1.2
|
|
|
|
Requires: php-pear(PEAR)
|
|
|
|
Requires: php-pear(PEAR)
|
|
|
|
|
|
|
|
Requires: php-common >= 5.1.2
|
|
|
|
Requires(post): %{__pear}
|
|
|
|
Requires(post): %{__pear}
|
|
|
|
Requires(postun): %{__pear}
|
|
|
|
Requires(postun): %{__pear}
|
|
|
|
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
|
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
|
|
|
|
|
Provides: phpcs = %{version}
|
|
|
|
|
|
|
|
Obsoletes: phpcs < %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
PHP_CodeSniffer provides functionality to verify that code conforms to
|
|
|
|
PHP_CodeSniffer provides functionality to verify that code conforms to
|
|
|
|
certain standards, such as PEAR, or user-defined.
|
|
|
|
certain standards, such as PEAR, or user-defined.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n phpcs
|
|
|
|
|
|
|
|
Summary: Command-line utility for PHP-CodeSniffer
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
|
|
|
Requires: php-pear(%{pear_name}) = %{version}
|
|
|
|
|
|
|
|
Requires: php-cli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n phpcs
|
|
|
|
|
|
|
|
This package includes a utility to run PHP_CodeSniffer from command line.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
%setup -q -c
|
|
|
|
[ -f package2.xml ] || mv package.xml package2.xml
|
|
|
|
[ -f package2.xml ] || mv package.xml package2.xml
|
|
|
@ -72,7 +64,6 @@ install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
|
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
|
%{pear_xmldir}/%{pear_name}.xml >/dev/null || :
|
|
|
|
%{pear_xmldir}/%{pear_name}.xml >/dev/null || :
|
|
|
@ -87,21 +78,20 @@ fi
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
|
|
|
%doc %{pear_name}-%{version}/phpcs-svn-pre-commit
|
|
|
|
%doc %{pear_name}-%{version}/docdir/*
|
|
|
|
%doc %{pear_name}-%{version}/docdir/*
|
|
|
|
%{pear_xmldir}/%{pear_name}.xml
|
|
|
|
%{pear_xmldir}/%{pear_name}.xml
|
|
|
|
%{pear_testdir}/%{pear_name}
|
|
|
|
%{pear_testdir}/%{pear_name}
|
|
|
|
%dir %{pear_phpdir}/PHP
|
|
|
|
%{pear_datadir}/%{pear_name}
|
|
|
|
%{pear_phpdir}/PHP/*
|
|
|
|
%{pear_phpdir}/PHP
|
|
|
|
%dir %{pear_datadir}/%{pear_name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n phpcs
|
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
|
|
|
%doc %{pear_name}-%{version}/phpcs-svn-pre-commit
|
|
|
|
|
|
|
|
%{_bindir}/phpcs
|
|
|
|
%{_bindir}/phpcs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Jan 27 2010 Christof Damian <christof@damian.net> 1.2.2-1
|
|
|
|
|
|
|
|
- upstream 1.2.2 ( bug:559170 )
|
|
|
|
|
|
|
|
- move phpcs into main package ( bug: 517775 )
|
|
|
|
|
|
|
|
- add php-common version requirement
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 17 2009 Christof Damian <christof@damian.net> - 1.2.1-1
|
|
|
|
* Tue Nov 17 2009 Christof Damian <christof@damian.net> - 1.2.1-1
|
|
|
|
- Upstream 1.2.1
|
|
|
|
- Upstream 1.2.1
|
|
|
|
|
|
|
|
|
|
|
|