]>
Commit | Line | Data |
---|---|---|
27c41d0a | 1 | # |
2 | # Conditional build: | |
a02cfa96 | 3 | %bcond_without tests # do not perform "make test" |
7e26262c | 4 | |
f4083b87 | 5 | %define pdir CGI |
6 | %define pnam Graph | |
7e26262c | 7 | %include /usr/lib/rpm/macros.perl |
91a0c240 | 8 | Summary: CGI::Graph - create interactive CGI-based graphs |
d13d6f8a | 9 | Summary(pl.UTF-8): CGI::Graph - tworzenie interaktywnych wykresów w oparciu o CGI |
27c41d0a | 10 | Name: perl-CGI-Graph |
11 | Version: 0.93 | |
1bb0bb09 | 12 | Release: 5 |
20c0a970 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
27c41d0a | 15 | Group: Development/Languages/Perl |
e6d34ece | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}%{pnam}-%{version}.tar.gz |
6cfac56e | 17 | # Source0-md5: e18432d8462620a390ac8f686977ad43 |
7e26262c | 18 | URL: http://search.cpan.org/dist/CGI-Graph/ |
061f79b0 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
7e26262c | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
a02cfa96 | 21 | %if %{with tests} |
27c41d0a | 22 | BuildRequires: perl-CGI |
23 | BuildRequires: perl-Data-Table | |
24 | BuildRequires: perl-GD | |
25 | BuildRequires: perl-GD-Graph | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | This module creates CGI graphs which allow the user to visualize | |
32 | spreadsheet data using scatter plots, bar plots, histograms, etc. It | |
33 | provides features for easy interactions such as panning, zooming, | |
34 | element selection, and axis selection. | |
35 | ||
150dbac5 JR |
36 | %description -l pl.UTF-8 |
37 | Ten moduł tworzy wykresy CGI, pozwalające na wizualizację danych z | |
38 | arkuszy kalkulacyjncyh przy użyciu wykresów rozproszonych, słupkowych, | |
39 | histogramów itp. Daje możliwość łatwej interakcji takiej jak | |
40 | przesuwanie, powiększanie, wybieranie elementów i osi. | |
27c41d0a | 41 | |
42 | %prep | |
43 | %setup -q -n %{pdir}%{pnam}-%{version} | |
44 | ||
45 | %build | |
3c4c67a3 | 46 | %{__perl} Makefile.PL \ |
4cd5482b | 47 | INSTALLDIRS=vendor |
27c41d0a | 48 | %{__make} |
49 | ||
a02cfa96 | 50 | %{?with_tests:%{__make} test} |
27c41d0a | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
264bca9d | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
27c41d0a | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
3c4c67a3 | 63 | %{perl_vendorlib}/%{pdir}/*.pm |
64 | %{perl_vendorlib}/%{pdir}/%{pnam} | |
27c41d0a | 65 | %{_mandir}/man3/* |