Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > d9d1178212a75c93050b9304eb20dde6 > files > 1

JpGraph-1.8-1mdk.src.rpm

%define name	JpGraph
%define version	1.8
%define release	1mdk

Summary:	An OO graph drawing class library for PHP
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	jpgraph%{version}.tar.bz2
License:	QPL
Url:		http://www.aditus.nu/jpgraph/
Group:		Networking/Other
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
Requires:	php php-common php-gd gd
BuildArch:	noarch

%description
JpGraph is a OO Graph drawing library for PHP 4.0.2 and
above. Highlights of the available features are: text,
linear, and log scales for both the X and Y axes,
anti-aliasing of lines, color-gradient fills, support
for GIF, JPG, and PNG formats, support for two Y axes,
spider plots (a.k.a Web plots), pie-charts, lineplots,
filled line plots, impulse plots, bar plots, and error
plots, support for multiple plot types in one graph,
intelligent autoscaling.

Extensive documentations are availible at:
http://www.aditus.nu/jpgraph/

%prep

%setup -q -n jpgraph-%{version}

# this is in docs too (!)
rm -rf src/Examples

mv src/Changelog .
mv src/utils/Readme README.utils
mv src/utils/jpdocgen/README README.jpdocgen

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_libdir}/jpgraph
cp -aRf src/* %{buildroot}%{_libdir}/jpgraph/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc QPL.txt README* Changelog
%doc docs/manual/html docs/manual/ref docs/DDDA
%{_libdir}/jpgraph/*

%changelog
* Thu Sep 19 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.8-1mdk
- new version
- misc spec file fixes
- do not require non existant php extensions

* Wed Jul 10 2002 <oden.eriksson@kvikkjokk.net> 1.7-1mdk
- new version

* Sun Jun  2 2002 <oden.eriksson@kvikkjokk.net> 1.6.3-1mdk
- initial cooker contrib