Backport patch to fix pkgconfig file under g-ir-scanner

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
Igor Gnatenko 2017-02-07 16:45:09 +01:00
parent a500da8ac7
commit 9122adaa7a
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 452ba68cde25423d13ebb36f0a54559f07aa53a2 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Tue, 7 Feb 2017 16:37:47 +0100
Subject: [PATCH] pkgconfig: do not quote Libs
It doesn't make sense at all.
---
libgit2.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgit2.pc.in b/libgit2.pc.in
index 329a560a7..880266a30 100644
--- a/libgit2.pc.in
+++ b/libgit2.pc.in
@@ -6,7 +6,7 @@ Name: libgit2
Description: The git library, take 2
Version: @LIBGIT2_VERSION_STRING@
-Libs: -L"${libdir}" -lgit2
+Libs: -L${libdir} -lgit2
Libs.private: @LIBGIT2_PC_LIBS@
Requires.private: @LIBGIT2_PC_REQUIRES@
--
2.11.0

View File

@ -1,10 +1,13 @@
Name: libgit2
Version: 0.25.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: C implementation of the Git core methods as a library with a solid API
License: GPLv2 with exceptions
URL: http://libgit2.github.com/
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/libgit2/libgit2/pull/4110
# https://bugzilla.gnome.org/show_bug.cgi?id=778293
Patch0001: 0001-pkgconfig-do-not-quote-Libs.patch
BuildRequires: cmake
BuildRequires: http-parser-devel
@ -74,6 +77,9 @@ popd
%{_includedir}/git2/
%changelog
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-3
- Backport patch to fix pkgconfig file under g-ir-scanner
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-2
- Bump release for rebuild