forked from pool/libgit2
- update to 1.8.1:
* In v1.8, libgit2 introduced the `report_unchanged ` member in
the `git_fetch_options` structure. We mistakenly introduced
this as a bitfield, which is not suitable for our public API.
To correct this mistake, we have _removed_ the
`report_unchanged ` member. To support the report unchanged
tips option, users can set the `update_fetchhead`
member to include the `GIT_REMOTE_UPDATE_REPORT_UNCHANGED`
value.
* The libgit2 projects regrets the API change, but this was
required to support cross-platform compatibility.
* commit: Fix git_commit_create_from_stage without author and
* committer
* process.c: fix environ
* Bounds check for pack index read
* transport: provide a useful error message during cancellation
* transport: support sha256 oids
* Revparse: Correctly accept ref with '@' at the end
* remote: drop bitfields in git_remote_fetch_options
* examples: fix memory leak in for-each-ref.c
* xdiff: use proper free function
* rand: avoid uninitialized loadavg warnings
* cli: include alloca on illumos / solaris / sunos
* Update git_array allocator to obey strict aliasing rules
* tree: avoid mixed signedness comparison by @ethomson in
- require library required by pkg-config file
* fix out-of-bounds reads when processing smart-protocol "ng"
- Changed API:
- Fix license to be GPL-2.0-with-GCC-exception
OBS-URL: https://build.opensuse.org/request/show/1174831
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgit2?expand=0&rev=133
105 lines
3.0 KiB
RPMSpec
105 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package libgit2
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de>
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 1_8
|
|
Name: libgit2
|
|
Version: 1.8.1
|
|
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
|
|
Source1: libgit2-rpmlintrc
|
|
BuildRequires: cmake >= 3.5.1
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(libpcre2-posix)
|
|
BuildRequires: pkgconfig(libssh2)
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%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
|
|
you to write native speed custom Git applications in any language
|
|
with bindings.
|
|
|
|
%package -n %{name}-%{sover}
|
|
Summary: C git library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{name}-%{sover}
|
|
libgit2 is a portable, pure C implementation of the Git core methods
|
|
provided as a re-entrant linkable library with a solid API, allowing
|
|
you to write native speed custom Git applications in any language
|
|
with bindings.
|
|
|
|
%package devel
|
|
Summary: C git library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-%{sover} >= %{version}
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to compile and develop applications that use libgit2.
|
|
|
|
%package tools
|
|
Summary: A Git command-line interface based on libgit2
|
|
Group: Development/Tools/Version Control
|
|
|
|
%description tools
|
|
This package contains a git cli based on libgit2.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
find examples -type f -name ".gitignore" -print -delete
|
|
|
|
%build
|
|
%cmake \
|
|
-DUSE_SSH:BOOL=ON \
|
|
-DREGEX_BACKEND=pcre2 \
|
|
-DENABLE_REPRODUCIBLE_BUILDS:BOOL=ON \
|
|
%{nil}
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%ldconfig_scriptlets -n %{name}-%{sover}
|
|
|
|
%files -n %{name}-%{sover}
|
|
%license COPYING
|
|
%doc AUTHORS README.md
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%license COPYING
|
|
%doc examples
|
|
%{_libdir}/%{name}.so
|
|
%{_includedir}/git2*
|
|
%{_libdir}/pkgconfig/libgit2.pc
|
|
|
|
%files tools
|
|
%license COPYING
|
|
%{_bindir}/*
|
|
|
|
%changelog
|