summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLyes Saadi <mail@lyes.eu>2020-02-10 22:28:34 +0100
committerLyes Saadi <mail@lyes.eu>2020-02-10 22:28:34 +0100
commit60153ca47cc0fcc31a3a3fbd610918e270a9829b (patch)
tree9d6d83bae1c276b92e7773ad5d24729c0431a777
parent33f952769c46666b4395bd3be9297b5d6cc50881 (diff)
downloadspec-60153ca47cc0fcc31a3a3fbd610918e270a9829b.tar.gz
spec-60153ca47cc0fcc31a3a3fbd610918e270a9829b.tar.xz
spec-60153ca47cc0fcc31a3a3fbd610918e270a9829b.zip
Updating multimarkdown.
-rw-r--r--multimarkdown/multimarkdown.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/multimarkdown/multimarkdown.spec b/multimarkdown/multimarkdown.spec
new file mode 100644
index 0000000..75c721b
--- /dev/null
+++ b/multimarkdown/multimarkdown.spec
@@ -0,0 +1,76 @@
+%global projectname MultiMarkdown-6
+
+Name: multimarkdown
+Version: 6.5.1
+Release: 3%{?dist}
+Summary: Lightweight markup processor to produce HTML, LaTeX, and more
+
+License: MIT and GPLv2 and BSD and zlib
+URL: https://fletcher.github.io/%{projectname}/
+Source0: https://github.com/fletcher/%{projectname}/archive/%{version}/%{projectname}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: make
+BuildRequires: perl
+
+# Upstream choosed not to unbundle these:
+# https://github.com/fletcher/MultiMarkdown-6/issues/180#issuecomment-584335760
+Provides: bundled(CuTest)
+Provides: bundled(argtable3)
+Provides: bundled(miniz)
+Provides: bundled(uthash)
+
+# d_string.c and d_string.h
+Provides: bundled(multimarkdown) = 4.7.1
+
+%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}
+
+%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 <fedora@lyes.eu> - 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 <fedora@lyes.eu> - 6.5.1-2
+- Fixing tests.
+
+* Thu Feb 06 2020 Lyes Saadi <fedora@lyes.eu> - 6.5.1-1
+- Initial package.