From 3238c814b645133f215790da617df0a8ca37d05667a19af214fe26721929b6f2 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 19 Oct 2017 13:35:07 +0000 Subject: [PATCH] osc copypac from project:Publishing package:MultiMarkdown-5 revision:11, using expand OBS-URL: https://build.opensuse.org/package/show/Publishing/MultiMarkdown-6?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + MultiMarkdown-5-5.4.0.tar.xz | 3 ++ MultiMarkdown-5.changes | 68 ++++++++++++++++++++++++++ MultiMarkdown-5.spec | 92 ++++++++++++++++++++++++++++++++++++ _service | 15 ++++++ 6 files changed, 202 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 MultiMarkdown-5-5.4.0.tar.xz create mode 100644 MultiMarkdown-5.changes create mode 100644 MultiMarkdown-5.spec create mode 100644 _service diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/MultiMarkdown-5-5.4.0.tar.xz b/MultiMarkdown-5-5.4.0.tar.xz new file mode 100644 index 0000000..296ac3a --- /dev/null +++ b/MultiMarkdown-5-5.4.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96db04343872030527b9f306c468b46df12588eded9d95f549d381fffd7966bd +size 524936 diff --git a/MultiMarkdown-5.changes b/MultiMarkdown-5.changes new file mode 100644 index 0000000..086ee54 --- /dev/null +++ b/MultiMarkdown-5.changes @@ -0,0 +1,68 @@ +------------------------------------------------------------------- +Thu Jun 22 14:10:24 UTC 2017 - mpluskal@suse.com + +- Enable tests +- Update alernatives handling according to current guidelines + +------------------------------------------------------------------- +Fri Oct 28 13:30:26 UTC 2016 - mpluskal@suse.com + +- Fix typo and add more comments + +------------------------------------------------------------------- +Tue Oct 18 06:55:11 UTC 2016 - mpluskal@suse.com + +- Use update alternatives to allow parallel installation with discount +- Avoid conflict with mtools + +------------------------------------------------------------------- +Sun Oct 16 08:18:28 UTC 2016 - mpluskal@suse.com + +- 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 + +------------------------------------------------------------------- +Sat Jul 09 16:58:27 UTC 2016 - mpluskal@suse.com + +- 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 + +------------------------------------------------------------------- +Wed Jul 06 19:28:15 UTC 2016 - mpluskal@suse.com + +- Fix building on linux (needs static glibc and -D_GNU_SOURCE) + +------------------------------------------------------------------- +Sun May 01 10:57:35 UTC 2016 - mpluskal@suse.com + +- Update to version 5.2.0: + * ADDED: Add support for 'HTML FOOTER' metadata -- appended at very end of HTML documents (after footnotes) + * CHANGED: Update documentation for HTML Footer metadata + * CHANGED: Update Math test suite + * FIXED: Improve accuracy of strong/emph parsing; CHANGED: Allow nested strong/emph spans (though effect of output is not defined for all formats) + * ADDED: Add additional test cases + * CHANGED: recursive support for CriticMarkup syntax (e.g. an addition can be included inside a substitution). + * FIXED: Remove debugging statement in recent CriticMarkup changes + * CHANGED: Update test suite + * Version bump 5.2.0 + +------------------------------------------------------------------- +Sun May 1 10:42:27 UTC 2016 - mpluskal@suse.com + +- Initial package + diff --git a/MultiMarkdown-5.spec b/MultiMarkdown-5.spec new file mode 100644 index 0000000..9da05e6 --- /dev/null +++ b/MultiMarkdown-5.spec @@ -0,0 +1,92 @@ +# +# spec file for package MultiMarkdown-5 +# +# 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-5 +Version: 5.4.0 +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: gcc-c++ +BuildRequires: xz +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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 +export CFLAGS="%{optflags} -fPIE -D_GNU_SOURCE" +export CXXLAGS="%{optflags} -fPIE -D_GNU_SOURCE" +# Build will fail when this file is not present - build system will try to +# generate this file using MultiMarkdown which is not yet built +install -D /dev/null build/README.html +make %{?_smp_mflags} XFLAGS="%{optflags}" -C submodules/greg +%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 + +%check +%ctest + +%post +update-alternatives \ + --install %{_bindir}/markdown markdown %{_bindir}/%{name}-markdown 30 + +%postun +if [ ! -f %{_bindir}/%{name}-markdown ] ; then + update-alternatives --remove markdown %{_bindir}/%{name}-markdown +fi + +%files +%defattr(-,root,root) +%doc LICENSE.txt README.md CHANGELOG.md +%ghost %{_sysconfdir}/alternatives/markdown +%{_bindir}/markdown +%{_bindir}/%{name}-markdown +%{_bindir}/%{name}-mmd +%{_bindir}/mmd2all +%{_bindir}/mmd2odf +%{_bindir}/mmd2opml +%{_bindir}/mmd2pdf +%{_bindir}/mmd2rtf +%{_bindir}/mmd2tex +%{_bindir}/multimarkdown + +%changelog diff --git a/_service b/_service new file mode 100644 index 0000000..cf95d62 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + https://github.com/fletcher/MultiMarkdown-5.git + git + enable + MultiMarkdown-5 + 5.4.0 + 5.4.0 + + + *.tar + xz + + +