Break build cycle

This commit is contained in:
Petr Písař 2021-03-23 11:07:50 +01:00
parent 570ac31018
commit 491368d6f2
1 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# Locate pkgconfig using Alien::pkgconf.
# Disabled by default because it creates a build cycle (perl-Alien-pkgconf →
# perl-Alien-Build → perl-PkgConfig-LibPkgConf).
%bcond_with perl_PkgConfig_LibPkgConf_enables_Alien_pkgconf
Name: perl-PkgConfig-LibPkgConf
Version: 0.11
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Interface to pkg-config files via libpkgconf
License: GPL+ or Artistic
URL: https://metacpan.org/release/PkgConfig-LibPkgConf
@ -12,9 +17,14 @@ BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
%if %{with perl_PkgConfig_LibPkgConf_enables_Alien_pkgconf}
# Use Alien::pkgconf instead of some complicated guess
# script/cc_wrapper.pl and script/ld_wrapper.pl not used with Alien::pkgconf
BuildRequires: perl(Alien::pkgconf) >= 0.12
%else
# script/cc_wrapper.pl and script/ld_wrapper.pl not used with pkgconf
BuildRequires: pkgconf
%endif
BuildRequires: pkgconfig(libpkgconf) >= 1.5.0
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.98
@ -50,6 +60,7 @@ files. This package provides a Perl-level API using libpkgconf to these files.
%build
unset FFI_PLATYPUS_DEBUG
export PKG_CONFIG=%{_bindir}/pkgconf
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%{make_build}
@ -69,6 +80,10 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Mar 23 2021 Petr Pisar <ppisar@redhat.com> - 0.11-5
- Break build cycle (perl-Alien-pkgconf perl-Alien-Build
perl-PkgConfig-LibPkgConf)
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild