Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > ccf18e652cbd555956a71c556a921331 > files > 2

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

%define prj    Horde_Serialize

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

Name:          horde-serialize
Version:       0.0.2
Release:       %mkrel 3
Summary:       Data Encapulation API
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-util
BuildRequires: php-pear
BuildRequires: php-pear-channel-horde


%description
The Serialize:: class provides various methods of encapsulating data.


%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/Serialize
%{peardir}/Horde/Serialize.php
%{peardir}/Horde/Serialize/JSON.php




%changelog
* Mon Jan 10 2011 spuhler <spuhler> 0.0.2-3.mga1
+ Revision: 5113
- imported package horde-serialize


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

* Wed Mar 17 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.2-2mdv2010.1
+ Revision: 523032
- replaced Requires(pre): %%{_bindir}/pear with Requires(pre): php-pear
  increased release version

* Thu Feb 25 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.2-1mdv2010.1
+ Revision: 510883
- removed BuildRequires: horde-framework
- removed BuildRequires: horde-framework
- import horde-serialize