]> git.pld-linux.org Git - SPECS.git/blob - php-jpgraph1.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.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.27.1
5 Release:        1
6 License:        QPL 1.0
7 Group:          Libraries
8 Source0:        http://jpgraph.net/download/download.php?p=%{version}&/jpgraph-%{version}.tar.gz
9 # Source0-md5:  d1d02e8a62b1db42848645973813ca4b
10 Patch0:         jpgraph-config.patch
11 URL:            http://www.jpgraph.net/
12 BuildRequires:  rpmbuild(macros) >= 1.461
13 BuildRequires:  sed >= 4.0
14 Requires:       %{_datadir}/fonts/TTF
15 Requires:       php(core) >= 4.4.1
16 Requires:       php(gd)
17 Provides:       jpgraph = %{version}-%{release}
18 Obsoletes:      jpgraph < 2.0
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _appdir         %{php_data_dir}/jpgraph1
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
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.
39
40 %prep
41 %setup  -q -n jpgraph-%{version}
42 %patch0 -p1
43
44 mv src/Examples .
45
46 # cleanup backups after patching
47 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
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}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README* docs/*
61 %{_appdir}
62 %{_examplesdir}/%{name}-%{version}
This page took 0.205721 seconds and 3 git commands to generate.