1
0
MultiMarkdown-6/MultiMarkdown-6.spec
Martin Pluskal 505dad0067 - New package MultiMarkdown-6 based on MultiMarkdown-5
- Enable tests
- Update alernatives handling according to current guidelines

- Fix typo and add more comments

- Use update alternatives to allow parallel installation with discount
- Avoid conflict with mtools

- Update to version 5.4.0:
  * Improve accuracy and performance of strong/emph
  * CHANGED: Update greg
  * 5.3.0
  * CHANGED: Update README
  * ADDED: Move static library options to separate make target
  * FIXED: Fix crash with empty table label
  * ADDED: Add email address to cpack settings (addresses #31)
  * CHANGED: Increase list of syntax structures that are evaluated for abbreviations (Thanks, David!)
  * FIXED: Avoids problem mentioned on github (#30), but doesn't actually solve it. Any help appreciated!
  * version bump 5.4.0

- Update to version 5.3.0:
  * FIXED: Don't allow math spans inside strong/emph
  * FIXED: Fix slow parsing of complex strong/emph (Fixes #18)
  * CHANGED: Update test suite
  * FIXED: Improve performance; FIXED: Fix additional edge case in emph/strong parser
  * Improve accuracy and performance of strong/emph
  * CHANGED: Update greg
  * 5.3.0

OBS-URL: https://build.opensuse.org/package/show/Publishing/MultiMarkdown-6?expand=0&rev=2
2017-10-19 13:46:41 +00:00

91 lines
2.7 KiB
RPMSpec

#
# spec file for package MultiMarkdown-6
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: MultiMarkdown-6
Version: 6.2.2
Release: 0
Summary: Reference implementation of MultiMarkdown
License: MIT
Group: Productivity/Publishing/Other
Url: http://fletcherpenney.net/multimarkdown
# We have to use tarball generated via _service as released ones are
# missing submodules that are necessary for building
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: texlive-filesystem
Requires: texlive-filesystem
Requires(post): update-alternatives
Requires(postun): update-alternatives
%description
MultiMarkdown is a derivative of Markdown that adds new syntax features,
such as footnotes, tables, and metadata. Additionally, it offers mechanisms
to convert plain text into LaTeX in addition to HTML.
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
# Avoid conflict with mtools
mv %{buildroot}%{_bindir}/mmd %{buildroot}%{_bindir}/%{name}-mmd
# multimarkdown is provided by other packages thus we use
# update-alternatives
mv %{buildroot}%{_bindir}/markdown %{buildroot}%{_bindir}/%{name}-markdown
install -d %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/markdown
ln -sf %{_sysconfdir}/alternatives/markdown %{buildroot}%{_bindir}/markdown
%fdupes %{buildroot}
%check
%ctest
%post
update-alternatives \
--install %{_bindir}/markdown markdown %{_bindir}/%{name}-markdown 40
%postun
if [ ! -f %{_bindir}/%{name}-markdown ] ; then
update-alternatives --remove markdown %{_bindir}/%{name}-markdown
fi
%files
%doc LICENSE.txt README.md
%ghost %{_sysconfdir}/alternatives/markdown
%{_bindir}/markdown
%{_bindir}/%{name}-markdown
%{_bindir}/%{name}-mmd
%{_bindir}/mmd2all
%{_bindir}/mmd2opml
%{_bindir}/mmd2pdf
%{_bindir}/mmd2tex
%{_bindir}/multimarkdown
%{_bindir}/mmd2epub
%{_bindir}/mmd2fodt
%{_bindir}/mmd2odt
%dir %{_datadir}/texmf/tex/latex/mmd6
%{_datadir}/texmf/tex/latex/mmd6/*
%changelog