3 %bcond_with svga # build with svgalib output support
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
9 Summary: Term::Gnuplot - lowlevel graphics using gnuplot drawing routines
10 Summary(pl.UTF-8): Term::Gnuplot - niskopoziomowa grafika przy użyciu funkcji rysujących gnuplota
11 Name: perl-Term-Gnuplot
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: ceccd4e30deb6291ebecce176e715208
19 Patch0: %{name}-vga.patch
20 Patch1: format-security.patch
21 URL: http://search.cpan.org/dist/Term-Gnuplot/
22 BuildRequires: gd-devel
23 BuildRequires: perl-devel >= 1:5.8.0
24 %{?with_svga:BuildRequires: svgalib-devel}
25 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRequires: xorg-lib-libX11-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module is intended for low-resolution or high-resolution graphics
31 using gnuplot low-level functions.
33 %description -l pl.UTF-8
34 Ten moduł jest przeznaczony do tworzenia grafiki niskiej lub wysokiej
35 rozdzielczości przy użyciu niskopoziomowych funkcji gnuplota.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
44 TRY_LIBS="-lX11 -lm -lgd -lpng -lz %{?with_svga:-lvga}" \
48 OPTIMIZE="%{rpmcflags}"
50 %{?with_tests:%{__make} test </dev/null}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorarch}/Term/Gnuplot.pm
65 %dir %{perl_vendorarch}/auto/Term/Gnuplot
66 %{perl_vendorarch}/auto/Term/Gnuplot/Gnuplot.bs
67 %attr(755,root,root) %{perl_vendorarch}/auto/Term/Gnuplot/Gnuplot.so
68 %{_mandir}/man3/Term::Gnuplot*