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 Source: libphp-jpgraph_%{version}.orig.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
23 Patch0: libphp-jpgraph_1.5.2-12.diff
24 Patch1: jpgraph-rhel-fonts.patch
28 JpGraph is an OO class library for PHP 4.1 (or higher). JpGraph makes it
29 easy to draw both "quick and dirty" graphs with a minimum of code and
30 complex professional graphs which requires a very fine grain control.
32 JpGraph is equally well suited for both scientific and business type of graphs.
34 An important feature of the library is that it assigns context sensitive
35 default values for most of the parameters which radically minimizes the
36 learning curve. The features are there when you need it - they don't get
37 in your way when you don't need them!
40 Summary: Documentation for package %{name}
44 JpGraph is an OO class library for PHP 4.1 (or higher). JpGraph makes it
45 easy to draw both "quick and dirty" graphs with a minimum of code and
46 complex professional graphs which requires a very fine grain control.
48 This package includes the documentation for %{name}.
51 %setup -n %{real_name}-%{version}
55 ### Change the default TTF_DIR to Red Hat's TTF_DIR.
56 %{__perl} -pi.orig -e 's|/usr/X11R6/lib/X11/fonts/truetype/|/usr/X11R6/lib/X11/fonts/TTF/|' src/jpgraph.php
61 %{__rm} -rf %{buildroot}
62 %{__install} -d -m0755 %{buildroot}%{_datadir}/%{real_name}
63 %{__install} -p -m0644 src/jpgraph*.php %{buildroot}%{_datadir}/%{real_name}/
66 %{__rm} -rf %{buildroot}
69 %defattr(-, root, root, 0755)
71 %{_datadir}/%{real_name}/
74 %defattr(-, root, root, 0755)
78 * Mon Mar 29 2010 Alain Peyrat <aljeux@free.fr> - 1.5.2-1
79 - Initial package, spec taken from DAG.