2021-01-08 21:12:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Gtk3-ImageView
|
|
|
|
#
|
2025-01-06 16:52:28 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-01-08 21:12:38 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-05-09 12:27:21 +00:00
|
|
|
%define cpan_name Gtk3-ImageView
|
2021-01-08 21:12:38 +00:00
|
|
|
Name: perl-Gtk3-ImageView
|
2025-01-06 16:52:28 +00:00
|
|
|
Version: 12.0.0
|
2021-01-08 21:12:38 +00:00
|
|
|
Release: 0
|
2025-01-06 16:52:28 +00:00
|
|
|
# 12 -> normalize -> 12.0.0
|
|
|
|
%define cpan_version 12
|
2021-01-08 21:12:38 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-01-06 16:52:28 +00:00
|
|
|
Summary: Image viewer widget for Gtk3
|
2021-01-08 21:12:38 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-06 16:52:28 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AS/ASOKOLOV/%{cpan_name}-%{cpan_version}.tar.gz
|
2021-01-08 21:12:38 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:28 +02:00
|
|
|
Source100: README.md
|
2021-01-08 21:12:38 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2021-10-12 09:49:40 +00:00
|
|
|
BuildRequires: perl(Cairo)
|
2021-01-08 21:12:38 +00:00
|
|
|
BuildRequires: perl(Carp::Always)
|
2021-10-12 09:49:40 +00:00
|
|
|
BuildRequires: perl(Glib) >= 1.210
|
|
|
|
BuildRequires: perl(Glib::Object::Subclass)
|
2021-01-08 21:12:38 +00:00
|
|
|
BuildRequires: perl(Gtk3)
|
|
|
|
BuildRequires: perl(Image::Magick)
|
|
|
|
BuildRequires: perl(Readonly)
|
2021-05-09 12:27:21 +00:00
|
|
|
BuildRequires: perl(Test::Deep)
|
2021-01-08 21:12:38 +00:00
|
|
|
BuildRequires: perl(Test::MockObject)
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
2021-10-12 09:49:40 +00:00
|
|
|
Requires: perl(Cairo)
|
|
|
|
Requires: perl(Glib) >= 1.210
|
|
|
|
Requires: perl(Glib::Object::Subclass)
|
2021-01-08 21:12:38 +00:00
|
|
|
Requires: perl(Gtk3)
|
|
|
|
Requires: perl(Readonly)
|
2025-01-06 16:52:28 +00:00
|
|
|
Provides: perl(Gtk3::ImageView) = %{version}
|
|
|
|
Provides: perl(Gtk3::ImageView::Tool) = %{version}
|
|
|
|
Provides: perl(Gtk3::ImageView::Tool::Dragger) = %{version}
|
|
|
|
Provides: perl(Gtk3::ImageView::Tool::Selector) = %{version}
|
|
|
|
Provides: perl(Gtk3::ImageView::Tool::SelectorDragger) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2021-01-08 21:12:38 +00:00
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: libgtkimageview-devel
|
|
|
|
# MANUAL END
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Gtk3::ImageView widget allows the user to zoom, pan and select the
|
|
|
|
specified image and provides hooks to allow additional tools, e.g. painter,
|
|
|
|
to be created and used.
|
|
|
|
|
|
|
|
Gtk3::ImageView is a Gtk3 port of Gtk2::ImageView.
|
|
|
|
|
|
|
|
To discuss Gtk3::ImageView or gtk3-perl, ask questions and flame/praise the
|
|
|
|
authors, join gtk-perl-list@gnome.org at lists.gnome.org.
|
|
|
|
|
|
|
|
%prep
|
2025-01-06 16:52:28 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2021-01-08 21:12:38 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-05-09 12:27:21 +00:00
|
|
|
%make_build
|
2021-01-08 21:12:38 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
# MANUAL no testing (requires Display)
|
|
|
|
#make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-10-12 09:49:40 +00:00
|
|
|
%doc Changes README README.md
|
|
|
|
%license LICENSE
|
2021-01-08 21:12:38 +00:00
|
|
|
|
|
|
|
%changelog
|