]> git.pld-linux.org Git - packages/perl-GD-Graph3d.git/blobdiff - perl-GD-Graph3d.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-GD-Graph3d.git] / perl-GD-Graph3d.spec
index c85c4568c8c990f4ebc5bae9350bb7babecea26c..c939d828993943eb5ec0554364c9e2e53435f9d4 100644 (file)
@@ -1,45 +1,53 @@
-%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}
 
 %build
 %{__perl} Makefile.PL \
-       INSTALLDIRS=vendor 
+       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
This page took 0.866306 seconds and 4 git commands to generate.