Accepting request 754654 from home:mcepl

OBS-URL: https://build.opensuse.org/request/show/754654
OBS-URL: https://build.opensuse.org/package/show/Documentation/mandoc?expand=0&rev=1
This commit is contained in:
Thomas Schraitle 2019-12-13 12:30:26 +00:00 committed by Git OBS Bridge
commit 1d24bf1819
5 changed files with 197 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
mandoc-1.14.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7
size 651846

41
mandoc.changes Normal file
View File

@ -0,0 +1,41 @@
-------------------------------------------------------------------
Sun Mar 10 17:27:07 CET 2019 - Matej Cepl <mcepl@suse.com>
- This package is meant as an alternative lightweight replacement
for man-pages package. It does not have that many dependencies,
it is written in C, see http://mandoc.bsd.lv/ for more.
- Update to the 1.14.5 release proper:
* The apropos(1) utility now accepts case-insensitive extended
regular expressions by default, improving POSIX compliance
(thanks to Wolfram Schneider for the suggestion).
* The new man(1) -O tag[=term] output option opens a page at the
definition of a term (thanks to Klemens Nanni for the suggestion).
* The output from tbl(7) has been significantly improved in both
the HTML and the UTF-8 output modes (thanks to Pali Rohar for
many reports and suggestions).
* Several syntax errors have been fixed in HTML output and the
HTML output code quality has been further improved, in particular
with respect to paragraphs, tagged lists, and tooltips
(thanks to John Gardner for significant help).
* Low-level roff(7) support has been further improved such that
mandoc can now handle the manual pages of the groff package.
* Many bugs have been fixed.
-------------------------------------------------------------------
Wed Mar 6 21:45:26 CET 2019 - Matej Cepl <mcepl@suse.com>
- Upgrade to 1.14.5rc1. Changes too many to enlist here, for the
complete list see file NEWS in the package.
- Add Provides and Conflicts man.
- Add alternatives for all commands and manpages.
-------------------------------------------------------------------
Wed Mar 6 17:20:58 CET 2019 - Matej Cepl <mcepl@suse.com>
- Fix SPEC file according to the review by werner@suse.com. Thank
you!
-------------------------------------------------------------------
Wed Nov 28 13:52:18 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Initial package of mandoc 1.14.4

129
mandoc.spec Normal file
View File

