3 %bcond_without tests # do not perform "make test"
7 Summary: Chart::Plot - plot two dimensional data in an image
8 Summary(pl.UTF-8): Chart::Plot - gaficzne przedstawianie dwuwymiarowych dane
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 22105348d7ff33603e37fb470c0ce003
17 URL: http://search.cpan.org/dist/Chart-Plot/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-GD
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 I wrote Chart::Plot to create images of some simple graphs of two
28 dimensional data. The other graphing interface modules to GD.pm I saw
29 on CPAN either could not handle negative data, or could only chart
30 evenly spaced horizontal data. (If you have evenly spaced or nonmetric
31 horizontal data and you want a bar or pie chart, I have successfully
32 used the GIFgraph and Chart::* modules, available on CPAN.)
34 %description -l pl.UTF-8
35 Ten moduł został napisany do tworzenia obrazów zawierających wykresy
36 dwuwymiarowych danych. Inne znane autorowi interfejsy do GD.pm nie
37 potrafiły obsłużyć danych ujemnych, albo potrafiły przedstawiać tylko
38 dane o równym rozkładzie (do przedstawienia danych o równym rozkładzie
39 lub poziomych niemetrycznych danych na wykresie słupkowym lub kołowym
40 wystarcza moduł GIFgraph i moduły Chart::* dostępne w CPAN).
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a demo.cgi $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %{perl_vendorlib}/%{pdir}/*.pm
67 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}