]> git.pld-linux.org Git - packages/perl-Chart-Plot.git/blob - perl-Chart-Plot.spec
630830e106ac10796f90544f368adc992eb925e5
[packages/perl-Chart-Plot.git] / perl-Chart-Plot.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Chart
7 %define         pnam    Plot
8 Summary:        Chart::Plot - plot two dimensional data in an image
9 Summary(pl.UTF-8):      Chart::Plot - gaficzne przedstawianie dwuwymiarowych dane
10 Name:           perl-Chart-Plot
11 Version:        0.11
12 Release:        5
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  22105348d7ff33603e37fb470c0ce003
18 BuildRequires:  perl-devel >= 1:5.8.0
19 %if %{with tests}
20 BuildRequires:  perl-GD
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.)
33
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).
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a demo.cgi $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %{perl_vendorlib}/%{pdir}/*.pm
67 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
68 %{_mandir}/man3/*
This page took 0.076839 seconds and 2 git commands to generate.