2007-01-15 23:30:39 +00:00
|
|
|
#
|
2011-05-20 13:10:34 +00:00
|
|
|
# spec file for package perl-GD
|
2007-01-15 23:30:39 +00:00
|
|
|
#
|
2024-05-16 11:58:52 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:30:39 +00:00
|
|
|
#
|
2008-09-12 16:10:44 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-06-17 17:17:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:39 +00:00
|
|
|
#
|
|
|
|
|
2013-07-27 12:16:25 +00:00
|
|
|
|
2022-02-15 15:14:57 +00:00
|
|
|
%define cpan_name GD
|
2007-01-15 23:30:39 +00:00
|
|
|
Name: perl-GD
|
2024-06-27 18:10:14 +00:00
|
|
|
Version: 2.830.0
|
2013-07-27 12:16:25 +00:00
|
|
|
Release: 0
|
2024-06-27 18:10:14 +00:00
|
|
|
# 2.83 -> normalize -> 2.830.0
|
|
|
|
%define cpan_version 2.83
|
2018-09-13 08:35:52 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-07-11 07:37:29 +00:00
|
|
|
Summary: Perl interface to the libgd graphics library
|
2020-07-24 08:40:07 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-05-16 11:58:52 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-15 20:27:57 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:18 +02:00
|
|
|
Source100: README.md
|
2011-05-26 14:50:37 +00:00
|
|
|
Patch0: GD-cflags.patch
|
2015-04-15 20:27:57 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-04-24 08:29:08 +00:00
|
|
|
BuildRequires: perl(ExtUtils::Constant) >= 0.22
|
|
|
|
BuildRequires: perl(ExtUtils::PkgConfig)
|
2024-06-27 18:10:14 +00:00
|
|
|
BuildRequires: perl(File::Which)
|
2022-02-15 15:14:57 +00:00
|
|
|
BuildRequires: perl(Test::Fork) >= 0.02
|
2020-07-24 08:40:07 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2023-07-11 07:37:29 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings) >= 1.00
|
2024-05-16 11:58:52 +00:00
|
|
|
Provides: perl(GD) = %{version}
|
|
|
|
Provides: perl(GD::Group) = 1.00
|
|
|
|
Provides: perl(GD::Image) = %{version}
|
|
|
|
Provides: perl(GD::Polygon)
|
|
|
|
Provides: perl(GD::Polyline) = 0.2
|
|
|
|
Provides: perl(GD::Simple)
|
|
|
|
%undefine __perllib_provides
|
2015-04-15 20:27:57 +00:00
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
2009-07-27 20:46:37 +00:00
|
|
|
BuildRequires: gd-devel >= 2.0.28
|
2015-04-18 14:29:44 +00:00
|
|
|
Requires: gd
|
2015-04-15 20:27:57 +00:00
|
|
|
# MANUAL END
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%description
|
2011-05-26 14:50:37 +00:00
|
|
|
*GD.pm* is a Perl interface to Thomas Boutell's gd graphics library
|
|
|
|
(version 2.01 or higher; see below). GD allows you to create color drawings
|
|
|
|
using a large number of graphics primitives, and emit the drawings as PNG
|
|
|
|
files.
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%prep
|
2024-05-16 11:58:52 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-05-11 15:38:50 +00:00
|
|
|
|
2023-07-11 07:37:29 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%build
|
2018-09-13 08:35:52 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-02-15 15:14:57 +00:00
|
|
|
%make_build
|
2009-07-27 20:46:37 +00:00
|
|
|
|
|
|
|
%check
|
2020-07-24 08:40:07 +00:00
|
|
|
make test
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-24 08:29:08 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-07-27 20:46:37 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:39 +00:00
|
|
|
|
2009-07-27 20:46:37 +00:00
|
|
|
%files -f %{name}.files
|
2017-04-24 08:29:08 +00:00
|
|
|
%doc ChangeLog const-c.inc const-xs.inc README README.QUICKDRAW
|
|
|
|
%license LICENSE
|
2007-01-15 23:30:39 +00:00
|
|
|
|
2008-06-23 22:48:32 +00:00
|
|
|
%changelog
|