File perl-Gtk3.spec of Package perl-Gtk3

# spec file for package perl-Gtk3
# Copyright (c) 2021 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

%define cpan_name Gtk3
Name:           perl-Gtk3
Version:        0.038
Release:        0
Summary:        Perl interface to the 3.x series of the gtk+ toolkit
License:        LGPL-2.1-or-later
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Cairo::GObject) >= 1.000
BuildRequires:  perl(Glib::Object::Introspection) >= 0.043
BuildRequires:  perl(Test::Simple) >= 0.96
Requires:       perl(Cairo::GObject) >= 1.000
Requires:       perl(Glib::Object::Introspection) >= 0.043
Requires:       perl(Test::Simple) >= 0.96
BuildRequires:  typelib(Gtk) = 3.0
%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} || 0%{?sle_version} >= 150200 || 0%{?suse_version} > 1500
BuildRequires:  typelib(GdkPixdata) = 2.0

The 'Gtk3' module allows a Perl developer to use the gtk+ graphical user
interface library. Find out more about gtk+ at

The gtk+ reference manual is also a handy companion when writing 'Gtk3'
programs in Perl: The Perl
bindings follow the C API very closely, and the C reference documentation
should be considered the canonical source. The principles underlying the
mapping from C to Perl are explained in the documentation of
Glib::Object::Introspection, on which 'Gtk3' is based.

Glib::Object::Introspection also comes with the 'perli11ndoc' program which
displays the API reference documentation of all installed libraries
organized in accordance with these principles.

%autosetup  -n %{cpan_name}-%{version}

perl Makefile.PL INSTALLDIRS=vendor

make test


%files -f %{name}.files
%doc NEWS perl-gtk3.doap README
%license LICENSE

openSUSE Build Service is sponsored by