]> git.pld-linux.org Git - SPECS.git/blob - perl-Chart-Plot.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / perl-Chart-Plot.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Chart
6 %define         pnam    Plot
7 Summary:        Chart::Plot - plot two dimensional data in an image
8 Summary(pl.UTF-8):      Chart::Plot - gaficzne przedstawianie dwuwymiarowych dane
9 Name:           perl-Chart-Plot
10 Version:        0.11
11 Release:        5
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-GD
22 %endif
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.379056 seconds and 3 git commands to generate.