commit 8c66dc5e53048ff17fac2163e59c745ebdb8b054de5aced562b05bc0c18a79f0 Author: Adrian Schröter Date: Fri May 3 18:19:03 2024 +0200 Sync from SUSE:SLFO:Main perl-Gtk3 revision 67663f1862e1c2a7d47a9842382703fb diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/Gtk3-0.038.tar.gz b/Gtk3-0.038.tar.gz new file mode 100644 index 0000000..db7fae2 --- /dev/null +++ b/Gtk3-0.038.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70dc4bf2aa74981c79e15fd298d998e05a92eba4811f1ad5c9f1f4de37737acc +size 57426 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..5f3ea2e --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,32 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +preamble: |- + 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 + %endif + +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Gtk3.changes b/perl-Gtk3.changes new file mode 100644 index 0000000..4236d89 --- /dev/null +++ b/perl-Gtk3.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Thu Jan 21 03:08:27 UTC 2021 - Tina Müller + +- updated to 0.038 + see /usr/share/doc/packages/perl-Gtk3/ + +------------------------------------------------------------------- +Mon Aug 24 16:52:08 UTC 2020 - malcolmlewis@opensuse.org + +- Fix requires on typelib(GdkPixdata) for SLE 15+, Leap 15.2 and + greater. +- Update cpanspec.yml for requires as well. + +------------------------------------------------------------------- +Wed Mar 18 03:10:02 UTC 2020 - + +- updated to 0.037 + see /usr/share/doc/packages/perl-Gtk3/ + +------------------------------------------------------------------- +Fri Oct 25 18:40:36 UTC 2019 - Tina Mueller + +- Require typelib(GdkPixdata) only in suse 01550 and higher + +------------------------------------------------------------------- +Mon Oct 21 15:59:32 UTC 2019 - Tina Mueller + +- Added manual dependencies: + * BuildRequires: typelib(GdkPixdata) = 2.0 + * BuildRequires: typelib(Gtk) = 3.0 + +------------------------------------------------------------------- +Wed Aug 28 05:14:10 UTC 2019 - Stephan Kulow + +- updated to 0.036 + see /usr/share/doc/packages/perl-Gtk3/ + +------------------------------------------------------------------- +Mon Jul 22 14:29:11 UTC 2019 - malcolmlewis@opensuse.org + +- Updated to version 0.35: + * Load GdkPixdata introspection data if gdk-pixbuf >= 2.38.0, + (RT#127071). + +------------------------------------------------------------------- +Mon Jan 7 23:07:24 UTC 2019 - malcolmlewis@opensuse.org + +- Add missing Gtk 3.0 typelib to build requires for failing test. diff --git a/perl-Gtk3.spec b/perl-Gtk3.spec new file mode 100644 index 0000000..e526066 --- /dev/null +++ b/perl-Gtk3.spec @@ -0,0 +1,79 @@ +# +# 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 https://bugs.opensuse.org/ +# + + +%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: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/%{cpan_name}-%{version}.tar.gz +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 +%{perl_requires} +# MANUAL BEGIN +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 +%endif +# MANUAL END + +%description +The 'Gtk3' module allows a Perl developer to use the gtk+ graphical user +interface library. Find out more about gtk+ at http://www.gtk.org. + +The gtk+ reference manual is also a handy companion when writing 'Gtk3' +programs in Perl: http://developer.gnome.org/gtk3/stable/. 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. + +%prep +%autosetup -n %{cpan_name}-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc NEWS perl-gtk3.doap README +%license LICENSE + +%changelog