File perl-GDGraph.spec of Package perl-GDGraph

#
# spec file for package perl-GDGraph (Version 1.44)
#
# Copyright (c) 2010 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
BuildRequires:  ImageMagick libtiff-devel perl-GD perl-GDTextUtil xorg-x11-devel
BuildRequires:  perl-macros
Version:        1.44
Release:        183
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://cpan.org/modules/by-module/GD/
Summary:        package to generate charts, using Lincoln Stein's GD.pm
Source:         GDGraph-%{version}.tar.bz2
Patch:          GDGraph-trim_miter.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{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.



Authors:
--------
    Martien Verbruggen <mgjv@tradingpost.com.au>

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

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}
make test
make samples

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README*
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/GD/Graph
%{perl_vendorlib}/GD

%changelog
openSUSE Build Service is sponsored by