@ -0,0 +1,129 @@
#
# spec file for package mandoc
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: mandoc
Version: 1.14.5
Release: 0
Summary: UNIX manpage compiler
License: ISC
Group: Productivity/Publishing/Troff
URL: http://mandoc.bsd.lv/
Source: http://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz
BuildRequires: zlib-devel
BuildRequires: update-alternatives
Provides: man = %{version}
Conflicts: man
Conflicts: groff
Requires(post): update-alternatives
Requires(postun): update-alternatives
%description
The mandoc manpage compiler toolset (formerly called "mdocml")
is a suite of tools compiling mdoc(7), the roff(7) macro language
of choice for BSD manual pages, and man(7), the predominant
historical language for UNIX manuals.
It includes a man(1) manual viewer and additional tools.
For general information, see <http://mandoc.bsd.lv/>.
%prep
%setup -q
%build
%{?!make_build:%define make_build make %{?_smp_mflags} V=1 VERBOSE=1}
export CPPFLAGS="%{optflags}"
export CFLAGS="%optflags"
%configure
%make_build
%install
%make_install MANDIR=%{_mandir} BINDIR=%{_bindir} SBINDIR=%{_sbindir}
cp -fv %{buildroot}%{_bindir}/apropos %{_tmppath}/
mv -fv %{_tmppath}/apropos %{buildroot}%{_sbindir}/makewhatis
# create a dummy target for /etc/alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for cmd in apropos man soelim ; do
mv %{buildroot}%{_bindir}/$cmd{,.mandoc}
ln -s -f %{_sysconfdir}/alternatives/$cmd %{buildroot}%{_bindir}/$cmd
done
# sec 1
for man in apropos man soelim whatis ; do
from=$(ls %{buildroot}%{_mandir}/man1/$man.1*)
to=$(echo $from|sed -e 's!\.1$!!')-mandoc.1
mv -v "$from" "$to"
ln -s -f %{_sysconfdir}/alternatives/$man.1 "$from"
done
# sec 7
for man in eqn man mdoc roff tbl ; do
from=$(ls %{buildroot}%{_mandir}/man7/$man.7*)
to=$(echo $from|sed -e 's!\.7$!!')-mandoc.7
mv -v "$from" "$to"
ln -s -f %{_sysconfdir}/alternatives/$man.7 "$from"
done
%post
update-alternatives --install \
%{_bindir}/man man %{_bindir}/man.mandoc 1000 \
--slave %{_bindir}/apropos apropos %{_bindir}/apropos.mandoc \
--slave %{_bindir}/soelim soelim %{_bindir}/soelim.mandoc \
--slave %{_mandir}/man1/apropos.1%{?ext_man} apropos.1%{?ext_man} %{_mandir}/man1/apropos-mandoc.1%{?ext_man} \
--slave %{_mandir}/man1/man.1%{?ext_man} man.1%{?ext_man} %{_mandir}/man1/man-mandoc.1%{?ext_man} \
--slave %{_mandir}/man1/soelim.1%{?ext_man} soelim.1%{?ext_man} %{_mandir}/man1/soelim-mandoc.1%{?ext_man} \
--slave %{_mandir}/man1/whatis.1%{?ext_man} whatis.1%{?ext_man} %{_mandir}/man1/whatis-mandoc.1%{?ext_man} \
--slave %{_mandir}/man7/eqn.7%{?ext_man} eqn.7%{?ext_man} %{_mandir}/man7/eqn-mandoc.7%{?ext_man} \
--slave %{_mandir}/man7/man.7%{?ext_man} man.7%{?ext_man} %{_mandir}/man7/man-mandoc.7%{?ext_man} \
--slave %{_mandir}/man7/mdoc.7%{?ext_man} mdoc.7%{?ext_man} %{_mandir}/man7/mdoc-mandoc.7%{?ext_man} \
--slave %{_mandir}/man7/roff.7%{?ext_man} roff.7%{?ext_man} %{_mandir}/man7/roff-mandoc.7%{?ext_man} \
--slave %{_mandir}/man7/tbl.7%{?ext_man} tbl.7%{?ext_man} %{_mandir}/man7/tbl-mandoc.7%{?ext_man}
%preun
if [ $1 -eq 0 ] ; then
update-alternatives --remove man %{_bindir}/man.mandoc
fi
%files
%license LICENSE
%doc NEWS TODO
%{_bindir}/apropos*
%{_bindir}/demandoc
%{_bindir}/man*
%{_bindir}/soelim*
%{_bindir}/whatis
%{_sbindir}/makewhatis
%{_mandir}/man1/*.1%{?ext_man}
%{_mandir}/man5/*.5%{?ext_man}
%{_mandir}/man7/*.7%{?ext_man}
%{_mandir}/man8/*.8%{?ext_man}
%ghost %{_sysconfdir}/alternatives/man
%ghost %{_sysconfdir}/alternatives/apropos
%ghost %{_sysconfdir}/alternatives/soelim
%ghost %{_sysconfdir}/alternatives/apropos.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/man.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/soelim.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/whatis.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/eqn.7%{?ext_man}
%ghost %{_sysconfdir}/alternatives/man.7%{?ext_man}
%ghost %{_sysconfdir}/alternatives/mdoc.7%{?ext_man}
%ghost %{_sysconfdir}/alternatives/roff.7%{?ext_man}
%ghost %{_sysconfdir}/alternatives/tbl.7%{?ext_man}
%changelog