Upstream 1.1.0RC2.

f38
Konstantin Ryabitsev 17 years ago
parent 5426084523
commit 82795bd71b

@ -1 +1 @@
PHP_CodeSniffer-1.0.1.tgz PHP_CodeSniffer-1.1.0RC2.tgz

@ -1,15 +1,16 @@
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name PHP_CodeSniffer %define pear_name PHP_CodeSniffer
%define rctag RC2
Name: php-pear-PHP-CodeSniffer Name: php-pear-PHP-CodeSniffer
Version: 1.0.1 Version: 1.1.0
Release: 1%{?dist} Release: 0.1.%{rctag}%{?dist}
Summary: PHP coding standards enforcement tool Summary: PHP coding standards enforcement tool
Group: Development/Tools Group: Development/Tools
License: BSD License: BSD
URL: http://pear.php.net/package/PHP_CodeSniffer URL: http://pear.php.net/package/PHP_CodeSniffer
Source0: http://pear.php.net/get/PHP_CodeSniffer-%{version}.tgz Source0: http://pear.php.net/get/PHP_CodeSniffer-%{version}%{rctag}.tgz
Source1: PHP_CodeSniffer-licence.txt Source1: PHP_CodeSniffer-licence.txt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -38,17 +39,15 @@ 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
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml mv package2.xml %{pear_name}-%{version}%{rctag}/%{pear_name}.xml
cd %{pear_name}-%{version}
%build %build
cd %{pear_name}-%{version}
# Empty build section, # Empty build section,
%install %install
cd %{pear_name}-%{version} cd %{pear_name}-%{version}%{rctag}
rm -rf $RPM_BUILD_ROOT docdir rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
@ -56,6 +55,11 @@ rm -rf $RPM_BUILD_ROOT docdir
mkdir -p docdir mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_datadir}/%{pear_name}/*.sample.conf docdir/ mv $RPM_BUILD_ROOT%{pear_datadir}/%{pear_name}/*.sample.conf docdir/
# Remove phpcs-svn-pre-commit: we'll add it to docs
mv -f $RPM_BUILD_ROOT%{_bindir}/scripts/phpcs-svn-pre-commit .
chmod 0644 phpcs-svn-pre-commit
rm -rf $RPM_BUILD_ROOT%{_bindir}/scripts
cp %{SOURCE1} . cp %{SOURCE1} .
# Clean up unnecessary files # Clean up unnecessary files
@ -83,8 +87,8 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt %doc %{pear_name}-%{version}%{rctag}/PHP_CodeSniffer-licence.txt
%doc %{pear_name}-%{version}/docdir/* %doc %{pear_name}-%{version}%{rctag}/docdir/*
%{pear_xmldir}/%{pear_name}.xml %{pear_xmldir}/%{pear_name}.xml
%{pear_testdir}/%{pear_name} %{pear_testdir}/%{pear_name}
%dir %{pear_phpdir}/PHP %dir %{pear_phpdir}/PHP
@ -93,11 +97,15 @@ fi
%files -n phpcs %files -n phpcs
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt %doc %{pear_name}-%{version}%{rctag}/PHP_CodeSniffer-licence.txt
%{_bindir}/* %doc %{pear_name}-%{version}%{rctag}/phpcs-svn-pre-commit
%{_bindir}/phpcs
%changelog %changelog
* Mon Jun 30 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.1.0-0.1.RC2
- Upstream 1.1.0RC2
* Sun Feb 17 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.0.1-1 * Sun Feb 17 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.0.1-1
- Upstream 1.0.1 - Upstream 1.0.1
- Move sample config into docs - Move sample config into docs

@ -1 +1 @@
500a5fc5236190217c579548304f7155 PHP_CodeSniffer-1.0.1.tgz c7b10489c21b73e56b67cfa967eb1672 PHP_CodeSniffer-1.1.0RC2.tgz

Loading…
Cancel
Save