This package is used to replace the bundled one in the rust source.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- libgit2/libgit2.nm | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libgit2/libgit2.nm
diff --git a/libgit2/libgit2.nm b/libgit2/libgit2.nm new file mode 100644 index 000000000..f2b1afdfd --- /dev/null +++ b/libgit2/libgit2.nm @@ -0,0 +1,62 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = libgit2 +version = 0.28.2 +release = 1 + +groups = System/Libraries +url = https://libgit2.org/ +license = GPLv2 with exceptions +summary = C implementation of the Git core methods as a library with a solid API + +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. +end + +source_dl = https://github.com/%%7Bname%7D/%%7Bname%7D/archive/v%%7Bversion%7D/ + +build + requires + cmake + http-parser-devel + libssh2-devel + openssl-devel + zlib-devel + end + + prepare_cmds + # Remove VCS files from examples + find examples -name ".gitignore" -delete -print + + # Don't run "online" tests + sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt + + # Remove bundled libraries + rm -frv deps + end + + build + %{cmake} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DSHA1_BACKEND=OpenSSL \ + -DUSE_HTTPS=OpenSSL + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end