%define prj Horde_SessionHandler %define xmldir %{_var}/lib/pear %define peardir %(pear config-get php_dir 2> /dev/null) Name: horde-sessionhandler Version: 0.0.3 Release: %mkrel 3 Summary: Horde Session Storage 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-sql Requires: php-pear Requires: php-pear-channel-horde BuildRequires: php-pear BuildRequires: php-pear-channel-horde %description The Horde_SessionObjects:: class provides a way for storing data (usually, but not necessarily, objects) in the current user's session. %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/SessionHandler %{peardir}/Horde/SessionHandler.php %{peardir}/Horde/SessionHandler/dbm.php %{peardir}/Horde/SessionHandler/ldap.php %{peardir}/Horde/SessionHandler/memcache.php %{peardir}/Horde/SessionHandler/mysql.php %{peardir}/Horde/SessionHandler/none.php %{peardir}/Horde/SessionHandler/oci8.php %{peardir}/Horde/SessionHandler/pgsql.php %{peardir}/Horde/SessionHandler/sapdb.php %{peardir}/Horde/SessionHandler/sql.php %changelog * Mon Jan 10 2011 spuhler <spuhler> 0.0.3-3.mga1 + Revision: 5118 - imported package horde-sessionhandler * Sat Jul 31 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.3-3mdv2011.0 + Revision: 564098 - Increased release for rebuild * Wed Mar 17 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.3-2mdv2010.1 + Revision: 523031 - replaced Requires(pre): %%{_bindir}/pear with Requires(pre): php-pear increased releas version * Sat Feb 27 2010 Thomas Spuhler <tspuhler@mandriva.org> 0.0.3-1mdv2010.1 + Revision: 512491 - added Requires: php-pear-channel-horde - removed BuildRequires: horde-framework - import horde-sessionhandler