.
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=60
This commit is contained in:
53
man.spec
53
man.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package man
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,7 +31,8 @@ BuildRequires: pkg-config
|
||||
BuildRequires: po4a
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: zlib-devel
|
||||
Version: 2.6.6
|
||||
#Version: 2.6.6
|
||||
Version: 2.7.1
|
||||
Release: 0
|
||||
Summary: A Program for Displaying man Pages
|
||||
License: GPL-2.0+
|
||||
@@ -39,26 +40,28 @@ Group: System/Base
|
||||
Url: https://savannah.nongnu.org/projects/man-db
|
||||
PreReq: coreutils fillup
|
||||
Provides: man_db
|
||||
Requires: cronie
|
||||
Requires: glibc-locale
|
||||
%if 0%{suse_version} > 1300
|
||||
Recommends: groff-full
|
||||
%endif
|
||||
Requires: groff >= 1.18
|
||||
Requires: less
|
||||
Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz
|
||||
#Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz
|
||||
Source: man-db-2.7.1.tar.xz
|
||||
Source1: sysconfig.cron-man
|
||||
Source2: cron.daily.do_mandb
|
||||
Source3: cron.daily.clean_catman
|
||||
Source4: mancoding
|
||||
Source5: wrapper.c
|
||||
Patch0: man-db-2.6.5.dif
|
||||
Patch0: man-db-2.7.1.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
|
||||
Patch5: man-db-2.6.5-security4.dif
|
||||
Patch6: man-db-2.6.5-firefox.dif
|
||||
Patch5: man-db-2.7.1-security4.dif
|
||||
Patch6: man-db-2.7.1-firefox.dif
|
||||
Patch7: man-db-2.6.3-chinese.dif
|
||||
Patch9: man-db-2.6.5-zio.dif
|
||||
Patch9: man-db-2.7.1-zio.dif
|
||||
Patch10: man-db-2.6.3-listall.dif
|
||||
# PATCH-FIX-SUSE Fixes the documentation for bnc#786679
|
||||
Patch11: man-MAN_POSIXLY_CORRECT-man1.dif
|
||||
@@ -113,8 +116,12 @@ Authors:
|
||||
Cg g s m)
|
||||
SEC="${SEC[@]}"
|
||||
rm -f configure
|
||||
%global optflags %{optflags} -funroll-loops -pipe -D_GNU_SOURCE -D_SVID_SOURCE -Wall
|
||||
CFLAGS="%{optflags}"
|
||||
%global optflags %{optflags} -funroll-loops -pipe -Wall
|
||||
if grep -q _DEFAULT_SOURCE /usr/include/features.h ; then
|
||||
CFLAGS="%{optflags} -D_DEFAULT_SOURCE"
|
||||
else
|
||||
CFLAGS="%{optflags} -D_GNU_SOURCE -D_SVID_SOURCE"
|
||||
fi
|
||||
LDFLAGS=
|
||||
LIBS=
|
||||
LINGUAS=
|
||||
@@ -224,8 +231,12 @@ fi
|
||||
test -d var/catman/ && rm -rf var/catman/ || true
|
||||
|
||||
%post
|
||||
%{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf}
|
||||
%{fillup_only -an cron}
|
||||
|
||||
%posttrans
|
||||
mandb --quiet --create
|
||||
|
||||
%files -f man-db.lang
|
||||
%defattr(-,root,root)
|
||||
%doc docs/COPYING
|
||||
@@ -237,23 +248,19 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
%{_bindir}/apropos
|
||||
%{_bindir}/catman
|
||||
%{_bindir}/lexgrog
|
||||
%if %suse_version > 1030
|
||||
%attr(0755,root,root) %{_bindir}/man
|
||||
%attr(0755,root,root) %{_bindir}/mandb
|
||||
%else
|
||||
%attr(4755,root,root) %{_bindir}/man
|
||||
%attr(4755,root,root) %{_bindir}/mandb
|
||||
%endif
|
||||
%{_bindir}/man
|
||||
%{_bindir}/mandb
|
||||
%{_bindir}/manpath
|
||||
%{_bindir}/whatis
|
||||
%{_bindir}/zsoelim
|
||||
%dir %attr(0755,root,root) %{_prefix}/lib/man-db
|
||||
%attr(0755,root,root) %{_prefix}/lib/man-db/man
|
||||
%attr(0755,root,root) %{_prefix}/lib/man-db/mandb
|
||||
%attr(0755,man,man) %{_prefix}/lib/man-db/manconv
|
||||
%attr(0755,man,man) %{_prefix}/lib/man-db/globbing
|
||||
%dir %attr(0755,root,root) %{_libexecdir}/man-db
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/man
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/mandb
|
||||
%attr(0755,man,man) %{_libexecdir}/man-db/manconv
|
||||
%attr(0755,man,man) %{_libexecdir}/man-db/globbing
|
||||
%{_sbindir}/accessdb
|
||||
%{_libdir}/libman*.so
|
||||
%{_libexecdir}/man-db/zsoelim
|
||||
%{_libexecdir}/tmpfiles.d/man-db.conf
|
||||
%dir %{_datadir}/groff/site-tmac
|
||||
%{_datadir}/groff/site-tmac/tmac.andb
|
||||
%{_datadir}/groff/site-tmac/tmac.andocdb
|
||||
@@ -261,7 +268,7 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
%doc %{_mandir}/man5/*.5.gz
|
||||
%doc %{_mandir}/man8/*.8.gz
|
||||
%dir %{_mandir}/id
|
||||
%defattr(-,man,man)
|
||||
%defattr(-,man,root)
|
||||
%ghost %{_localstatedir}/cache/man/*
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.cron-man
|
||||
|
||||
|
Reference in New Issue
Block a user