2 # - draws unwanted, additional X labels in comparison with 4.4.6
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
12 License: LGPL v2.1, PHP
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
22 Requires: php(core) >= %{php_min_version}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _phpdocdir %{_docdir}/phpdoc
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
37 Optionally uses TrueType (TTF) fonts. Includes Pie, Bar, Line, Area,
38 Point and other plot types.
40 %description -l pl.UTF-8
41 Klasa do tworzenia naukowych i biznesowych wykresów.
44 Summary: Online manual for phplot
45 Summary(pl.UTF-8): Dokumentacja online do phplot
50 Documentation for phplot.
52 %description phpdoc -l pl.UTF-8
53 Dokumentacja do phplot.
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}
63 install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
64 cp -a phplotdocs/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 cp -a contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc ChangeLog NEWS* README*
75 %{php_data_dir}/%{name}
76 %{_examplesdir}/%{name}-%{version}
79 %defattr(644,root,root,755)