File php-pear-channel-symfony2.spec of Package php-pear-channel-symfony2
#
# spec file for package php-pear-channel-symfony2
#
# Copyright (c) 2019 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: php-pear-channel-symfony2
Version: 1.1
Release: 0
Summary: Symfony2 PEAR channel
License: MIT
Group: Development/Libraries/Other
URL: https://symfony.com/
Source0: http://pear.symfony.com/channel.xml
BuildRequires: php-devel
BuildRequires: php-pear
Requires: php-pear
Provides: php-channel(symfony2)
Provides: php5-pear-channel-symfony2 = %{version}
Obsoletes: php5-pear-channel-symfony2 < %{version}
Provides: php7-pear-channel-symfony2 = %{version}
Obsoletes: php7-pear-channel-symfony2 < %{version}
BuildArch: noarch
%description
This package adds the pear.symfony.com channel which allows PEAR packages
from this channel to be installed.
%prep
# Empty prep section, nothing to prep
%build
# Empty build section, nothing to build
%install
mkdir -p %{buildroot}%{php_pearxmldir}
install -pm 644 %{SOURCE0} %{buildroot}%{php_pearxmldir}/pear.symfony.com.xml
%post
if [ $1 -eq 1 ] ; then
%{__pear} channel-add %{php_pearxmldir}/pear.symfony.com.xml > /dev/null || :
else
%{__pear} channel-update %{php_pearxmldir}/pear.symfony.com.xml > /dev/null || :
fi
%postun
if [ $1 -eq 0 ] ; then
%{__pear} channel-delete pear.symfony.com > /dev/null || :
fi
%files
%{php_pearxmldir}/pear.symfony.com.xml
%changelog