+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
Summary: PGPLOT perl module
Summary(pl): Modu³ perla PGPLOT
Name: perl-PGPLOT
Version: 2.18
-Release: 4
+Release: 5
License: GPL
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/PGPLOT/PGPLOT-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl >= 5.6
BuildRequires: XFree86-devel
-BuildRequires: pgplot-devel
-BuildRequires: perl-ExtUtils-F77 >= 1.11
BuildRequires: gcc-g77
+BuildRequires: perl >= 5.6
+BuildRequires: perl-ExtUtils-F77 >= 1.11
+BuildRequires: pgplot-devel >= 5.2.2-1
+BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
INSTALLDIRS=vendor
%{__make}
+%{!?_without_tests:echo /NULL | %{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT