%define name phplot %define version 4.4.6 %define release 3mdk Summary: Dynamic plots, charts, and graphs in PHP Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 License: BSD Url: http://www.phplot.com/ Group: Networking/Other BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: php-session php-gd BuildArch: noarch %description A graph library for dynamic scientific, business, and stock-market charts. Written in PHP and supports, PHP3, PHP4, TTF (or no ttf), and GD versions 1.2 - latest version. Includes Pie, Bar, Line, Area, Point and combination plots. %prep %setup -q %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} # (misc) once 5.0 is out, change this ( => /usr/share ), i do not want to break a package # that is working. install -d %{buildroot}%{_libdir}/phplot install -m644 *.php %{buildroot}%{_libdir}/phplot/ install -m644 *.ttf %{buildroot}%{_libdir}/phplot/ %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc README.txt doc examples %{_libdir}/phplot/ %changelog * Thu Apr 01 2004 Michael Scherer <misc@mandrake.org> 4.4.6-3mdk - build release - clean Requires - [DIRM] * Thu Jan 16 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 4.4.6-2mdk - build release * Sun Jun 2 2002 <oden.eriksson@kvikkjokk.net> 4.4.6-1mdk - initial cooker contrib