File php5-pear-channel-phpunit.spec of Package php5-pear-channel-phpunit

# spec file for package php5-pear-channel-phpunit
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define peardir %(pear config-get php_dir 2> /dev/null)
%define pear_xmldir  /var/lib/pear

Name:           php5-pear-channel-phpunit
Version:        1.0
Release:        0
Summary:        Adds channel to PEAR
License:        MIT
Group:          Development/Tools/Debuggers
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%if 0%{?sles_version} >= 10
BuildRequires:  php53
BuildRequires:  php53-pear
Requires:       php53
Requires:       php53-pear
BuildRequires:  php >= 5.3.1
BuildRequires:  php-pear >= 5.3.1
Requires:       php >= 5.3.1
Requires:       php-pear >= 5.3.1
Provides:       php5-pear-channel-phpunitde > 1.0
Obsoletes:      php5-pear-channel-phpunitde = 1.0

This package adds the channel which allows PEAR packages
from this channel to be installed.

%setup -q -c -T

# Empty build section, nothing to build


%{__mkdir_p} %{buildroot}%{pear_xmldir}

%{__install} -pm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/


%{__rm} -rf %{buildroot}

if [ $1 -eq  1 ] ; then
   pear channel-add %{pear_xmldir}/ > /dev/null || :
   pear channel-update %{pear_xmldir}/ > /dev/null ||:


if [ $1 -eq 0 ] ; then
   pear channel-delete > /dev/null || :


openSUSE Build Service is sponsored by