-%include /usr/lib/rpm/macros.perl
-%define pdir GD
-%define pnam Graph3d
-Summary: GD::Graph3d perl module
-Summary(pl): Modu³ perla GD::Graph3d
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define pdir GD
+%define pnam Graph3d
+Summary: GD::Graph3d - create 3D graphs with GD and GD::Graph
+Summary(pl.UTF-8): GD::Graph3d - tworzenie grafów trójwymiarowych z pomocą GD i GD::Graph
Name: perl-GD-Graph3d
Version: 0.63
-Release: 2
-License: GPL
+Release: 3
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: f866dcdd1e7e2056bb946ab7ac3fe37b
-BuildRequires: perl-devel >= 5.6
+URL: http://search.cpan.org/dist/GD-Graph3d/
BuildRequires: perl-GD >= 1.18
BuildRequires: perl-GD-Graph >= 1.30
BuildRequires: perl-GD-TextUtil
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This is the GD::Graph3d extensions module. It provides 3D graphs
-for the GD::Graph module by Martien Verbruggen, which in turn
-generates graph using Lincoln Stein's GD.pm.
+This is the GD::Graph3d extensions module. It provides 3D graphs for
+the GD::Graph module by Martien Verbruggen, which in turn generates
+graph using Lincoln Stein's GD.pm.
-%description -l pl
-To jest modu³ GD::Graph3d. Dodaje wykresy 3D do modu³u GD::Graph
-autorstwa Martiena Verbruggena, który generuje wykresy przy u¿yciu
-modu³u GD.pm autorstwa Lincolna Steina.
+%description -l pl.UTF-8
+To jest moduł GD::Graph3d. Dodaje wykresy 3D do modułu GD::Graph
+autorstwa Martiena Verbruggena, który generuje wykresy przy użyciu
+modułu GD.pm autorstwa Lincolna Steina.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
INSTALLDIRS=vendor
%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT