Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libgit2 for openSUSE:Factory checked in at 2025-03-18 17:40:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libgit2 (Old) and /work/SRC/openSUSE:Factory/.libgit2.new.19136 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libgit2" Tue Mar 18 17:40:13 2025 rev:69 rq:1253770 version:1.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libgit2/libgit2.changes 2025-01-30 14:49:32.253332383 +0100 +++ /work/SRC/openSUSE:Factory/.libgit2.new.19136/libgit2.changes 2025-03-18 17:41:43.394598411 +0100 @@ -1,0 +2,8 @@ +Fri Feb 28 13:30:39 UTC 2025 - Atri Bhattacharya <badshah...@gmail.com> + +- Pass -DEXPERIMENTAL_SHA256=ON to cmake to enable sha256 + integration (already being used by opensuse gitea) in a separate + multibuild flavour. This provides downstream libs (like pygit2) + to build against the experimental flavour, should they want to. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libgit2.spec ++++++ --- /var/tmp/diff_new_pack.YqXBz8/_old 2025-03-18 17:41:43.874618480 +0100 +++ /var/tmp/diff_new_pack.YqXBz8/_new 2025-03-18 17:41:43.874618480 +0100 @@ -1,7 +1,7 @@ # # spec file for package libgit2 # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2011, Sascha Peilicke <sasc...@gmx.de> # Copyright (c) 2025 Andreas Stieger <andreas.stie...@gmx.de> # @@ -18,15 +18,26 @@ # +%global flavor @BUILD_FLAVOR@%{nil} + +%define pname libgit2 + +%if "%flavor" == "experimental" +%define psuffix -%{flavor} +%bcond_without expt_sha256 +%else +%bcond_with expt_sha256 +%endif + %define sover 1_9 -Name: libgit2 +Name: %{pname}%{?psuffix} Version: 1.9.0 Release: 0 Summary: C git library License: GPL-2.0-only WITH GCC-exception-2.0 Group: Development/Libraries/C and C++ URL: https://libgit2.github.com/ -Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz Source1: libgit2-rpmlintrc BuildRequires: cmake >= 3.5.1 BuildRequires: pkgconfig @@ -69,7 +80,7 @@ This package contains a git cli based on libgit2. %prep -%autosetup -p1 +%autosetup -p1 -n %{pname}-%{version} find examples -type f -name ".gitignore" -print -delete %build @@ -77,12 +88,18 @@ -DUSE_SSH:BOOL=ON \ -DREGEX_BACKEND=pcre2 \ -DENABLE_REPRODUCIBLE_BUILDS:BOOL=ON \ + -DEXPERIMENTAL_SHA256:BOOL=%{?with_expt_sha256:ON}%{!?with_expt_sha256:OFF} \ %{nil} %cmake_build %install %cmake_install +# Move cmake modules to the right dir +%if "%{name}" != "%{pname}" +mv %{buildroot}%{_prefix}/lib/cmake/%{pname} %{buildroot}%{_prefix}/lib/cmake/%{name} +%endif + %ldconfig_scriptlets -n %{name}-%{sover} %files -n %{name}-%{sover} @@ -95,9 +112,9 @@ %doc examples %{_libdir}/%{name}.so %{_includedir}/git2* -%{_libdir}/pkgconfig/libgit2.pc +%{_libdir}/pkgconfig/%{name}.pc %dir %{_prefix}/lib/cmake -%{_prefix}/lib/cmake/libgit2 +%{_prefix}/lib/cmake/%{name}/ %files tools %license COPYING ++++++ _multibuild ++++++ <multibuild> <package>experimental</package> </multibuild>