2017-10-19 15:35:07 +02:00
|
|
|
#
|
2017-10-19 15:46:41 +02:00
|
|
|
# spec file for package MultiMarkdown-6
|
2017-10-19 15:35:07 +02:00
|
|
|
#
|
2019-03-06 10:33:18 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-10-19 15:35:07 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-06 10:33:18 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-10-19 15:35:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-10-19 15:46:41 +02:00
|
|
|
Name: MultiMarkdown-6
|
2019-03-06 10:33:18 +01:00
|
|
|
Version: 6.4.0
|
2017-10-19 15:35:07 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Reference implementation of MultiMarkdown
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Publishing/Other
|
2018-03-08 16:15:42 +01:00
|
|
|
URL: http://fletcherpenney.net/multimarkdown
|
2017-10-19 15:35:07 +02:00
|
|
|
# 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
|
2017-11-15 17:30:31 +01:00
|
|
|
BuildRequires: curl-devel
|
2017-10-19 15:46:41 +02:00
|
|
|
BuildRequires: fdupes
|
2017-10-19 15:35:07 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-10-19 15:46:41 +02:00
|
|
|
BuildRequires: texlive-filesystem
|
|
|
|
Requires: texlive-filesystem
|
2017-10-19 15:35:07 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2018-03-08 16:15:42 +01:00
|
|
|
Conflicts: MultiMarkdown-5
|
|
|
|
Provides: markdown
|
2017-10-19 15:35:07 +02:00
|
|
|
|
|
|
|
%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
|
2017-11-03 10:25:29 +01:00
|
|
|
%make_jobs
|
2017-10-19 15:35:07 +02:00
|
|
|
|
|
|
|
%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
|
2017-10-19 15:46:41 +02:00
|
|
|
%fdupes %{buildroot}
|
2017-10-19 15:35:07 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
%post
|
|
|
|
update-alternatives \
|
2017-10-19 15:46:41 +02:00
|
|
|
--install %{_bindir}/markdown markdown %{_bindir}/%{name}-markdown 40
|
2017-10-19 15:35:07 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ ! -f %{_bindir}/%{name}-markdown ] ; then
|
|
|
|
update-alternatives --remove markdown %{_bindir}/%{name}-markdown
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2018-03-08 16:15:42 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
2017-10-19 15:35:07 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/markdown
|
|
|
|
%{_bindir}/markdown
|
|
|
|
%{_bindir}/%{name}-markdown
|
|
|
|
%{_bindir}/%{name}-mmd
|
|
|
|
%{_bindir}/mmd2all
|
|
|
|
%{_bindir}/mmd2opml
|
|
|
|
%{_bindir}/mmd2pdf
|
|
|
|
%{_bindir}/mmd2tex
|
|
|
|
%{_bindir}/multimarkdown
|
2017-10-19 15:46:41 +02:00
|
|
|
%{_bindir}/mmd2epub
|
|
|
|
%{_bindir}/mmd2fodt
|
|
|
|
%{_bindir}/mmd2odt
|
|
|
|
%dir %{_datadir}/texmf/tex/latex/mmd6
|
|
|
|
%{_datadir}/texmf/tex/latex/mmd6/*
|
2017-10-19 15:35:07 +02:00
|
|
|
|
|
|
|
%changelog
|