rpms/php-pear-PHPUnit/EL-5 php-pear-PHPUnit.spec,1.4,1.5

xulchris xulchris at fedoraproject.org
Fri Sep 11 03:34:05 UTC 2009


Author: xulchris

Update of /cvs/pkgs/rpms/php-pear-PHPUnit/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14487

Added Files:
	php-pear-PHPUnit.spec 
Log Message:
forgot to cvs add spec file before previous commit


Index: php-pear-PHPUnit.spec
===================================================================
RCS file: php-pear-PHPUnit.spec
diff -N php-pear-PHPUnit.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ php-pear-PHPUnit.spec	11 Sep 2009 03:34:05 -0000	1.5
@@ -0,0 +1,174 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name PHPUnit
+%global channel pear.phpunit.de
+
+Name:           php-pear-PHPUnit
+Version:        3.3.5
+Release:        2%{?dist}
+Summary:        Regression testing framework for unit tests
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://www.phpunit.de
+Source0:        http://pear.phpunit.de/get/%{pear_name}-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  php-pear(PEAR) >= 1.4.1
+BuildRequires:  php-channel(pear.phpunit.de)
+
+Requires:       php-common >= 5.1.4 php-xml
+Requires:       php-pear(PEAR) >= 1.4.1
+Requires:       php-channel(pear.phpunit.de) 
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+
+# Optionnal dependencies
+Requires:       php-pear(Image_GraphViz) >= 1.2.1
+Requires:       php-pear(Log)
+Requires:       php-pecl-json php-pdo
+Requires:       php-pecl(Xdebug) >= 2.0.0
+
+Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
+
+%description
+PHPUnit is a family of PEAR packages that supports the development of
+object-oriented PHP applications using the concepts and methods of Agile
+Software Development, Extreme Programming, Test-Driven Development and
+Design-by-Contract Development by providing an elegant and robust framework
+for the creation, execution and analysis of Unit Tests.
+
+
+%prep
+%setup -qc
+# package.xml is V2
+mv package.xml %{pear_name}-%{version}/%{name}.xml
+cd %{pear_name}-%{version}
+
+
+%build
+cd %{pear_name}-%{version}
+# Empty build section, most likely nothing required.
+
+
+%install
+cd %{pear_name}-%{version}
+rm -rf $RPM_BUILD_ROOT docdir
+
+# Install Package
+%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
+
+# Move documentation
+mkdir -p docdir
+mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
+
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+
+# Install XML package description
+install -d $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post
+# Unregister pear.php.net/PHPUnit, new PHPUnit is in another channel
+if [ $1 -gt  1 ] ; then
+%{__pear} uninstall --nodeps --ignore-errors --register-only \
+    %{pear_name} >/dev/null || :
+fi
+
+%{__pear} install --nodeps --soft --force --register-only \
+    %{pear_xmldir}/%{name}.xml >/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    %{__pear} uninstall --nodeps --ignore-errors --register-only \
+        %{channel}/%{pear_name} >/dev/null || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc %{pear_name}-%{version}/docdir/%{pear_name}/%{pear_name}/*
+%{pear_xmldir}/%{name}.xml
+%{pear_testdir}/%{pear_name}
+%{pear_phpdir}/%{pear_name}
+%{_bindir}/phpunit
+
+
+%changelog
+* Thu Sep 10 2009 Christopher Stone <chris.stone at gmail.com> 3.3.5-2
+- Make package undead for EL-5 (bz #510521)
+- Change Requires for php-json to php-pecl-json
+
+* Fri Jul 03 2009 Xavier Bachelot <xavier at bachelot.org> - 3.3.5-1
+- Adapt for EL5 (Include fixes from 3.3.16-1 by Remi Collet).
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov  8 2008 Christopher Stone <chris.stone at gmail.com> 3.3.4-1
+- Upstream sync
+
+* Thu Oct 23 2008 Christopher Stone <chris.stone at gmail.com> 3.3.2-1
+- Upstream sync
+- Remove no longer needed Obsolete/Provides
+
+* Thu Oct 09 2008 Christopher Stone <chris.stone at gmail.com> 3.3.1-1
+- Upstream sync
+
+* Thu Oct 09 2008 Christopher Stone <chris.stone at gmail.com> 3.2.21-1
+- Upstream sync
+- Add php-xml to Requires (bz #464758)
+
+* Thu May 22 2008 Christopher Stone <chris.stone at gmail.com> 3.2.19-1
+- Upstream sync
+
+* Thu Feb 21 2008 Christopher Stone <chris.stone at gmail.com> 3.2.15-1
+- Upstream sync
+
+* Wed Feb 13 2008 Christopher Stone <chris.stone at gmail.com> 3.2.13-1
+- Upstream sync
+
+* Sun Nov 25 2007 Christopher Stone <chris.stone at gmail.com> 3.2.1-1
+- Upstream sync
+
+* Sat Sep 08 2007 Christopher Stone <chris.stone at gmail.com> 3.1.8-1
+- Upstream sync
+
+* Sun May 06 2007 Christopher Stone <chris.stone at gmail.com> 3.0.6-1
+- Upstream sync
+
+* Thu Mar 08 2007 Christopher Stone <chris.stone at gmail.com> 3.0.5-3
+- Fix testdir
+- Fix Provides version
+
+* Wed Mar 07 2007 Christopher Stone <chris.stone at gmail.com> 3.0.5-2
+- Add Obsoletes/Provides for php-pear(PHPUnit2)
+- Requires php-pear(PEAR) >= 1.5.0
+- Own %%{pear_testdir}/%%{pear_name}
+- Remove no longer needed manual channel install
+- Simplify %%doc
+- Only unregister old phpunit on upgrade
+
+* Mon Feb 26 2007 Christopher Stone <chris.stone at gmail.com> 3.0.5-1
+- Upstream sync
+
+* Wed Feb 21 2007 Christohper Stone <chris.stone at gmail.com> 3.0.4-1
+- Upstream sync
+
+* Mon Jan 29 2007 Christopher Stone <chris.stone at gmail.com> 3.0.3-1
+- Upstream sync
+
+* Sun Jan 14 2007 Christopher Stone <chris.stone at gmail.com> 3.0.2-1
+- Upstream sync
+
+* Fri Jan 05 2007 Christopher Stone <chris.stone at gmail.com> 3.0.1-1
+- Upstream sync
+
+* Wed Dec 27 2006 Christopher Stone <chris.stone at gmail.com> 3.0.0-1
+- Initial Release




More information about the fedora-extras-commits mailing list