From 80ff1e19c2f1dc57a78f74ae2cb2e85b30a3cd40fd500380c094222615cf9537 Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Mon, 6 Jan 2025 11:08:13 +0000 Subject: [PATCH] - Use wxWidgets-3_2 instead wxWidgets-3_0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Alien-wxWidgets?expand=0&rev=26 --- .gitattributes | 23 ++++ .gitignore | 1 + Alien-wxWidgets-0.69.tar.gz | 3 + cpanspec.yml | 30 ++++ perl-Alien-wxWidgets-do_not_build_wxgtk.patch | 11 ++ perl-Alien-wxWidgets-dump_sorted_config.patch | 22 +++ ...en-wxWidgets-ignore_cbuilder_version.patch | 11 ++ perl-Alien-wxWidgets.changes | 128 ++++++++++++++++++ perl-Alien-wxWidgets.spec | 83 ++++++++++++ 9 files changed, 312 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Alien-wxWidgets-0.69.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Alien-wxWidgets-do_not_build_wxgtk.patch create mode 100644 perl-Alien-wxWidgets-dump_sorted_config.patch create mode 100644 perl-Alien-wxWidgets-ignore_cbuilder_version.patch create mode 100644 perl-Alien-wxWidgets.changes create mode 100644 perl-Alien-wxWidgets.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Alien-wxWidgets-0.69.tar.gz b/Alien-wxWidgets-0.69.tar.gz new file mode 100644 index 0000000..16f6a40 --- /dev/null +++ b/Alien-wxWidgets-0.69.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53224e4bbbefff4cf7b63ed9a62963893b9ffd4965d70d96710348f8676de249 +size 671819 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..c2dc51f --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,30 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + perl-Alien-wxWidgets-do_not_build_wxgtk.patch: + perl-Alien-wxWidgets-ignore_cbuilder_version.patch: + perl-Alien-wxWidgets-dump_sorted_config.patch: + +preamble: |- + BuildRequires: gcc-c++ + %if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200 + BuildRequires: wxWidgets-3_0-nostl-devel + %else + BuildRequires: wxWidgets-ansi-devel + %endif +post_prep: |- + # this copy of GNU patch is only used on win32, remove it for license clarity + # see https://build.opensuse.org/request/show/237465 + rm -vf inc/src/patch* +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +skip_noarch: 1 +custom_build: |- + yes no | %__perl ./Build.PL installdirs=vendor + yes no | ./Build + ./Build build flags=%{?_smp_mflags} diff --git a/perl-Alien-wxWidgets-do_not_build_wxgtk.patch b/perl-Alien-wxWidgets-do_not_build_wxgtk.patch new file mode 100644 index 0000000..dd48a04 --- /dev/null +++ b/perl-Alien-wxWidgets-do_not_build_wxgtk.patch @@ -0,0 +1,11 @@ +--- Build.PL.orig 2010-12-27 01:18:00.000000000 +0100 ++++ Build.PL 2010-12-27 01:18:20.000000000 +0100 +@@ -123,7 +123,7 @@ + # if anything went wrong in the autodetection, revert to the correct + # default + if( !$ok ) { +- $build_wx_dflt = 'yes'; ++ die "not ok"; + } + + # detect wxWidgets using WXDIR/WXWIN environment variables on Win32 diff --git a/perl-Alien-wxWidgets-dump_sorted_config.patch b/perl-Alien-wxWidgets-dump_sorted_config.patch new file mode 100644 index 0000000..418a1bc --- /dev/null +++ b/perl-Alien-wxWidgets-dump_sorted_config.patch @@ -0,0 +1,22 @@ +--- lib/Alien/wxWidgets.pm.orig 2016-11-23 16:54:35.940061462 +0100 ++++ lib/Alien/wxWidgets.pm 2016-11-23 16:55:14.383929523 +0100 +@@ -132,6 +132,8 @@ + my @configs = $class->get_configurations( @_ ); + + require Data::Dumper; ++ # sort output, to have same output as from My::Build::Base ++ $Data::Dumper::Sortkeys = 1; + print Data::Dumper->Dump( \@configs ); + } + +--- inc/My/Build/Base.pm.orig 2016-11-24 14:43:52.306654279 +0100 ++++ inc/My/Build/Base.pm 2016-11-24 14:44:09.806598987 +0100 +@@ -218,6 +218,8 @@ + my %config = $self->_init_config; + my $base = $self->awx_key; + ++ # sort output for reproducible builds ++ $Data::Dumper::Sortkeys = 1; + my $body = Data::Dumper->Dump( [ \%config ] ); + $body =~ s/rEpLaCe/$base/g; + diff --git a/perl-Alien-wxWidgets-ignore_cbuilder_version.patch b/perl-Alien-wxWidgets-ignore_cbuilder_version.patch new file mode 100644 index 0000000..f312061 --- /dev/null +++ b/perl-Alien-wxWidgets-ignore_cbuilder_version.patch @@ -0,0 +1,11 @@ +--- Build.PL.orig 2019-08-21 13:20:23.591141429 +0200 ++++ Build.PL 2019-08-21 13:20:25.603152873 +0200 +@@ -54,7 +54,7 @@ + 'Module::Pluggable' => '2.6', + }, + build_requires => { 'Module::Build' => '0.28', +- 'ExtUtils::CBuilder' => '0.24', ++ 'ExtUtils::CBuilder' => 0, + 'File::Spec' => '1.50', + 'LWP::Protocol::https' => '0', + }, diff --git a/perl-Alien-wxWidgets.changes b/perl-Alien-wxWidgets.changes new file mode 100644 index 0000000..44ae717 --- /dev/null +++ b/perl-Alien-wxWidgets.changes @@ -0,0 +1,128 @@ +------------------------------------------------------------------- +Fri Dec 27 09:14:38 UTC 2024 - Ana Guerrero + +- Use wxWidgets-3_2 instead wxWidgets-3_0. + +------------------------------------------------------------------- +Mon Mar 4 12:00:57 UTC 2024 - pgajdos@suse.com + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN + +------------------------------------------------------------------- +Wed Aug 21 13:33:25 CEST 2019 - Tina Mueller + +- Update patch perl-Alien-wxWidgets-ignore_cbuilder_version.patch + +------------------------------------------------------------------- +Wed Apr 3 06:41:44 UTC 2019 - Stephan Kulow + +- updated to 0.69 + see /usr/share/doc/packages/perl-Alien-wxWidgets/Changes + + 0.69 Tue Apr 18 2017 + - added build dependency on LWP::Protocol::https - it is always + - necessary due to sourceforge redirect to https + +------------------------------------------------------------------- +Tue Apr 11 05:01:27 UTC 2017 - coolo@suse.com + +- updated to 0.68 + see /usr/share/doc/packages/perl-Alien-wxWidgets/Changes + + 0.68 Sat Apr 8 2017 + - RT:120887 - patch from Jim Keenan for '.' no longer in@INC + - RT:94367 - allow ENV setting for wx-config + - Fix current OSX builds + + 0.67 Tue Mar 10 2015 + - pause indexing fix + +------------------------------------------------------------------- +Sat Nov 26 13:56:53 UTC 2016 - stefan.bruens@rwth-aachen.de + +- Add perl-Alien-wxWidgets-dump_sorted_config.patch: + sort config dictionaries to make builds deterministic + +------------------------------------------------------------------- +Sun Nov 13 15:11:39 UTC 2016 - stefan.bruens@rwth-aachen.de + +- updated wxWidgets requirements from 2.8 to 3.0 for + distribution versions providing wxWidgets-3_0-nostl. + +------------------------------------------------------------------- +Tue Apr 14 08:45:38 UTC 2015 - coolo@suse.com + +- updated to 0.67 + see /usr/share/doc/packages/perl-Alien-wxWidgets/Changes + + 0.66 Tue Mar 10 2015 + - add support for wxWidgets 3.0.1 and 3.0.2 + - make default wxWidgets 3.0.2 + - graphics context included now default on Win32 + - build on MacOSX - xcode 5.x/6.x + +------------------------------------------------------------------- +Tue Jun 17 07:10:00 UTC 2014 - coolo@suse.com + +- remove copy of GNU patch + +------------------------------------------------------------------- +Sun Jun 8 11:17:07 UTC 2014 - coolo@suse.com + +- updated to 0.65 + 0.65 Mon Mar 31 2014 + - Update default to wxWidgets 3.0.0 + - build on MacOSX Mavericks with Xcode 4.6.3 + - install builtins on wxMSW (used by some wxWidgets extensions) + + 0.64 Sat Apr 13 2013 + - Build IPC on Windows + + 0.63 Fri Oct 26 2012 + - Patches for wxGTK build fixing dir dialog issues + + 0.62 Tue Oct 2 2012 + - Fix patching on MSWin when buildpaths have spaces. + - Allow addition of user patch - --wxWidgets-userpatch + - Expand README.txt + - Another Mac OS X SDK change + + 0.61 Fri Sep 21 2012 + - change default debug level for wxWidgets >= 2.9 to 1 ( was 0) + - fix several incorrect wxWidgets version checks + + 0.60 Fri Aug 24 2012 + - allow building 2.9.4 + - correct SDKs for Mountain Lion + - fixes for XCode 4.4 + + 0.59 Tue May 01 2012 + - Version sub modules to keep meta info users happy + + 0.58 Thu Apr 12 2012 + - WXWIN / WXDIR MSWin32 fix. + +------------------------------------------------------------------- +Tue Apr 12 05:24:58 UTC 2011 - coolo@opensuse.org + +- fix build with new wxWidgets + +------------------------------------------------------------------- +Mon Dec 27 00:37:45 UTC 2010 - pascal.bleser@opensuse.org + +- spec file rewrite + +- added patch to prevent building wxGTK + +------------------------------------------------------------------- +Wed Dec 1 13:30:35 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Fri Nov 26 10:01:55 UTC 2010 - pth@novell.com + +- initial package 0.51 + * created by cpanspec 1.78 +- Spec file cleaned with spec-cleaner diff --git a/perl-Alien-wxWidgets.spec b/perl-Alien-wxWidgets.spec new file mode 100644 index 0000000..45ac008 --- /dev/null +++ b/perl-Alien-wxWidgets.spec @@ -0,0 +1,83 @@ +# +# spec file for package perl-Alien-wxWidgets +# +# 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/ +# + + +Name: perl-Alien-wxWidgets +Version: 0.69 +Release: 0 +%define cpan_name Alien-wxWidgets +Summary: Building, finding and using wxWidgets binaries +License: Artistic-1.0 OR GPL-1.0-or-later +Group: Development/Libraries/Perl +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: perl-Alien-wxWidgets-do_not_build_wxgtk.patch +Patch1: perl-Alien-wxWidgets-dump_sorted_config.patch +Patch2: perl-Alien-wxWidgets-ignore_cbuilder_version.patch +# MANUAL +#BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::CBuilder) >= 0.24 +BuildRequires: perl(LWP::Protocol::https) +BuildRequires: perl(Module::Build) >= 0.280000 +BuildRequires: perl(Module::Pluggable) >= 2.6 +Requires: perl(Module::Pluggable) >= 2.6 +%{perl_requires} +# MANUAL BEGIN +BuildRequires: gcc-c++ +%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200 +BuildRequires: wxWidgets-3_2-nostl-devel +%else +BuildRequires: wxWidgets-ansi-devel +%endif +# MANUAL END + +%description +Please see Alien for the manifesto of the Alien namespace. + +In short 'Alien::wxWidgets' can be used to detect and get configuration +settings from an installed wxWidgets. + +%prep +%autosetup -p0 -n %{cpan_name}-%{version} +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 +# MANUAL BEGIN +# this copy of GNU patch is only used on win32, remove it for license clarity +# see https://build.opensuse.org/request/show/237465 +rm -vf inc/src/patch* +# MANUAL END + +%build +yes no | %__perl ./Build.PL installdirs=vendor +yes no | ./Build +./Build build flags=%{?_smp_mflags} + +%check +./Build test + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README.txt + +%changelog