Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 64955fb7a7e16386fba731a6904394e4 > files > 2

horde-block-0.0.2-3.mga1.src.rpm

%define prj     Horde_Block

%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name:		horde-block
Version:	0.0.2
Release:	%mkrel 3
Summary:	Horde Browser package
License:	LGPL
Group:		Networking/Mail
Url:		http://pear.horde.org/index.php?package=%{prj}
Source0:	%{prj}-%{version}.tgz
BuildArch:	noarch
Requires(pre):  php-pear
Requires:	horde-framework
Requires:	horde-util
Requires:	php-gettext
BuildRequires:	php-pear
BuildRequires:	php-pear-channel-horde


%description
The Horde_Block API provides a mechanism for displaying content
blocks from numerous Horde applications or other sources,
manipulating those blocks, configuring them, etc

%prep
%setup -q -n %{prj}-%{version}

%build
%__mv ../package.xml .

%install
pear install --packagingroot %{buildroot} --nodeps package.xml

%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}

%__mkdir_p %{buildroot}%{xmldir}
%__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml

%clean
%__rm -rf %{buildroot}

%post
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml

%postun
if [ "$1" -eq "0" ]; then
  pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj}
fi

%files
%defattr(-, root, root)
%{xmldir}/%{prj}.xml
%dir %{peardir}/Horde
%dir %{peardir}/Horde/Block
%dir %{peardir}/Horde/Block/Layout/Manager.php
%dir %{peardir}/Horde/Block/Layout/View.php
%{peardir}/Horde/Block.php
%{peardir}/Horde/Block/Collection.php
%{peardir}/Horde/Block/UI.php





%changelog
* Sun Jan 09 2011 spuhler <spuhler> 0.0.2-3.mga1
+ Revision: 4654
- imported package horde-block


* Mon Jul 26 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.2-3mdv2011.0
+ Revision: 560513
- Increased release for rebuild

* Mon Jul 26 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.2-2mdv2011.0
+ Revision: 560452
- Increased release for rebuild

* Thu Mar 11 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.2-1mdv2010.1
+ Revision: 517660
- updated Description to upstream
- import horde-block