%global projectname MultiMarkdown-6 Name: multimarkdown Version: 6.5.1 Release: 4%{?dist} Summary: Lightweight markup processor to produce HTML, LaTeX, and more # MultiMarkdown 6 is licensed under MIT, licenses of bundled software is next to the bundling declaration License: MIT and ((MIT and GPLv2) and zlib and BSD and MIT and BSD) URL: https://fletcher.github.io/%{projectname}/ Source0: https://github.com/fletcher/%{projectname}/archive/%{version}/%{projectname}-%{version}.tar.gz # https://github.com/fletcher/MultiMarkdown-6/pull/184 Patch0: fsf-address.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: make BuildRequires: perl # Upstream choosed not to unbundle these: # https://github.com/fletcher/MultiMarkdown-6/issues/180#issuecomment-584335760 # Both MIT and GPLv2 (d_string.c and d_string.h) Provides: bundled(multimarkdown) = 4.7.1 # The zlib/libpng License Provides: bundled(CuTest) # The Revised BSD License Provides: bundled(argtable3) # The MIT License Provides: bundled(miniz) # The Revised BSD License Provides: bundled(uthash) %description MultiMarkdown is a superset of the Markdown lightweight markup syntax with support for additional output formats and features. Writing with MultiMarkdown allows you to separate the content and structure of your document from the formatting. You focus on the actual writing, without having to worry about making the styles of your chapter headers match, or ensuring the proper spacing between paragraphs. And with a little forethought, a single plain text document can easily be converted into multiple output formats without having to rewrite the entire thing or format it by hand. Even better, you don’t have to write in “computer-ese” to create well formatted HTML or LaTeX commands. You just write, MultiMarkdown takes care of the rest. %prep %autosetup -n %{projectname}-%{version} -S git %build cd build %cmake -D CMAKE_BUILD_TYPE=Release .. %make_build %install %cmake -D CMAKE_INSTALL_PREFIX=%{buildroot}/usr -P build/cmake_install.cmake # Removing these 2 files as they can cause conflicts with discount and mtools respectively: # See https://github.com/fletcher/MultiMarkdown-6/issues/180#issuecomment-584353783 rm -f %{buildroot}/usr/bin/markdown %{buildroot}/usr/bin/mmd %check cd build ctest -V %{?_smp_mflags} %files %license LICENSE.txt %doc QuickStart/QuickStart.* %doc DevelopmentNotes/DevelopmentNotes.* %{_bindir}/multimarkdown %{_bindir}/mmd2* %{_datadir}/texmf/tex/latex/mmd6 %changelog * Mon Feb 10 2020 Lyes Saadi - 6.5.1-4 - Patching FSF address. - Documenting the licensing breakdown. * Mon Feb 10 2020 Lyes Saadi - 6.5.1-3 - https://github.com/fletcher/MultiMarkdown-6/issues/180 : - Renaming the package from MultiMarkdown-6 -> multimarkdown. * Thu Feb 06 2020 Lyes Saadi - 6.5.1-2 - Fixing tests. * Thu Feb 06 2020 Lyes Saadi - 6.5.1-1 - Initial package.