forked from pool/perl-Gtk3-ImageView
- updated to 12.0.0 (12)
see /usr/share/doc/packages/perl-Gtk3-ImageView/Changes
12 2024-10-13 00:31:26 IST
- Removed perl feature switch, for compatibility with newer perl
- Made linter on CI happy
11 2024-10-01 17:08:47 IST
- Replaced deprecated given/when with if/elsif/else
- Fixed Dist::Zilla config, hopefully
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Gtk3-ImageView?expand=0&rev=8
This commit is contained in:
89
perl-Gtk3-ImageView.spec
Normal file
89
perl-Gtk3-ImageView.spec
Normal file
@@ -0,0 +1,89 @@
|
||||
#
|
||||
# spec file for package perl-Gtk3-ImageView
|
||||
#
|
||||
# Copyright (c) 2024 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 Gtk3-ImageView
|
||||
Name: perl-Gtk3-ImageView
|
||||
Version: 12.0.0
|
||||
Release: 0
|
||||
# 12 -> normalize -> 12.0.0
|
||||
%define cpan_version 12
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Image viewer widget for Gtk3
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/A/AS/ASOKOLOV/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Cairo)
|
||||
BuildRequires: perl(Carp::Always)
|
||||
BuildRequires: perl(Glib) >= 1.210
|
||||
BuildRequires: perl(Glib::Object::Subclass)
|
||||
BuildRequires: perl(Gtk3)
|
||||
BuildRequires: perl(Image::Magick)
|
||||
BuildRequires: perl(Readonly)
|
||||
BuildRequires: perl(Test::Deep)
|
||||
BuildRequires: perl(Test::MockObject)
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
Requires: perl(Cairo)
|
||||
Requires: perl(Glib) >= 1.210
|
||||
Requires: perl(Glib::Object::Subclass)
|
||||
Requires: perl(Gtk3)
|
||||
Requires: perl(Readonly)
|
||||
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
|
||||
%{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
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
# MANUAL no testing (requires Display)
|
||||
#make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc Changes README README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user