[packages/md4c] - new

qboosh qboosh at pld-linux.org
Sun May 24 20:36:08 CEST 2026


commit 6ead18d560e06a0e1e2c11843f0b75d3f9084c61
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 24 20:36:06 2026 +0200

    - new

 md4c.spec | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)
---
diff --git a/md4c.spec b/md4c.spec
new file mode 100644
index 0000000..12a3453
--- /dev/null
+++ b/md4c.spec
@@ -0,0 +1,116 @@
+Summary:	Markdown for C libraries
+Summary(pl.UTF-8):	Biblioteki Mardown dla C
+Name:		md4c
+Version:	0.5.3
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/mity/md4c/tags
+Source0:	https://github.com/mity/md4c/archive/release-%{version}/%{name}-release-%{version}.tar.gz
+# Source0-md5:	04b54eb032d324be3d9307bda1125320
+URL:		http://github.com/mity/md4c
+BuildRequires:	cmake >= 3.12
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MD4C is a Markdown parser implementation in C, with the following
+features:
+- Compliance: Generally, MD4C aims to be compliant to the latest
+  version of CommonMark specification (<http://spec.commonmark.org/>).
+  Currently it's fully compliant to CommonMark 0.31.
+- Extensions: MD4C supports some commonly requested and accepted
+  extensions.
+- Performance: MD4C is very fast.
+- Compactness: MD4C parser is implemented in one source file and one
+  header file. There are no dependencies other than standard C
+  library.
+- Embedding: MD4C parser is easy to reuse in other projects, its API
+  is very straightforward: There is actually just one function,
+  "md_parse()".
+- 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.
+- Portability: MD4C builds and works on Windows and POSIX-compliant
+  OSes.
+- Encoding: MD4C by default expects UTF-8 encoding of the input
+  document.
+- Permissive license: MD4C is available under the MIT license.
+
+%description -l pl.UTF-8
+MD4C to implementacja parsera Markdown w C o następujących zaletach:
+- zgodność: MD4C ma na celu zgodność z najnowszą specyfikacją
+  CommonMark (<http://spec.commonmark.org/>). Obecnie jest w pełni
+  zgodna z CommonMark 0.31.
+- rozszerzenia: MD4C obsługuje niektóre często pożądane i akceutowane
+  rozszerzenia.
+- wydajność: MD4C jest bardzo szybki.
+- niewielki rozmiar: parser MD4C jest zaimplementowany w pojedynczym
+  pliku źródłowym i jednym nagłówkowym. Nie ma zależności innych niż
+  biblioteka standardowa C.
+- osadzanie: parser MD4C jest łatwy w użyciu w innych projektach, jego
+  API jest bardzo proste: jest to właściwie jedna funkcja:
+  "md5parse()".
+- model "push": MD4C analizuje kompletny dokument i wywołuje kilka
+  funkcji zwrotnych, dostarczanych przez aplikację, w celu
+  poinformowania o początku/końcu każdego bloku, początku/końcu
+  każdego akapitu, fragmentu tekstu oraz treści tekstowej.
+- przenośność: MD4C buduje się i działa na Windows oraz systemach
+  zgodnych z POSIX.
+- kodowanie: MD4C domyślnie oczekuje na wejściu kodowania UTF-8.
+- elastyczna licencja: MD4C jest dostępna na licencji MIT.
+
+%package devel
+Summary:	Header files for MD4C libraries
+Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek MD4C
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for MD4C libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek MD4C.
+
+%prep
+%setup -q -n %{name}-release-%{version}
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE.md README.md
+%attr(755,root,root) %{_bindir}/md2html
+%{_libdir}/libmd4c.so.*.*.*
+%ghost %{_libdir}/libmd4c.so.0
+%{_libdir}/libmd4c-html.so.*.*.*
+%ghost %{_libdir}/libmd4c-html.so.0
+%{_mandir}/man1/md2html.1*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libmd4c.so
+%{_libdir}/libmd4c-html.so
+%{_includedir}/md4c.h
+%{_includedir}/md4c-html.h
+%{_libdir}/cmake/md4c
+%{_pkgconfigdir}/md4c.pc
+%{_pkgconfigdir}/md4c-html.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/md4c.git/commitdiff/6ead18d560e06a0e1e2c11843f0b75d3f9084c61



More information about the pld-cvs-commit mailing list