]> git.pld-linux.org Git - packages/phplot.git/blob - phplot.spec
- use virtual php deps
[packages/phplot.git] / phplot.spec
1 # NOTES
2 #  - draws unwanted, additional X labels in comparison with 4.4.6
3
4 %define         manual 20120406
5 %define         php_min_version 5.2.0
6 %include        /usr/lib/rpm/macros.php
7 Summary:        Class for creating esientific and business charts
8 Summary(pl.UTF-8):      Klasa do tworzenia naukowych i biznesowych wykresów
9 Name:           phplot
10 Version:        5.8.0
11 Release:        5
12 License:        LGPL v2.1, PHP
13 Group:          Libraries
14 Source0:        http://downloads.sourceforge.net/phplot/%{name}-%{version}.tar.gz
15 # Source0-md5:  68455792781f35ff166697f29e0c822c
16 Source1:        http://downloads.sourceforge.net/phplot/%{name}docs-%{manual}.zip
17 # Source1-md5:  a9f513261fe98dc3ba61ff7f41c1eeea
18 URL:            http://phplot.sourceforge.net/
19 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
20 BuildRequires:  rpmbuild(macros) >= 1.461
21 BuildRequires:  unzip
22 Requires:       php(core) >= %{php_min_version}
23 Requires:       php(date)
24 Requires:       php(gd)
25 Requires:       php(pcre)
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _phpdocdir      %{_docdir}/phpdoc
30
31 %description
32 PHPlot is a graph library for dynamic scientific, business, and
33 stock-market charts. PHPlot allows PHP developers to create pie
34 charts, bar graphs, line graphs, point graphs, etc. from a PHP
35 application.
36
37 Optionally uses TrueType (TTF) fonts. Includes Pie, Bar, Line, Area,
38 Point and other plot types.
39
40 %description -l pl.UTF-8
41 Klasa do tworzenia naukowych i biznesowych wykresów.
42
43 %package phpdoc
44 Summary:        Online manual for phplot
45 Summary(pl.UTF-8):      Dokumentacja online do phplot
46 Group:          Documentation
47 Requires:       php-dirs
48
49 %description phpdoc
50 Documentation for phplot.
51
52 %description phpdoc -l pl.UTF-8
53 Dokumentacja do phplot.
54
55 %prep
56 %setup -q -a1
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_data_dir}/%{name}
61 cp -a *.php $RPM_BUILD_ROOT%{php_data_dir}/%{name}
62
63 install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
64 cp -a phplotdocs/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
65
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 cp -a contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc ChangeLog NEWS* README*
75 %{php_data_dir}/%{name}
76 %{_examplesdir}/%{name}-%{version}
77
78 %files phpdoc
79 %defattr(644,root,root,755)
80 %{_phpdocdir}/%{name}
This page took 0.086506 seconds and 4 git commands to generate.