# # spec file for package perl-Alien-Base-ModuleBuild # # 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 Alien-Base-ModuleBuild Name: perl-Alien-Base-ModuleBuild Version: 1.170.0 Release: 0 # 1.17 -> normalize -> 1.170.0 %define cpan_version 1.17 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Module::Build subclass for building Alien:: modules and their libraries URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Alien::Base) BuildRequires: perl(Alien::Base::PkgConfig) >= 1.20 BuildRequires: perl(Archive::Extract) BuildRequires: perl(Archive::Tar) >= 1.40 BuildRequires: perl(Capture::Tiny) >= 0.17 BuildRequires: perl(File::chdir) >= 0.1005 BuildRequires: perl(HTTP::Tiny) >= 0.044 BuildRequires: perl(List::Util) >= 1.45 BuildRequires: perl(Module::Build) >= 0.4004 BuildRequires: perl(Path::Tiny) >= 0.077 BuildRequires: perl(Shell::Config::Generate) BuildRequires: perl(Shell::Guess) BuildRequires: perl(Sort::Versions) BuildRequires: perl(Test2::V0) >= 0.000121 BuildRequires: perl(Text::ParseWords) >= 3.26 BuildRequires: perl(URI) BuildRequires: perl(URI::file) BuildRequires: perl(parent) Requires: perl(Alien::Base) Requires: perl(Alien::Base::PkgConfig) >= 1.20 Requires: perl(Archive::Extract) Requires: perl(Archive::Tar) >= 1.40 Requires: perl(Capture::Tiny) >= 0.17 Requires: perl(File::chdir) >= 0.1005 Requires: perl(HTTP::Tiny) >= 0.044 Requires: perl(List::Util) >= 1.45 Requires: perl(Module::Build) >= 0.4004 Requires: perl(Path::Tiny) >= 0.077 Requires: perl(Shell::Config::Generate) Requires: perl(Shell::Guess) Requires: perl(Sort::Versions) Requires: perl(Text::ParseWords) >= 3.26 Requires: perl(URI) Requires: perl(parent) Provides: perl(Alien::Base::ModuleBuild) = %{version} Provides: perl(Alien::Base::ModuleBuild::Cabinet) = %{version} Provides: perl(Alien::Base::ModuleBuild::File) = %{version} Provides: perl(Alien::Base::ModuleBuild::Repository) = %{version} Provides: perl(Alien::Base::ModuleBuild::Repository::FTP) = %{version} Provides: perl(Alien::Base::ModuleBuild::Repository::HTTP) = %{version} Provides: perl(Alien::Base::ModuleBuild::Repository::Local) = %{version} Provides: perl(Alien::Base::ModuleBuild::Utils) = %{version} %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN %if 0%{?suse_version} <= 1530 BuildRequires: perl(PkgConfig) %endif # MANUAL END %description *NOTE*: Please consider for new development of Aliens that you use Alien::Build and alienfile instead. Like this module they work with Alien::Base. Unlike this module they are more easily customized and handle a number of corner cases better. For a good place to start, please see Alien::Build::Manual::AlienAuthor. Although the Alien-Base / Alien-Build team will continue to maintain this module, (we will continue to fix bugs where appropriate), we aren't adding any new features to this module. This is a subclass of Module::Build, that with Alien::Base allows for easy creation of Alien distributions. This module is used during the build step of your distribution. When properly configured it will * use pkg-config to find and use the system version of the library * download, build and install the library if the system does not provide it %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Build.PL --installdirs=vendor optimize="%{optflags}" ./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 %license LICENSE %changelog