1.3.0RC1 release

f38
Christof Damian 14 years ago
parent b310766d9c
commit fe73e758b4

1
.gitignore vendored

@ -1 +1,2 @@
PHP_CodeSniffer-1.3.0a1.tgz PHP_CodeSniffer-1.3.0a1.tgz
/PHP_CodeSniffer-1.3.0RC1.tgz

@ -1,15 +1,17 @@
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name PHP_CodeSniffer %global pear_name PHP_CodeSniffer
%global pear_version 1.3.0
%global pear_release RC1
Name: php-pear-PHP-CodeSniffer Name: php-pear-PHP-CodeSniffer
Version: 1.3.0a1 Version: %{pear_version}
Release: 1%{?dist} Release: 2.%{pear_release}%{?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/%{pear_name}-%{pear_version}%{pear_release}.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)
@ -19,6 +21,7 @@ Requires: php-pear(PEAR)
Requires: php-common >= 5.1.2 Requires: php-common >= 5.1.2
Requires(post): %{__pear} Requires(post): %{__pear}
Requires(postun): %{__pear} Requires(postun): %{__pear}
Requires: php-pear(pear.phpunit.de/PHP_Timer) >= 1.0.0
Provides: php-pear(%{pear_name}) = %{version} Provides: php-pear(%{pear_name}) = %{version}
Provides: phpcs = %{version} Provides: phpcs = %{version}
Obsoletes: phpcs < %{version} Obsoletes: phpcs < %{version}
@ -32,17 +35,23 @@ certain standards, such as PEAR, or user-defined.
%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}-%{pear_version}%{pear_release}/%{pear_name}.xml
cd %{pear_name}-%{pear_version}%{pear_release}
# Create a "localized" php.ini to avoid build warning
cp /etc/php.ini .
echo "date.timezone=UTC" >>php.ini
%build %build
# Empty build section, # Empty build section,
%install %install
cd %{pear_name}-%{version} cd %{pear_name}-%{pear_version}%{pear_release}
rm -rf $RPM_BUILD_ROOT docdir rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
PHPRC=./php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
# Move documentation # Move documentation
mkdir -p docdir mkdir -p docdir
@ -79,9 +88,9 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %{pear_name}-%{version}/PHP_CodeSniffer-licence.txt %doc %{pear_name}-%{pear_version}%{pear_release}/PHP_CodeSniffer-licence.txt
%doc %{pear_name}-%{version}/phpcs-svn-pre-commit %doc %{pear_name}-%{pear_version}%{pear_release}/phpcs-svn-pre-commit
%doc %{pear_name}-%{version}/docdir/* %doc %{pear_name}-%{pear_version}%{pear_release}/docdir/*
%{pear_xmldir}/%{pear_name}.xml %{pear_xmldir}/%{pear_name}.xml
%{pear_testdir}/%{pear_name} %{pear_testdir}/%{pear_name}
%{pear_datadir}/%{pear_name} %{pear_datadir}/%{pear_name}
@ -89,6 +98,13 @@ fi
%{_bindir}/phpcs %{_bindir}/phpcs
%changelog %changelog
* Sat Dec 4 2010 Christof Damian <christof@damian.net> - 1.3.0-2.RC1
- fix version number
- fix timezone warnings
* Fri Sep 3 2010 Christof Damian <christof@damian.net> - 1.3.0RC1-1
- upstream 1.3.0RC1
* Thu Jul 15 2010 Christof Damian <christof@damian.net> - 1.3.0a1-1 * Thu Jul 15 2010 Christof Damian <christof@damian.net> - 1.3.0a1-1
- upstream 1.3.0a1 - upstream 1.3.0a1

@ -1 +1 @@
e1b19d7b793d01bce9241ce5e2254395 PHP_CodeSniffer-1.3.0a1.tgz 122a7a413866df608d87e0e5a868aeda PHP_CodeSniffer-1.3.0RC1.tgz

Loading…
Cancel
Save