# spec file for php-channel-horde # # Copyright (c) 2012-2018 Nick Bebout, Remi Collet # # License: MIT # https://fedoraproject.org/wiki/Licensing:MIT#Modern_Style_with_sublicense # # Please, preserve the changelog entries # %{?scl: %scl_package php-channel-horde} %{!?__pear: %global __pear %{_bindir}/pear} %global pear_channel pear.horde.org Name: %{?scl_prefix}php-channel-horde Version: 1.0 Release: 12%{?dist} Summary: Adds %{pear_channel} channel to PEAR Group: Development/Languages License: Public Domain URL: http://www.horde.org/ Source0: http://%{pear_channel}/channel.xml BuildArch: noarch BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php-pear(PEAR) Requires(post): %{__pear} Requires(postun): %{__pear} Provides: %{?scl_prefix}php-channel(%{pear_channel}) %description This package adds the %{pear_channel} channel which allows PEAR packages from this channel to be installed. %prep %setup -q -c -T %build # Empty build section, nothing to build %install install -Dpm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/%{name}.xml %post if [ $1 -eq 1 ] ; then %{__pear} channel-add %{pear_xmldir}/%{name}.xml > /dev/null || : else %{__pear} channel-update %{pear_xmldir}/%{name}.xml > /dev/null ||: fi %postun if [ $1 -eq 0 ] ; then %{__pear} channel-delete %{pear_channel} > /dev/null || : fi %files %{pear_xmldir}/%{name}.xml %changelog * Sat Dec 1 2018 Remi Collet - 1.0-12 - cleanup * Mon Sep 15 2014 Remi Collet - 1.0-2 - allow SCL build * Mon Feb 20 2012 Remi Collet - 1.0-1 - backport for remi repo * Sat Jan 28 2012 Nick Bebout - 1.0-1 - Initial package