%define upstream_name Horde_Xml_Wbxml %define xmldir %{_var}/lib/pear %define peardir %(pear config-get php_dir 2> /dev/null) Name: php-pear-%{upstream_name} Version: 1.0.3 Release: %mkrel 2 Summary: Horde_Xml_Wbxml provides an API for encoding and decoding WBXML documents used in SyncML and other wireless applications License: LGPL Group: Networking/Mail Url: http://pear.horde.org/package/%{upstream_name} Source0: Source0: http://pear.horde.org/get/%{upstream_name}-%{version}.tgz BuildArch: noarch Requires: php-pear Requires: php-pear-Horde_Util < 2.0.0 Conflicts: php-pear-Horde_Util = 2.0.0 BuildRequires: php-pear BuildRequires: php-pear-channel-horde Provides: php-pear-Horde_Xml_Wbxml = %{version} %description This package provides encoding and decoding of WBXML (Wireless Binary XML) documents. WBXML is used in SyncML for transferring smaller amounts of data with wireless devices. %prep %setup -c -T pear -v -c pearrc \ -d php_dir=%{peardir} \ -d doc_dir=/docs \ -d bin_dir=%{_bindir} \ -d data_dir=%{peardir}/data \ -d test_dir=%{peardir}/tests \ -d ext_dir=%{_libdir} \ -s %build %install rm -rf %{buildroot} pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} # Clean up unnecessary files rm pearrc rm %{buildroot}/%{peardir}/.filemap rm %{buildroot}/%{peardir}/.lock rm -rf %{buildroot}/%{peardir}/.registry rm -rf %{buildroot}%{peardir}/.channels rm %{buildroot}%{peardir}/.depdb rm %{buildroot}%{peardir}/.depdblock mv %{buildroot}/docs . # Install XML package description mkdir -p %{buildroot}%{xmldir} tar -xzf %{SOURCE0} package.xml cp -p package.xml %{buildroot}%{xmldir}/Horde_Xml_Wbxml.xml %clean rm -rf %{buildroot} %post pear install --nodeps --soft --force --register-only %{xmldir}/Horde_Xml_Wbxml.xml %postun if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/Horde_Xml_Wbxml fi %files %defattr(-,root,root) %doc docs/Horde_Xml_Wbxml/* %{peardir}/Horde/Xml/Wbxml.php %{peardir}/Horde/Xml/Wbxml/ContentHandler.php %{peardir}/Horde/Xml/Wbxml/Decoder.php %{peardir}/Horde/Xml/Wbxml/Dtd.php %{peardir}/Horde/Xml/Wbxml/Dtd/SyncMl.php %{peardir}/Horde/Xml/Wbxml/Dtd/SyncMlDevInf.php %{peardir}/Horde/Xml/Wbxml/Dtd/SyncMlMetInf.php %{peardir}/Horde/Xml/Wbxml/DtdManager.php %{peardir}/Horde/Xml/Wbxml/Encoder.php %{peardir}/Horde/Xml/Wbxml/Exception.php %{peardir}/Horde/Xml/Wbxml/HashTable.php %{peardir}/Horde/Xml/Wbxml/LifoQueue.php %{peardir}/tests/Horde_Xml_Wbxml/Horde/Xml/Wbxml/AllTests.php %{peardir}/tests/Horde_Xml_Wbxml/Horde/Xml/Wbxml/Autoload.php %{peardir}/tests/Horde_Xml_Wbxml/Horde/Xml/Wbxml/DecodeTest.php %{xmldir}/Horde_Xml_Wbxml.xml %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.0.3-2.mga3 + Revision: 376715 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Nov 07 2011 spuhler <spuhler> 1.0.3-1.mga2 + Revision: 164747 - upgrade to 1.0.3 - Provides: php-pear-Horde_Xml_Wbxml Provides: php-pear-Horde_Xml_Wbxml = %%{version} changed in Requires: <+ to < - imported package php-pear-Horde_Xml_Wbxml