]>
Commit | Line | Data |
---|---|---|
df7804cf | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
70ee1b2a | 4 | |
669313ee | 5 | %define pdir GD |
6 | %define pnam Graph3d | |
70ee1b2a | 7 | %include /usr/lib/rpm/macros.perl |
abc7fbb6 | 8 | Summary: GD::Graph3d - create 3D graphs with GD and GD::Graph |
d7ccc82f | 9 | Summary(pl.UTF-8): GD::Graph3d - tworzenie grafów trójwymiarowych z pomocą GD i GD::Graph |
d8272581 | 10 | Name: perl-GD-Graph3d |
a5304461 | 11 | Version: 0.63 |
f214e417 | 12 | Release: 3 |
85b281af | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
d8272581 | 15 | Group: Development/Languages/Perl |
36503d08 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
37143b51 | 17 | # Source0-md5: f866dcdd1e7e2056bb946ab7ac3fe37b |
70ee1b2a | 18 | URL: http://search.cpan.org/dist/GD-Graph3d/ |
591f3c2d JB |
19 | BuildRequires: perl-GD >= 1.18 |
20 | BuildRequires: perl-GD-Graph >= 1.30 | |
d8272581 | 21 | BuildRequires: perl-GD-TextUtil |
70ee1b2a | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
833779d0 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
d8272581 | 24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
70ee1b2a ER |
28 | This is the GD::Graph3d extensions module. It provides 3D graphs for |
29 | the GD::Graph module by Martien Verbruggen, which in turn generates | |
30 | graph using Lincoln Stein's GD.pm. | |
d8272581 | 31 | |
0c0e8969 JR |
32 | %description -l pl.UTF-8 |
33 | To jest moduł GD::Graph3d. Dodaje wykresy 3D do modułu GD::Graph | |
34 | autorstwa Martiena Verbruggena, który generuje wykresy przy użyciu | |
35 | modułu GD.pm autorstwa Lincolna Steina. | |
1ad008b0 | 36 | |
d8272581 | 37 | %prep |
123a78cc | 38 | %setup -q -n %{pdir}-%{pnam}-%{version} |
d8272581 | 39 | |
40 | %build | |
833779d0 | 41 | %{__perl} Makefile.PL \ |
6efe510f | 42 | INSTALLDIRS=vendor |
d8272581 | 43 | %{__make} |
44 | ||
df7804cf | 45 | %{?with_tests:%{__make} test} |
46 | ||
d8272581 | 47 | %install |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
df7804cf | 50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
d8272581 | 52 | |
d8272581 | 53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
ee12fac7 | 58 | %doc Changes |
833779d0 | 59 | %{perl_vendorlib}/GD/Graph3d.pm |
60 | %{perl_vendorlib}/GD/Graph/* | |
d8272581 | 61 | %{_mandir}/man3/* |