1 Summary: Class for creating esientific and business charts
2 Summary(pl.UTF-8): Klasa do tworzenia naukowych i biznesowych wykresów
8 Source0: http://hem.bredband.net/jpgraph/jpgraph-%{version}.tar.gz
9 # Source0-md5: 13bd871fb1a405ae1bbf9c02ae5a35ac
10 Patch0: jpgraph-config.patch
11 URL: http://www.aditus.nu/jpgraph/
12 BuildRequires: rpmbuild(macros) >= 1.461
13 BuildRequires: sed >= 4.0
15 Requires: %{_datadir}/fonts/TTF
16 Requires: php(core) >= 4.3.8
18 Provides: jpgraph = %{version}-%{release}
19 Obsoletes: jpgraph < 2.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _appdir %{php_data_dir}/jpgraph1
26 JpGraph is a fully OO graph library which makes it easy to both draw a
27 "quick and dirty" graph with a minimum of code and quite complex
28 graphs which requires a very fine grain of control. The library tries
29 to assign sensible default values for most parameters hence making the
30 learning curve quite flat since for most of the time very few commands
31 is required to draw graphs with a pleasing aesthetic look.
33 %description -l pl.UTF-8
34 JpGraph to w pełni obiektowo zorientowana biblioteka ułatwiająca
35 tworzenie zarówno prostych (,,na szybko'') jak i skomplikowanych,
36 wymagających precyzji grafik. Biblioteka próbuje przypisać sensowne
37 wartości domyślne dla większości parametrów, aby uczynić krzywą nauki
38 w miarę płaską, jako że w większości przypadków wystarcza użycie kilku
39 poleceń do rysowania estetycznie wyglądających grafik.
42 %setup -q -n jpgraph-%{version}
48 # cleanup backups after patching
49 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
54 cp -a src/* $RPM_BUILD_ROOT%{_appdir}
55 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc README* docs/* CHANGELOG*.txt
64 %{_examplesdir}/%{name}-%{version}