|
|
@ -1,8 +1,8 @@
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
## (rpmautospec version 0.3.5)
|
|
|
|
## (rpmautospec version 0.6.0)
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
release_number = 1;
|
|
|
|
release_number = 2;
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
@ -16,7 +16,7 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgit2
|
|
|
|
Name: libgit2
|
|
|
|
Version: 1.6.4
|
|
|
|
Version: 1.7.2
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: C implementation of the Git core methods as a library with a solid API
|
|
|
|
Summary: C implementation of the Git core methods as a library with a solid API
|
|
|
|
License: GPLv2 with exceptions
|
|
|
|
License: GPLv2 with exceptions
|
|
|
@ -27,6 +27,7 @@ BuildRequires: gcc
|
|
|
|
BuildRequires: cmake >= 3.5.1
|
|
|
|
BuildRequires: cmake >= 3.5.1
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: http-parser-devel
|
|
|
|
BuildRequires: http-parser-devel
|
|
|
|
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
%if %{with libssh2}
|
|
|
|
%if %{with libssh2}
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
@ -68,8 +69,19 @@ find examples -name ".gitignore" -delete -print
|
|
|
|
# Don't run "online" tests
|
|
|
|
# Don't run "online" tests
|
|
|
|
sed -i '/-sonline/s/^/#/' tests/libgit2/CMakeLists.txt
|
|
|
|
sed -i '/-sonline/s/^/#/' tests/libgit2/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
|
|
# Remove bundled libraries
|
|
|
|
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
|
|
|
|
rm -vr deps
|
|
|
|
# On Fedora 40+ and RHEL 10+, we're using zlib-ng rather than
|
|
|
|
|
|
|
|
# zlib for compression. As a result, all of the pack tests fail
|
|
|
|
|
|
|
|
# due to checking the hashes of the packed data against static
|
|
|
|
|
|
|
|
# values that were created with zlib.
|
|
|
|
|
|
|
|
# https://github.com/libgit2/libgit2/issues/6728
|
|
|
|
|
|
|
|
sed -i 's/-xonline/-xonline -xpack/' tests/libgit2/CMakeLists.txt
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove bundled libraries (except libxdiff)
|
|
|
|
|
|
|
|
pushd deps
|
|
|
|
|
|
|
|
find . -maxdepth 1 -not -name xdiff -exec rm -rf {} ';'
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
%cmake \
|
|
|
@ -97,7 +109,7 @@ rm -vr deps
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libgit2.so.1.6*
|
|
|
|
%{_libdir}/libgit2.so.1.7*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%doc AUTHORS docs examples README.md
|
|
|
|
%doc AUTHORS docs examples README.md
|
|
|
@ -107,9 +119,31 @@ rm -vr deps
|
|
|
|
%{_includedir}/git2/
|
|
|
|
%{_includedir}/git2/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jan 10 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.6.4-1
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
|
|
|
* Wed Feb 07 2024 Stephen Gallagher <sgallagh@redhat.com> - 1.7.2-1
|
|
|
|
|
|
|
|
- Update to 1.7.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2024 Stephen Gallagher <sgallagh@redhat.com> - 1.7.1-5
|
|
|
|
|
|
|
|
- Skip 'pack' tests on F40+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 10 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.7.1-2
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 17 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.7.1-2
|
|
|
|
|
|
|
|
- Use krb5 GSSAPI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 14 2023 Pete Walter <pwalter@fedoraproject.org> - 1.7.1-1
|
|
|
|
|
|
|
|
- Update to 1.7.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 13 2023 Pete Walter <pwalter@fedoraproject.org> - 1.6.4-1
|
|
|
|
* Thu Apr 13 2023 Pete Walter <pwalter@fedoraproject.org> - 1.6.4-1
|
|
|
|
- Update to 1.6.4
|
|
|
|
- Update to 1.6.4
|
|
|
|
|
|
|
|
|
|
|
@ -403,3 +437,4 @@ rm -vr deps
|
|
|
|
* Thu Oct 18 2012 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.17.0-1
|
|
|
|
* Thu Oct 18 2012 Veeti Paananen <veeti.paananen@rojekti.fi> - 0.17.0-1
|
|
|
|
- Initial package.
|
|
|
|
- Initial package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|