Files
perl-Alien-Base-ModuleBuild/perl-Alien-Base-ModuleBuild.spec
Dirk Stoecker c63e8abfbd Accepting request 830493 from devel:languages:perl:autoupdate
- updated to 1.15
   see /usr/share/doc/packages/perl-Alien-Base-ModuleBuild/Changes
  1.15      2020-08-28 09:50:28 -0600
    - Move inline tests from this distro to Acme::Alien::DontPanic
      and Acme::Alien::DontPanic2 (gh#22)

OBS-URL: https://build.opensuse.org/request/show/830493
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Alien-Base-ModuleBuild?expand=0&rev=11
2020-08-31 11:04:21 +00:00

106 lines
4.0 KiB
RPMSpec

#
# spec file for package perl-Alien-Base-ModuleBuild
#
# Copyright (c) 2020 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-Base-ModuleBuild
Version: 1.15
Release: 0
%define cpan_name Alien-Base-ModuleBuild
Summary: Module::Build subclass for building Alien:: modules and their libraries
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/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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.400400
BuildRequires: perl(Path::Tiny) >= 0.077
BuildRequires: perl(Shell::Config::Generate)
BuildRequires: perl(Shell::Guess)
BuildRequires: perl(Sort::Versions)
BuildRequires: perl(Test2::V0) >= 0.000060
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.400400
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)
%{perl_requires}
%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
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -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
%defattr(-,root,root,755)
%doc author.yml Changes README
%license LICENSE
%changelog