# html_normalization and roundtriptest_library failing
%bcond_with tests
Name: cmark-gfm
Version: 0.29.0.gfm.13
Release: 1%{?dist}
Summary: CommonMark parsing and rendering - with GitHub Flavored Markdown extensions
License: BSD-2-Clause AND MIT
URL: https://github.com/github/cmark
Source0: https://github.com/github/cmark/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
`cmark` is the C reference implementation of CommonMark,
a rationalized version of Markdown syntax with a spec.
It provides a shared library (`libcmark`) with functions for parsing
CommonMark documents to an abstract syntax tree (AST), manipulating
the AST, and rendering the document to HTML, groff man, LaTeX,
CommonMark, or an XML representation of the AST. It also provides a
command-line program (`cmark`) for parsing and rendering CommonMark
documents.
%package devel
Summary: Development files for cmark-gfm
Requires: cmark-gfm-lib%{?_isa} = %{version}-%{release}
Requires: cmark-gfm%{?_isa} = %{version}-%{release}
%description devel
This package provides the development files for cmark.
%package lib
Summary: CommonMark parsing and rendering library
%description lib
This package provides the cmark library.
%prep
%autosetup
%build
%cmake -DCMARK_STATIC=OFF %{?_without_tests:-DCMARK_TESTS=OFF}
%cmake_build
%install
%cmake_install
%check
%if %{with tests}
%cmake_build --target test
%endif
%ldconfig_scriptlets lib
%files
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%files lib
%license COPYING
%{_libdir}/lib%{name}.so.%{version}
%{_libdir}/lib%{name}-extensions.so.%{version}
%files devel
%doc README.md
%{_includedir}/%{name}*
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-extensions.so
%{_libdir}/pkgconfig/lib%{name}.pc
%{_mandir}/man3/%{name}.3*
%{_libdir}/cmake/%{name}*
%{_libdir}/cmake-gfm-extensions/%{name}*
%changelog
* Wed Jan 24 2024 Fedora Release Engineering - 0.30.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering - 0.30.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Aug 4 2023 Jens Petersen
- migrate to SPDX license tags
* Wed Jul 19 2023 Fedora Release Engineering - 0.30.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Feb 3 2023 Jens Petersen - 0.30.3-2
- cmark-devel cmake requires cmark (rhbz#2166815)
* Fri Jan 27 2023 Jens Petersen - 0.30.3-1
- https://github.com/commonmark/cmark/releases/tag/0.30.3
* Fri Jan 20 2023 Jens Petersen - 0.30.2-1
- https://github.com/commonmark/cmark/releases/tag/0.30.2
- disable static library via cmake (rhbz#2161688)
* Thu Jan 19 2023 Fedora Release Engineering - 0.29.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 20 2022 Fedora Release Engineering - 0.29.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering - 0.29.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering - 0.29.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering - 0.29.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering - 0.29.0-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering - 0.29.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat Feb 1 2020 Jens Petersen - 0.29.0-1
- https://github.com/commonmark/cmark/releases/tag/0.29.0
- disable tests for F32: https://github.com/commonmark/cmark/issues/331
* Tue Jan 28 2020 Fedora Release Engineering - 0.28.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering - 0.28.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering - 0.28.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering - 0.28.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Apr 2 2018 Jens Petersen - 0.28.3-3
- run tests on Fedora and RHEL7 (#1561473)
* Wed Feb 07 2018 Fedora Release Engineering - 0.28.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Dec 11 2017 Jens Petersen - 0.28.3-1
- update to 0.28.3 (#1516914)
https://github.com/commonmark/cmark/releases
* Sun Aug 06 2017 Björn Esser - 0.27.1-4
- Rebuilt for AutoReq cmake-filesystem
* Wed Aug 02 2017 Fedora Release Engineering - 0.27.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering - 0.27.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Feb 22 2017 Jens Petersen - 0.27.1-1
- update to 0.27.1
* Tue Feb 7 2017 Jens Petersen - 0.25.2-3
- drop lib64 patch
* Sun Feb 5 2017 Jens Petersen - 0.25.2-2
- fix libdir in libcmark.pc for pkgconf (#1416426)
- use bcond for tests
* Fri Apr 29 2016 John Dulaney - 0.25.2-1
- Update to 0.25.2
* Thu Feb 4 2016 Jens Petersen - 0.24.1-1
- update to 0.24.1
* Wed Feb 03 2016 Fedora Release Engineering - 0.23.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jan 28 2016 Jens Petersen - 0.23.0-4
- BR c++ explicitly
- disable tests for EPEL6 since no python3
* Mon Jan 25 2016 Jens Petersen - 0.23.0-3
- include license in lib (#1266429)
* Thu Jan 21 2016 Jens Petersen - 0.23.0-2
- tweak the github release source url (#1266429)
* Wed Jan 20 2016 Jens Petersen - 0.23.0-1
- update to 0.23.0
- cmake include GNUInstallDirs (Marco Driusso, #1266429)
* Fri Sep 25 2015 Jens Petersen - 0.22.0-1
- initial packaging
- force lib64
- run tests