]> git.pld-linux.org Git - packages/php-jpgraph1.git/blob - php-jpgraph1.spec
0ece1939600cbb69b8b90c642c3fda9b400a04df
[packages/php-jpgraph1.git] / php-jpgraph1.spec
1 Summary:        Class for creating esientific and business charts
2 Summary(pl.UTF-8):      Klasa do tworzenia naukowych i biznesowych wykresów
3 Name:           php-jpgraph1
4 Version:        1.26
5 Release:        2
6 License:        QPL 1.0
7 Group:          Libraries
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
14 BuildRequires:  unzip
15 Requires:       %{_datadir}/fonts/TTF
16 Requires:       php(core) >= 4.3.8
17 Requires:       php(gd)
18 Provides:       jpgraph = %{version}-%{release}
19 Obsoletes:      jpgraph < 2.0
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _appdir         %{php_data_dir}/jpgraph1
24
25 %description
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.
32
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.
40
41 %prep
42 %setup  -q -n jpgraph-%{version}
43 %patch0 -p1
44
45 mv src/*.txt .
46 mv src/Examples .
47
48 # cleanup backups after patching
49 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
50
51 %install
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}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README* docs/* CHANGELOG*.txt
63 %{_appdir}
64 %{_examplesdir}/%{name}-%{version}
This page took 0.070804 seconds and 2 git commands to generate.