%define _class HTML %define _subclass Table %define _status stable %define _pearname %{_class}_%{_subclass}_Matrix Summary: %{_pearname} - autofill a table with data Name: php-pear-%{_pearname} Version: 1.0.9 Release: %mkrel 2 License: PHP License Group: Development/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tar.bz2 URL: http://pear.php.net/package/HTML_Table_Matrix/ Requires(post): php-pear Requires(preun): php-pear Requires: php-pear BuildArch: noarch BuildRequires: dos2unix BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description HTML_Table_Matrix is an extension to HTML_Table which allows you to easily fill up a table with data. Features: - It uses Filler classes to determine how the data gets filled in the table. With a custom Filler, you can fill data in up, down, forwards, backwards, diagonally, randomly or any other way you like. - Comes with Fillers to fill left-to-right-top-to-bottom and right-to-left-top-to-bottom. - Abstract Filler methods keep the code clean & easy to understand. - Table height or width may be omitted, and it will figure out the correct table size based on the data you provide. - It integrates handily with Pager to create pleasant pageable table layouts, such as for an image gallery. Just specify a height or width, Filler, and feed it the data returned from Pager. - Table may be constrained to a specific height or width, and excess data will be ignored. - Fill offset may be specified, to leave room for a table header, or other elements in the table. - Fully documented with PHPDoc. - Includes fully functional example code. In PEAR status of this package is: %{_status}. %prep %setup -q -c find . -type d -perm 0700 -exec chmod 755 {} \; find . -type f -perm 0555 -exec chmod 755 {} \; find . -type f -perm 0444 -exec chmod 644 {} \; for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null done # strip away annoying ^M find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix -U %install rm -rf %{buildroot} install -d %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass}/Matrix/Filler install %{_pearname}-%{version}/*.php %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass} install %{_pearname}-%{version}/Matrix/*.php %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass}/Matrix install %{_pearname}-%{version}/Matrix/Filler/*.php %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass}/Matrix/Filler install -d %{buildroot}%{_datadir}/pear/packages install -m0644 package.xml %{buildroot}%{_datadir}/pear/packages/%{_pearname}.xml %post if [ "$1" = "1" ]; then if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then %{_bindir}/pear install --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml fi fi if [ "$1" = "2" ]; then if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then %{_bindir}/pear upgrade -f --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml fi fi %preun if [ "$1" = 0 ]; then if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then %{_bindir}/pear uninstall --nodeps -r %{_pearname} fi fi %clean rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc %{_pearname}-%{version}/examples %{_datadir}/pear/%{_class}/%{_subclass}/Matrix.php %{_datadir}/pear/%{_class}/%{_subclass}/Matrix %{_datadir}/pear/packages/%{_pearname}.xml %changelog * Sun Nov 12 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.9-2mdv2007.0 + Revision: 83325 - rebuild * Sat Nov 11 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.9-1mdv2007.1 + Revision: 81686 - Import php-pear-HTML_Table_Matrix * Fri Feb 10 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.9-1mdk - 1.0.9 - new group (Development/PHP) * Thu Sep 22 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.8-1mdk - 1.0.8 * Fri Aug 26 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.7-4mdk - rebuilt to fix auto deps * Wed Aug 10 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.7-3mdk - rebuilt to use new pear auto deps/reqs from pld * Sun Jul 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.7-2mdk - fix deps * Thu Jul 21 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.7-1mdk - 1.0.7 * Thu Jul 21 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-3mdk - reworked the %%post and %%preun stuff, like in conectiva - fix deps * Wed Jul 20 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-2mdk - fix deps * Tue Jul 19 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-1mdk - initial Mandriva package (PLD import)