forked from pool/perl-GDGraph
- license correction (same as Perl) - added new dependencies (bnc#676080) - spec renewal OBS-URL: https://build.opensuse.org/request/show/68657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-GDGraph?expand=0&rev=9
73 lines
2.0 KiB
RPMSpec
73 lines
2.0 KiB
RPMSpec
#
|
|
# 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
|
|
%define cpan_name GDGraph
|
|
Version: 1.44
|
|
Release: 183
|
|
AutoReqProv: on
|
|
Group: Development/Libraries/Perl
|
|
License: GPL+ or Artistic
|
|
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
|