--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = mandoc
+version = 1.14.6
+release = 1
+
+groups = Application/System
+url = https://mdocml.bsd.lv
+license = ISC
+summary = A suite of tools compiling mdoc from the OpenBSD project
+
+description
+ A suite of tools compiling mdoc from the OpenBSD project
+end
+
+source_dl = https://mandoc.bsd.lv/snapshots/
+
+build
+ requires
+ zlib-devel
+ end
+
+ prepare_cmds
+ {
+ echo "CFLAGS='%{CFLAGS}'"
+ echo "LDFLAGS='%{LDFLAGS}'"
+ echo "PREFIX='%{prefix}'"
+ echo "MANDIR='%{mandir}'"
+ echo "INSTALL_PROGRAM='install -v -m 0755'"
+ } >> configure.local
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end