Files
perl-Imager/perl-Imager.spec
2025-08-12 18:14:45 +02:00

116 lines
4.3 KiB
RPMSpec

#
# spec file for package perl-Imager
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Imager
Name: perl-Imager
Version: 1.28.0
Release: 0
# 1.028 -> normalize -> 1.28.0
%define cpan_version 1.028
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for Generating 24 bit Images
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TONYC/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.99
Requires: perl(Test::More) >= 0.99
Provides: perl(Imager) = %{version}
Provides: perl(Imager::Color) = 1.15.0
Provides: perl(Imager::Color::Float) = 1.8.0
Provides: perl(Imager::Color::Table) = 1.4.0
Provides: perl(Imager::CountColor) = 0.30.0
Provides: perl(Imager::Expr) = 1.8.0
Provides: perl(Imager::Expr::Assem) = 1.4.0
Provides: perl(Imager::Expr::Infix)
Provides: perl(Imager::Expr::Postfix)
Provides: perl(Imager::ExtUtils) = 1.3.0
Provides: perl(Imager::FORMATS)
Provides: perl(Imager::File::CUR) = 1.0.0
Provides: perl(Imager::File::ICO) = 0.80.0
Provides: perl(Imager::File::SGI) = 0.50.0
Provides: perl(Imager::Fill) = 1.13.0
Provides: perl(Imager::Filter::DynTest) = 0.30.0
Provides: perl(Imager::Filter::Flines) = 0.40.0
Provides: perl(Imager::Filter::Mandelbrot) = 0.50.0
Provides: perl(Imager::Font) = 1.39.0
Provides: perl(Imager::Font::BBox) = 1.7.0
Provides: perl(Imager::Font::FreeType2) = 1.21.0
Provides: perl(Imager::Font::Image) = 1.0.0
Provides: perl(Imager::Font::Test) = 1.2.0
Provides: perl(Imager::Font::Truetype) = 1.13.0
Provides: perl(Imager::Font::Type1) = 1.13.0
Provides: perl(Imager::Font::Wrap) = 1.5.0
Provides: perl(Imager::Fountain) = 1.9.0
Provides: perl(Imager::IO)
Provides: perl(Imager::Matrix2d) = 1.13.0
Provides: perl(Imager::Preprocess) = 1.3.0
Provides: perl(Imager::Probe) = 1.11.0
Provides: perl(Imager::Regops) = 1.0.0
Provides: perl(Imager::Test) = 1.7.0
Provides: perl(Imager::Test::OverUtf8)
Provides: perl(Imager::Transform) = 1.7.0
Provides: perl(Imager::TrimColorList) = 1.0.0
%undefine __perllib_provides
Recommends: perl(Parse::RecDescent)
%{perl_requires}
# MANUAL BEGIN
BuildRequires: freetype-devel
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: giflib-devel
BuildRequires: glibc-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: make
# MANUAL END
%description
Imager is a module for creating and altering images. It can read and write
various image formats, draw primitive shapes like lines,and polygons, blend
multiple images together in various ways, scale, crop, render text and
more.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
# MANUAL BEGIN
rm -r %{buildroot}%{perl_vendorarch}/Imager/include
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
%doc adobe.txt apidocs.perl bigtest.perl Changes Changes.old combine.im compose.im convert.im conv.im doco.perl errep.perl filterlist.perl filters.im flip.im gaussian.im paste.im README regops.perl render.im rotate.im rubthru.im samples scale.im spot.perl transform.perl trim.im typemap.local typemap.oldperl
%changelog