diff --git a/README.md b/README.md index e4048ff..d6541be 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mandoc +A suite of tools compiling mdoc from the OpenBSD project. + diff --git a/mandoc-configure.local b/mandoc-configure.local new file mode 100644 index 0000000..9025ff3 --- /dev/null +++ b/mandoc-configure.local @@ -0,0 +1,18 @@ +MANPATH_DEFAULT=/usr/local/share/man:/usr/share/man + +PREFIX=/usr +SBINDIR=$PREFIX/bin +MANDIR=$PREFIX/share/man + +# These conflict with man(7) and mdoc(7) from man-pages. +MANM_MAN=mandoc_man +MANM_MDOC=mandoc_mdoc + +# These conflict with binaries and manpages from groff. +BINM_SOELIM=msoelim +MANM_ROFF=mandoc_roff + +# Conflicts with man-db +BINM_MAN=mman +BINM_APROPOS=mapropos +BINM_WHATIS=mwhatis diff --git a/mandoc.spec b/mandoc.spec new file mode 100644 index 0000000..6300d48 --- /dev/null +++ b/mandoc.spec @@ -0,0 +1,67 @@ +Name: mandoc +Version: 1.14.6 +Release: 1mamba +Summary: A suite of tools compiling mdoc from the OpenBSD project +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://mdocml.bsd.lv +Source: https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz +Source1: mandoc-configure.local +License: ISC +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END + +%description +A suite of tools compiling mdoc from the OpenBSD project. + +%debug_package + +%prep +%setup -q +cp %{SOURCE1} configure.local + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) + +%{_bindir}/demandoc +%{_bindir}/makewhatis +%{_bindir}/mandoc +%{_bindir}/mapropos +%{_bindir}/mman +%{_bindir}/msoelim +%{_bindir}/mwhatis +%{_mandir}/man1/demandoc.1* +%{_mandir}/man1/mandoc.1* +%{_mandir}/man1/mapropos.1* +%{_mandir}/man1/mman.1* +%{_mandir}/man1/msoelim.1* +%{_mandir}/man1/mwhatis.1* +%{_mandir}/man5/man.conf.5* +%{_mandir}/man5/mandoc.db.5* +%{_mandir}/man7/eqn.7* +%{_mandir}/man7/mandoc_char.7* +%{_mandir}/man7/mandoc_man.7* +%{_mandir}/man7/mandoc_mdoc.7* +%{_mandir}/man7/mandoc_roff.7* +%{_mandir}/man7/tbl.7* +%{_mandir}/man8/makewhatis.8* +%doc LICENSE + +%changelog +* Tue Mar 26 2024 Silvan Calarco 1.14.6-1mamba +- package created using the webbuild interface