File perl-GDGraph.spec of Package perl-GDGraph

#
# spec file for package perl-GDGraph
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-GDGraph
%define cpan_name GDGraph
Version:        1.44
Release:        188
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        GPL-1.0+ or Artistic-1.0
Url:            http://cpan.org/modules/by-module/GD/
Summary:        Package to generate charts, using Lincoln Stein's GD.pm
BuildRequires:  ImageMagick libtiff-devel xorg-x11-devel
BuildRequires:  perl(GD) >= 1.18
BuildRequires:  perl(GD::Text) >= 0.80
BuildRequires:  perl
BuildRequires:  perl-macros
Requires:       perl(GD) >= 1.18
Requires:       perl(GD::Text) >= 0.80
Source:         %{cpan_name}-%{version}.tar.bz2
Patch:          %{cpan_name}-trim_miter.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{perl_requires}

%description
This is GDGraph, a package to generate charts, using Lincoln Stein's
GD.pm. See the documentation for some history and more information.


%prep
%setup -n %{cpan_name}-%{version}
%patch -p1

%build
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%{__make} samples

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%defattr(-, root, root)
%doc README*

%changelog
openSUSE Build Service is sponsored by