From 26ab377e95c4e2a5b024b32e89fa16e454af23de Mon Sep 17 00:00:00 2001 From: metcya <134973769+metcya@users.noreply.github.com> Date: Fri, 26 Dec 2025 00:08:12 -0600 Subject: [PATCH] fix(cmark-gfm): fix cmake install directories (#8639) * add: cmark-gfm * add description for static subpackage * oops * fix(cmark-gfm): fix cmake install directories --------- Signed-off-by: metcya <134973769+metcya@users.noreply.github.com> --- anda/lib/cmark-gfm/cmark-gfm.spec | 15 +++++++++------ anda/lib/cmark-gfm/fix-cmake-dir.patch | 13 +++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 anda/lib/cmark-gfm/fix-cmake-dir.patch diff --git a/anda/lib/cmark-gfm/cmark-gfm.spec b/anda/lib/cmark-gfm/cmark-gfm.spec index f0d17b8dfc..225eff124c 100644 --- a/anda/lib/cmark-gfm/cmark-gfm.spec +++ b/anda/lib/cmark-gfm/cmark-gfm.spec @@ -1,9 +1,10 @@ Name: cmark-gfm Version: 0.29.0.gfm.13 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD-2-Clause AND MIT URL: https://github.com/github/cmark-gfm Source: %{url}/archive/refs/tags/%{version}.tar.gz +Patch0: fix-cmake-dir.patch Summary: GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C Packager: metcya @@ -39,7 +40,7 @@ Requires: %{name}-libs = %{evr} Development files for %{name}. %prep -%autosetup +%autosetup -p1 %build %cmake @@ -56,10 +57,12 @@ Development files for %{name}. %{_mandir}/man3/%{name}.3.* %files devel -%{_libdir}/cmake/*.cmake -%dir %{_libdir}/cmake-gfm-extensions -%{_libdir}/cmake-gfm-extensions/*.cmake +%{_libdir}/cmake/cmark-gfm/ +%{_libdir}/cmake-gfm-extensions/ %changelog -* Wed Dec 24 2025 metcya - 0.29.0.gfm.13 +* Thu Dec 25 2025 metcya - 0.29.0.gfm.13-2 +- Fix cmake install directories + +* Wed Dec 24 2025 metcya - 0.29.0.gfm.13-1 - Package cmark-gfm diff --git a/anda/lib/cmark-gfm/fix-cmake-dir.patch b/anda/lib/cmark-gfm/fix-cmake-dir.patch new file mode 100644 index 0000000000..fa554034da --- /dev/null +++ b/anda/lib/cmark-gfm/fix-cmake-dir.patch @@ -0,0 +1,13 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 84dd2a0..d8f5ffa 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -175,7 +175,7 @@ if(CMARK_SHARED OR CMARK_STATIC) + DESTINATION include + ) + +- install(EXPORT cmark-gfm DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake) ++ install(EXPORT cmark-gfm DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cmark-gfm) + endif() + + # Feature tests