Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 1cf6f3311a939b0eb48863dddb2802c2 > files > 2

php-pear-channel-horde-1.0-5mdv2010.1.src.rpm

%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define pear_xmldir  /var/lib/pear

Name:           php-pear-channel-horde
Version:        1.0
Release:        %mkrel 5
Summary:        Adds pear.horde.org channel to PEAR
Group:          System/Libraries
License:        BSD
URL:            http://pear.horde.org/
Source0:        http://pear.horde.org/channel.xml
BuildArch:      noarch
BuildRequires:  php-pear >= 5.1.1
Requires:	php-mbstring
Requires:	php-mysql
Requires:	php-session
Requires:	php-sysvsem
Requires:	php-tokenizer
BuildRoot:      %{_tmppath}/%{name}-%{version}


%description
This package adds the pear.horde.org channel which allows PEAR packages
from this channel to be installed.


%prep
%setup -q -c -T


%build
# Empty build section, nothing to build


%install

%{__mkdir_p} %{buildroot}%{pear_xmldir}
%{__install} -pm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/pear.horde.org.xml


%clean

%{__rm} -rf %{buildroot}


%post

if [ $1 -eq  1 ] ; then
   pear channel-add %{pear_xmldir}/pear.horde.org.xml > /dev/null || :
else
   pear channel-update %{pear_xmldir}/pear.horde.org.xml > /dev/null ||:
fi


%postun

if [ $1 -eq 0 ] ; then
   pear channel-delete pear.horde.org.xml > /dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/pear.horde.org.xml




%changelog
* Thu May 06 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0-5mdv2010.1
+ Revision: 543021
- try to fix a problem reported by Thomas Spuhler

* Sun Feb 21 2010 Thomas Spuhler <tspuhler@mandriva.org> 1.0-4mdv2010.1
+ Revision: 509253
- updated rel to 4
-added nl at the end of channel.xml

* Sun Feb 14 2010 Thomas Spuhler <tspuhler@mandriva.org> 1.0-3mdv2010.1
+ Revision: 505666
- increase version to move to main

* Sat Feb 13 2010 Thomas Spuhler <tspuhler@mandriva.org> 1.0-2mdv2010.1
+ Revision: 505541
-- dealed PreRequ line. It's php-pear is always installed on our system
- PreReq was  php  php-pear >= 5.1.1
- added buildroot line
- corrected Group name
- intital build for kolab-filter
- import php-pear-channel-horde