From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] libgit2: New package Date: Mon, 02 Sep 2019 14:28:34 +0200 Message-ID: <20190902122834.27032-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7040717996998195382==" List-Id: --===============7040717996998195382== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This package is used to replace the bundled one in the rust source. Signed-off-by: Stefan Schantl --- 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 = # +############################################################################= ### + +name =3D libgit2 +version =3D 0.28.2 +release =3D 1 + +groups =3D System/Libraries +url =3D https://libgit2.org/ +license =3D GPLv2 with exceptions +summary =3D 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 =3D https://github.com/%{name}/%{name}/archive/v%{version}/ + +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 +=09 + # Don't run "online" tests + sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt +=09 + # Remove bundled libraries + rm -frv deps + end + + build + %{cmake} \ + -DCMAKE_BUILD_TYPE=3DRelWithDebInfo \ + -DSHA1_BACKEND=3DOpenSSL \ + -DUSE_HTTPS=3DOpenSSL + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.20.1 --===============7040717996998195382==--