]>
Commit | Line | Data |
---|---|---|
2f024a7c | 1 | Summary: Class for creating esientific and business charts |
f74a7877 | 2 | Summary(pl.UTF-8): Klasa do tworzenia naukowych i biznesowych wykresów |
b39c2b98 | 3 | Name: php-jpgraph1 |
e7863c85 ER |
4 | Version: 1.27.1 |
5 | Release: 1 | |
f2c11fa9 | 6 | License: QPL 1.0 |
c57cb067 | 7 | Group: Libraries |
e7863c85 ER |
8 | Source0: http://jpgraph.net/download/download.php?p=%{version}&/jpgraph-%{version}.tar.gz |
9 | # Source0-md5: d1d02e8a62b1db42848645973813ca4b | |
ff5507ab | 10 | Patch0: jpgraph-config.patch |
e7863c85 | 11 | URL: http://www.jpgraph.net/ |
f2468a7a ER |
12 | BuildRequires: rpmbuild(macros) >= 1.461 |
13 | BuildRequires: sed >= 4.0 | |
c57cb067 | 14 | Requires: %{_datadir}/fonts/TTF |
e7863c85 | 15 | Requires: php(core) >= 4.4.1 |
c57cb067 | 16 | Requires: php(gd) |
ff5507ab AM |
17 | Provides: jpgraph = %{version}-%{release} |
18 | Obsoletes: jpgraph < 2.0 | |
2f024a7c AM |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
b39c2b98 | 22 | %define _appdir %{php_data_dir}/jpgraph1 |
2f024a7c AM |
23 | |
24 | %description | |
25 | JpGraph is a fully OO graph library which makes it easy to both draw a | |
26 | "quick and dirty" graph with a minimum of code and quite complex | |
27 | graphs which requires a very fine grain of control. The library tries | |
28 | to assign sensible default values for most parameters hence making the | |
29 | learning curve quite flat since for most of the time very few commands | |
30 | is required to draw graphs with a pleasing aesthetic look. | |
31 | ||
2dda2ed6 JR |
32 | %description -l pl.UTF-8 |
33 | JpGraph to w pełni obiektowo zorientowana biblioteka ułatwiająca | |
34 | tworzenie zarówno prostych (,,na szybko'') jak i skomplikowanych, | |
35 | wymagających precyzji grafik. Biblioteka próbuje przypisać sensowne | |
36 | wartości domyślne dla większości parametrów, aby uczynić krzywą nauki | |
37 | w miarę płaską, jako że w większości przypadków wystarcza użycie kilku | |
38 | poleceń do rysowania estetycznie wyglądających grafik. | |
93197d3d | 39 | |
2f024a7c | 40 | %prep |
ff5507ab | 41 | %setup -q -n jpgraph-%{version} |
2f024a7c AM |
42 | %patch0 -p1 |
43 | ||
f2468a7a ER |
44 | mv src/Examples . |
45 | ||
46 | # cleanup backups after patching | |
47 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
48 | ||
2f024a7c AM |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
f2468a7a ER |
51 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}} |
52 | cp -a src/* $RPM_BUILD_ROOT%{_appdir} | |
53 | cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
2f024a7c | 54 | |
2f024a7c AM |
55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
e7863c85 | 60 | %doc README* docs/* |
f2468a7a ER |
61 | %{_appdir} |
62 | %{_examplesdir}/%{name}-%{version} |