Modifications for building on RHEL 9

- RHEL 9 lacks llhttp, so build with the older http-parser.
- Since this is bootstrapping the rpmautospec dependencies, don't use
  rpmautospec for the release and changelog fields.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-07-31 13:42:56 -04:00
parent 749488937e
commit ce62940a88
2 changed files with 5 additions and 15037 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,20 +7,17 @@
Name: libgit2
Version: 1.7.2
Release: %autorelease
Release: 1
Summary: C implementation of the Git core methods as a library with a solid API
License: GPLv2 with exceptions
URL: https://libgit2.org/
Source0: https://github.com/libgit2/libgit2/archive/refs/tags/v%{version}.tar.gz#/libgit2-%{version}.tar.gz
# Patches
# Backported patch from https://github.com/libgit2/libgit2/pull/6713
Patch: 0001-Replace-http-parser-with-llhttp.patch
BuildRequires: gcc
BuildRequires: cmake >= 3.5.1
BuildRequires: ninja-build
BuildRequires: llhttp-devel
BuildRequires: http-parser-devel
BuildRequires: krb5-devel
BuildRequires: libcurl-devel
%if %{with libssh2}
@ -83,7 +80,7 @@ popd
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DREGEX_BACKEND=pcre2 \
-DBUILD_CLI=OFF \
-DUSE_HTTP_PARSER=llhttp \
-DUSE_HTTP_PARSER=system \
-DUSE_SHA1=HTTPS \
-DUSE_HTTPS=OpenSSL \
-DUSE_NTLMCLIENT=OFF \
@ -113,4 +110,5 @@ popd
%{_includedir}/git2/
%changelog
%autochangelog
* Wed Jul 31 2024 Stephen Gallagher <sgallagh@redhat.com> - 1.7.2-1
- Import from Fedora into CentOS Stream 9