Fix pkgconfig output concatenation with pkgconfig-0.29

This commit is contained in:
Petr Písař 2016-01-12 11:11:07 +01:00
parent f56411741a
commit b37a1b093b
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,18 @@
From: bitcardbmw [...] lsmod.de
When constructing the $libs variable, there is a blank missing
before the -lpangocairo-1.0 coming from the pangocairo.pc through
pkg-config. Inserting an extra blank before the pkg-config
result fixes the issue.
CPAN RT#111117
--- Makefile.PL 2014-02-19 05:13:50.000000000 +0100
+++ Makefile.PL 2015-10-08 00:47:59.777157391 +0200
@@ -161,6 +161,7 @@
if ($have_cairo) {
push @deps, qw/Cairo/;
$inc .= $pangocairo_pkgcfg{cflags};
+ $libs .= ' ';
$libs .= $pangocairo_pkgcfg{libs};
}

View File

@ -1,11 +1,13 @@
Name: perl-Pango
Version: 1.226
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Perl interface to the pango library
Group: Development/Libraries
License: LGPLv2+
URL: http://search.cpan.org/dist/Pango/
Source0: http://www.cpan.org/authors/id/T/TS/TSCH/Pango-%{version}.tar.gz
# Fix pkgconfig output concatenation with pkgconfig-0.29, bug #1297705
Patch0: Pango-1.226-fix-pangocairo_libs.patch
BuildRequires: perl(ExtUtils::Depends) >= 0.300
BuildRequires: perl(ExtUtils::PkgConfig)
BuildRequires: perl(Cairo) >= 1.000
@ -25,6 +27,7 @@ complete solution with high quality text handling and graphics rendering.
%prep
%setup -q -n Pango-%{version}
%patch0 -p0
%{?perl_default_filter}
chmod -c a-x examples/*.pl
@ -52,6 +55,9 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%{_mandir}/man3/*.3pm*
%changelog
* Tue Jan 12 2016 Petr Pisar <ppisar@redhat.com> - 1.226-6
- Fix pkgconfig output concatenation with pkgconfig-0.29 (bug #1297705)
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.226-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild