diff --git a/0001-pkgconfig-do-not-quote-Libs.patch b/0001-pkgconfig-do-not-quote-Libs.patch new file mode 100644 index 0000000..8613361 --- /dev/null +++ b/0001-pkgconfig-do-not-quote-Libs.patch @@ -0,0 +1,26 @@ +From 452ba68cde25423d13ebb36f0a54559f07aa53a2 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +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 + diff --git a/libgit2.spec b/libgit2.spec index 0d95133..87497c6 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -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 - 0.25.1-3 +- Backport patch to fix pkgconfig file under g-ir-scanner + * Tue Feb 07 2017 Igor Gnatenko - 0.25.1-2 - Bump release for rebuild