|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
%define pear_name PHP_CodeSniffer
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Version: 1.0.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
@ -43,6 +43,8 @@ cd %{pear_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
|
# Empty build section,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -50,9 +52,10 @@ cd %{pear_name}-%{version}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT docdir
|
|
|
|
|
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
|
|
|
|
|
|
|
|
|
|
# Move documentation (none packaged so far)
|
|
|
|
|
# mkdir -p docdir
|
|
|
|
|
# mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
|
|
|
|
|
# Move documentation
|
|
|
|
|
mkdir -p docdir
|
|
|
|
|
mv $RPM_BUILD_ROOT%{pear_datadir}/%{pear_name}/*.sample.conf docdir/
|
|
|
|
|
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
|
|
|
|
|
# Clean up unnecessary files
|
|
|
|
@ -80,11 +83,13 @@ fi
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt
|
|
|
|
|
%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
|
|
|
|
|
%{pear_phpdir}/PHP/*
|
|
|
|
|
%dir %{pear_datadir}/%{pear_name}
|
|
|
|
|
|
|
|
|
|
%files -n phpcs
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
@ -93,6 +98,10 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Feb 17 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.0.1-1
|
|
|
|
|
- Upstream 1.0.1
|
|
|
|
|
- Move sample config into docs
|
|
|
|
|
|
|
|
|
|
* Fri Aug 17 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.8.0-1
|
|
|
|
|
- Upstream 0.8.0
|
|
|
|
|
|
|
|
|
|