# # spec file for package perl-Alien-wxWidgets # # Copyright (c) 2025 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 Alien-wxWidgets Name: perl-Alien-wxWidgets Version: 0.690.0 Release: 0 # 0.69 -> normalize -> 0.690.0 %define cpan_version 0.69 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Building, finding and using wxWidgets binaries URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md 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 BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(ExtUtils::CBuilder) >= 0.24 BuildRequires: perl(LWP::Protocol::https) BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Module::Pluggable) >= 2.600 Requires: perl(Module::Pluggable) >= 2.600 Provides: perl(Alien::wxWidgets) = %{version} Provides: perl(Alien::wxWidgets::Utility) = 0.590.0 %undefine __perllib_provides %{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 -n %{cpan_name}-%{cpan_version} -N find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %patch -P0 %patch -P1 %patch -P2 # 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 %doc Changes README.txt %changelog