1 # $Id: php-jpgraph.spec 4308 2006-04-21 22:20:20Z dries $
4 %define real_name jpgraph
6 Summary: OO Graph Library for PHP
11 Group: Development/Languages
12 URL: http://www.aditus.nu/jpgraph/
14 Source: http://members.chello.se/jpgraph/jpgdownloads/jpgraph-%{version}.tar.gz
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
22 Patch0: libphp-jpgraph_1.5.2-12.diff
23 Patch1: jpgraph-rhel-fonts.patch
27 JpGraph is an OO class library for PHP 4.1 (or higher). JpGraph makes it
28 easy to draw both "quick and dirty" graphs with a minimum of code and
29 complex professional graphs which requires a very fine grain control.
31 JpGraph is equally well suited for both scientific and business type of graphs.
33 An important feature of the library is that it assigns context sensitive
34 default values for most of the parameters which radically minimizes the
35 learning curve. The features are there when you need it - they don't get
36 in your way when you don't need them!
39 Summary: Documentation for package %{name}
43 JpGraph is an OO class library for PHP 4.1 (or higher). JpGraph makes it
44 easy to draw both "quick and dirty" graphs with a minimum of code and
45 complex professional graphs which requires a very fine grain control.
47 This package includes the documentation for %{name}.
50 %setup -n %{real_name}-%{version}
54 ### Change the default TTF_DIR to Red Hat's TTF_DIR.
55 %{__perl} -pi.orig -e 's|/usr/X11R6/lib/X11/fonts/truetype/|/usr/X11R6/lib/X11/fonts/TTF/|' src/jpgraph.php
60 %{__rm} -rf %{buildroot}
61 %{__install} -d -m0755 %{buildroot}%{_datadir}/%{real_name}
62 %{__install} -p -m0644 src/jpgraph*.php %{buildroot}%{_datadir}/%{real_name}/
65 %{__rm} -rf %{buildroot}
68 %defattr(-, root, root, 0755)
70 %{_datadir}/%{real_name}/
73 %defattr(-, root, root, 0755)
77 * Mon Mar 29 2010 Alain Peyrat <aljeux@free.fr> - 1.5.2-1
78 - Initial package, spec taken from DAG.