From 6b06f3418fdf5a2714406965146687d021d65f447638f2190be2b4a5f86fde9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 11 Sep 2024 10:35:59 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main md4c revision db8fc4e60c1bdd1898f75847b6317095 --- .gitattributes | 23 ++++++++++ md4c.changes | 4 ++ md4c.spec | 104 +++++++++++++++++++++++++++++++++++++++++++ release-0.5.2.tar.gz | 3 ++ 4 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 md4c.changes create mode 100644 md4c.spec create mode 100644 release-0.5.2.tar.gz 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/md4c.changes b/md4c.changes new file mode 100644 index 0000000..11a410a --- /dev/null +++ b/md4c.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 2 14:20:49 UTC 2024 - Christophe Marin + +- Init md4c diff --git a/md4c.spec b/md4c.spec new file mode 100644 index 0000000..ccb4ad6 --- /dev/null +++ b/md4c.spec @@ -0,0 +1,104 @@ +# +# spec file for package md4c +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: md4c +Version: 0.5.2 +Release: 0 +Summary: C Markdown parser +License: MIT +URL: https://github.com/mity/md4c +Source: https://github.com/mity/md4c/archive/refs/tags/release-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc +# For tests +BuildRequires: python3 + +%description +MD4C is Markdown parser implementation in C, with the following features: +- Compliance: Generally, MD4C aims to be compliant to the latest version of CommonMark specification. +- Extensions: MD4C supports some commonly requested and accepted extensions. +- Compactness: MD4C parser is implemented in one source file and one header +file. +- Embedding: MD4C parser is easy to reuse in other projects. +- Push model: MD4C parses the complete document and calls few callback +functions provided by the application to inform it about a start/end of every block, a start/end of every span, and with any textual contents. +- Encoding: MD4C by default expects UTF-8 encoding of the input document. + +This package provides the md2html utility. + +%package -n libmd4c0 +Summary: C Markdown parser + +%description -n libmd4c0 +MD4C is Markdown parser implementation in C, with the following features: +- Compliance: Generally, MD4C aims to be compliant to the latest version of CommonMark specification. +- Extensions: MD4C supports some commonly requested and accepted extensions. +- Compactness: MD4C parser is implemented in one source file and one header +file. +- Embedding: MD4C parser is easy to reuse in other projects. +- Push model: MD4C parses the complete document and calls few callback +functions provided by the application to inform it about a start/end of every block, a start/end of every span, and with any textual contents. +- Encoding: MD4C by default expects UTF-8 encoding of the input document. + +This package provides the md4c library. + +%package devel +Summary: Development files for md4c library +Requires: libmd4c0 = %{version} + +%description devel +This package contains development files needed to use md4c. + +%prep +%autosetup -p1 -n md4c-release-%{version} + +%build +%cmake + +%cmake_build + +%install +%cmake_install + +%ldconfig_scriptlets -n libmd4c0 + +%check +pushd %{__builddir} +../scripts/run-tests.sh +popd + +%files +%{_mandir}/man1/md2html.1%{?ext_man} +%{_bindir}/md2html + +%files -n libmd4c0 +%license LICENSE.md +%doc README.md +%{_libdir}/libmd4c-html.so.* +%{_libdir}/libmd4c.so.* + +%files devel +%{_includedir}/md4c-html.h +%{_includedir}/md4c.h +%{_libdir}/cmake/md4c/ +%{_libdir}/libmd4c-html.so +%{_libdir}/libmd4c.so +%{_libdir}/pkgconfig/md4c-html.pc +%{_libdir}/pkgconfig/md4c.pc + +%changelog diff --git a/release-0.5.2.tar.gz b/release-0.5.2.tar.gz new file mode 100644 index 0000000..8de63cf --- /dev/null +++ b/release-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55d0111d48fb11883aaee91465e642b8b640775a4d6993c2d0e7a8092758ef21 +size 237973