From bb1f5ff62f80125d97fc5224ffcee19e3ced2f08 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 24 Dec 2025 16:44:35 -0800 Subject: [PATCH] add: cmark-gfm (#8574) (#8577) --- anda/lib/cmark-gfm/anda.hcl | 5 +++ anda/lib/cmark-gfm/cmark-gfm.spec | 65 +++++++++++++++++++++++++++++++ anda/lib/cmark-gfm/update.rhai | 1 + 3 files changed, 71 insertions(+) create mode 100644 anda/lib/cmark-gfm/anda.hcl create mode 100644 anda/lib/cmark-gfm/cmark-gfm.spec create mode 100644 anda/lib/cmark-gfm/update.rhai diff --git a/anda/lib/cmark-gfm/anda.hcl b/anda/lib/cmark-gfm/anda.hcl new file mode 100644 index 0000000000..59f0f51f06 --- /dev/null +++ b/anda/lib/cmark-gfm/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "cmark-gfm.spec" + } +} diff --git a/anda/lib/cmark-gfm/cmark-gfm.spec b/anda/lib/cmark-gfm/cmark-gfm.spec new file mode 100644 index 0000000000..f0d17b8dfc --- /dev/null +++ b/anda/lib/cmark-gfm/cmark-gfm.spec @@ -0,0 +1,65 @@ +Name: cmark-gfm +Version: 0.29.0.gfm.13 +Release: 1%{?dist} +License: BSD-2-Clause AND MIT +URL: https://github.com/github/cmark-gfm +Source: %{url}/archive/refs/tags/%{version}.tar.gz +Summary: GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C +Packager: metcya + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +cmark-gfm is an extended version of the C reference implementation of +CommonMark, a rationalized version of Markdown syntax with a spec. This +repository adds GitHub Flavored Markdown extensions to the upstream +implementation, as defined in the spec. + +%package libs +Summary: Library files for %{name} +%pkg_libs_files + +%description libs +Library files for %{name}. + +%package static +Summary: Static library files for %{name} +%pkg_static_files + +%description static +Static library files for %{name}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs = %{evr} +%pkg_devel_files + +%description devel +Development files for %{name}. + +%prep +%autosetup + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.* +%{_mandir}/man3/%{name}.3.* + +%files devel +%{_libdir}/cmake/*.cmake +%dir %{_libdir}/cmake-gfm-extensions +%{_libdir}/cmake-gfm-extensions/*.cmake + +%changelog +* Wed Dec 24 2025 metcya - 0.29.0.gfm.13 +- Package cmark-gfm diff --git a/anda/lib/cmark-gfm/update.rhai b/anda/lib/cmark-gfm/update.rhai new file mode 100644 index 0000000000..e39744cdcc --- /dev/null +++ b/anda/lib/cmark-gfm/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("github/cmark-gfm"));