|
|
|
@ -1,16 +1,15 @@
|
|
|
|
|
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
|
|
%define pear_name PHP_CodeSniffer
|
|
|
|
|
%define rctag RC2
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
|
Version: 1.1.0
|
|
|
|
|
Release: 0.2.%{rctag}%{?dist}
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://pear.php.net/package/PHP_CodeSniffer
|
|
|
|
|
Source0: http://pear.php.net/get/PHP_CodeSniffer-%{version}%{rctag}.tgz
|
|
|
|
|
Source0: http://pear.php.net/get/PHP_CodeSniffer-%{version}.tgz
|
|
|
|
|
Source1: PHP_CodeSniffer-licence.txt
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
@ -39,7 +38,7 @@ This package includes a utility to run PHP_CodeSniffer from command line.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c
|
|
|
|
|
[ -f package2.xml ] || mv package.xml package2.xml
|
|
|
|
|
mv package2.xml %{pear_name}-%{version}%{rctag}/%{pear_name}.xml
|
|
|
|
|
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -47,7 +46,7 @@ mv package2.xml %{pear_name}-%{version}%{rctag}/%{pear_name}.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd %{pear_name}-%{version}%{rctag}
|
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT docdir
|
|
|
|
|
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
|
|
|
|
|
|
|
|
|
@ -87,8 +86,8 @@ fi
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc %{pear_name}-%{version}%{rctag}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
%doc %{pear_name}-%{version}%{rctag}/docdir/*
|
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
%doc %{pear_name}-%{version}/docdir/*
|
|
|
|
|
%{pear_xmldir}/%{pear_name}.xml
|
|
|
|
|
%{pear_testdir}/%{pear_name}
|
|
|
|
|
%dir %{pear_phpdir}/PHP
|
|
|
|
@ -97,12 +96,15 @@ fi
|
|
|
|
|
|
|
|
|
|
%files -n phpcs
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc %{pear_name}-%{version}%{rctag}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
%doc %{pear_name}-%{version}%{rctag}/phpcs-svn-pre-commit
|
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
%doc %{pear_name}-%{version}/phpcs-svn-pre-commit
|
|
|
|
|
%{_bindir}/phpcs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Mar 05 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.1.0-1
|
|
|
|
|
- Belatedly update to 1.1.0 final.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.2.RC2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|