diff --git a/0001-Disable-some-unit-tests.patch b/0001-Disable-some-unit-tests.patch new file mode 100644 index 0000000..3bb5ff7 --- /dev/null +++ b/0001-Disable-some-unit-tests.patch @@ -0,0 +1,31 @@ +From 5eacce57a3556ac39fa8aadfba35788ee29f5fb1 Mon Sep 17 00:00:00 2001 +From: Mathieu Bridon +Date: Tue, 20 Jan 2015 17:59:21 +0100 +Subject: [PATCH] Disable some unit tests + +These tests just can't work in Koji, because they require an Internet +access, but Koji builders don't have access to the outside world. +--- + tests/network/remote/remotes.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/network/remote/remotes.c b/tests/network/remote/remotes.c +index 995f1d5..d9b8f5b 100644 +--- a/tests/network/remote/remotes.c ++++ b/tests/network/remote/remotes.c +@@ -549,6 +549,7 @@ void test_network_remote_remotes__fetch_from_anonymous(void) + git_remote_free(remote); + } + ++/* Disabling, can't work in Koji as there's no network access there + void test_network_remote_remotes__single_branch(void) + { + git_clone_options opts = GIT_CLONE_OPTIONS_INIT; +@@ -581,3 +582,4 @@ void test_network_remote_remotes__restricted_refspecs(void) + + cl_git_fail_with(GIT_EINVALIDSPEC, git_clone(&repo, "git://github.com/libgit2/TestGitRepository", "./restrict-refspec", &opts)); + } ++*/ +-- +2.1.0 + diff --git a/libgit2.spec b/libgit2.spec index 4e00bd2..a12e205 100644 --- a/libgit2.spec +++ b/libgit2.spec @@ -13,6 +13,8 @@ BuildRequires: python2 BuildRequires: zlib-devel Provides: bundled(libxdiff) +Patch0: 0001-Disable-some-unit-tests.patch + %description libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing @@ -30,6 +32,8 @@ developing applications that use %{name}. %prep %setup -q +%patch0 -p1 + # Remove VCS files from examples find examples -name ".gitignore" -delete -print