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