diff --git a/cpanspec.yml b/cpanspec.yml index 76ad4a4..34acfeb 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -10,8 +10,10 @@ #patches: # foo.patch: -p1 # bar.patch: -#preamble: |- -# BuildRequires: gcc-c++ +preamble: |- + %if 0%{?suse_version} <= 1530 + BuildRequires: perl(PkgConfig) + %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 diff --git a/perl-Alien-Base-ModuleBuild.changes b/perl-Alien-Base-ModuleBuild.changes index 232c98f..78bc8e4 100644 --- a/perl-Alien-Base-ModuleBuild.changes +++ b/perl-Alien-Base-ModuleBuild.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 13 20:39:25 UTC 2021 - Lars Vogdt + +- needs perl(PkgConfig) to build on older distributions + ------------------------------------------------------------------- Sat Aug 29 03:07:00 UTC 2020 - Tina Müller diff --git a/perl-Alien-Base-ModuleBuild.spec b/perl-Alien-Base-ModuleBuild.spec index 3124a89..0802d7a 100644 --- a/perl-Alien-Base-ModuleBuild.spec +++ b/perl-Alien-Base-ModuleBuild.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Alien-Base-ModuleBuild # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -47,6 +47,9 @@ BuildRequires: perl(Text::ParseWords) >= 3.26 BuildRequires: perl(URI) BuildRequires: perl(URI::file) BuildRequires: perl(parent) +%if 0%{?suse_version} <= 1530 +BuildRequires: perl(PkgConfig) +%endif Requires: perl(Alien::Base) Requires: perl(Alien::Base::PkgConfig) >= 1.20 Requires: perl(Archive::Extract)