SHA256
1
0
forked from pool/man

Update to man-db 2.7.6

OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=71
This commit is contained in:
2016-12-16 09:45:04 +00:00
committed by Git OBS Bridge
parent 105760fe7d
commit b9bb15e12b
13 changed files with 240 additions and 226 deletions

View File

@@ -16,6 +16,8 @@
#
%bcond_with wrapman
Name: man
BuildRequires: automake
BuildRequires: flex
@@ -31,7 +33,7 @@ BuildRequires: pkg-config
BuildRequires: po4a
BuildRequires: xz-devel
BuildRequires: zlib-devel
Version: 2.7.1
Version: 2.7.6
Release: 0
Summary: A Program for Displaying man Pages
License: GPL-2.0+
@@ -39,7 +41,7 @@ Group: System/Base
Url: https://savannah.nongnu.org/projects/man-db
PreReq: coreutils fillup
Provides: man_db
Requires: cronie
Requires: cron
Requires: glibc-locale
%if 0%{suse_version} > 1300
Recommends: groff-full
@@ -52,7 +54,8 @@ Source2: cron.daily.do_mandb
Source3: cron.daily.clean_catman
Source4: mancoding
Source5: wrapper.c
Patch0: man-db-2.7.1.dif
Source6: man-rpmlintrc
Patch0: man-db-2.7.6.dif
Patch1: man-db-2.6.3-man0.dif
Patch2: man-db-2.3.19deb4.0-groff.dif
Patch4: man-db-2.6.3-section.dif
@@ -90,9 +93,9 @@ Authors:
%patch7 -p0 -b .chinese
%patch9 -p0 -b .zio
%patch10 -p0 -b .listall
%patch11 -p0 -b .p11
%patch12 -p1 -b .p12
%patch0 -p0 -b .0
%patch11 -p0
%patch12 -p1
%build
gettextize --force --copy --no-changelog
@@ -139,7 +142,7 @@ Authors:
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
%configure \
--enable-dups \
--enable-setuid=man \
--enable-cache-owner=man \
--with-device=utf8 \
--with-zio \
--with-gnu-ld \
@@ -196,12 +199,14 @@ fi
# wrapper which drops roots privileges if root executes man or mandb
if test -x %{buildroot}%{_bindir}/mandb ; then
mv %{buildroot}%{_bindir}/mandb %{buildroot}%{_prefix}/lib/man-db/
install wrapper %{buildroot}%{_bindir}/mandb
fi
%if %{with wrapman}
if test -x %{buildroot}%{_bindir}/man ; then
mv %{buildroot}%{_bindir}/man %{buildroot}%{_prefix}/lib/man-db/
ln -sf mandb %{buildroot}%{_bindir}/man
fi
install wrapper %{buildroot}%{_bindir}/mandb
ln -sf mandb %{buildroot}%{_bindir}/man
%endif
mkdir -p %{buildroot}%{_mandir}
pushd %{buildroot}%{_mandir}/
rm -rf *.ascii/
@@ -235,6 +240,9 @@ test -d var/catman/ && rm -rf var/catman/ || true
%post
%{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf}
%{fillup_only -an cron}
/sbin/ldconfig
%postun -p /sbin/ldconfig
%posttrans
mandb --quiet --create
@@ -255,7 +263,9 @@ mandb --quiet --create
%{_bindir}/manpath
%{_bindir}/whatis
%dir %attr(0755,root,root) %{_libexecdir}/man-db
%if %{with wrapman}
%attr(0755,root,root) %{_libexecdir}/man-db/man
%endif
%attr(0755,root,root) %{_libexecdir}/man-db/mandb
%attr(0755,man,man) %{_libexecdir}/man-db/manconv
%attr(0755,man,man) %{_libexecdir}/man-db/globbing
@@ -273,8 +283,8 @@ mandb --quiet --create
%doc %{_mandir}/man5/*.5.gz
%doc %{_mandir}/man8/*.8.gz
%dir %{_mandir}/id
%defattr(-,man,root)
%ghost %{_localstatedir}/cache/man/*
%{_localstatedir}/adm/fillup-templates/sysconfig.cron-man
%defattr(-,man,man)
%ghost %{_localstatedir}/cache/man/*
%changelog