This commit is contained in:
committed by
Git OBS Bridge
parent
133dedf978
commit
ba881e29ac
125
man.spec
125
man.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package man (Version 2.5.0)
|
||||
# spec file for package man (Version 2.5.1)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
@@ -23,12 +23,13 @@ BuildRequires: gettext-runtime gettext-tools
|
||||
%else
|
||||
BuildRequires: gettext gettext-devel
|
||||
%endif
|
||||
Version: 2.5.0
|
||||
Release: 22
|
||||
Version: 2.5.1
|
||||
Release: 1
|
||||
Summary: A Program for Displaying man Pages
|
||||
License: GPL v2 or later
|
||||
Url: https://savannah.nongnu.org/projects/man-db
|
||||
Group: System/Base
|
||||
PreReq: fileutils fillup
|
||||
PreReq: coreutils fillup
|
||||
Provides: man_db
|
||||
Requires: groff >= 1.18 less
|
||||
AutoReqProv: on
|
||||
@@ -38,14 +39,13 @@ Source2: cron.daily.do_mandb
|
||||
Source3: cron.daily.clean_catman
|
||||
Source4: mancoding
|
||||
Patch0: man-db-%{version}.dif
|
||||
Patch1: man-db_%{version}-4.diff.bz2
|
||||
Patch1: man-db_%{version}-3.diff.bz2
|
||||
Patch2: man-db-2.3.19deb4.0-groff.dif
|
||||
Patch3: man-db-%{version}-error.dif
|
||||
Patch4: man-db-2.4.3-section.dif
|
||||
Patch5: man-db-%{version}-security4.dif
|
||||
Patch6: man-db-2.4.3-firefox.dif
|
||||
Patch7: man-db-%{version}-chinese.dif
|
||||
Patch8: man-db-2.4.3-globbing.dif
|
||||
Patch8: man-db-%{version}-globbing.dif
|
||||
Patch9: man-db-%{version}-zio.dif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%global _sysconfdir /etc
|
||||
@@ -59,12 +59,13 @@ printer (using groff).
|
||||
Authors:
|
||||
--------
|
||||
G. Wilford <G.Wilford@ee.surrey.ac.uk>
|
||||
Fabrizio Polacco <fpolacco@debian.org>
|
||||
Colin Watson <cjwatson@debian.org>
|
||||
|
||||
%prep
|
||||
%setup -n man-db-%{version}
|
||||
%patch1 -p1 -b .debian
|
||||
%patch2 -p0 -b .groff
|
||||
%patch3 -p0 -b .err
|
||||
%patch4 -p0 -b .sect
|
||||
%patch5 -p0 -b .secu4
|
||||
%patch6 -p0 -b .firefox
|
||||
@@ -75,20 +76,26 @@ Authors:
|
||||
|
||||
%build
|
||||
%{?suse_update_config:%{suse_update_config -f tools }}
|
||||
%if %suse_version > 1030
|
||||
gettextize --force --copy --no-changelog
|
||||
rm -f configure GNUmakefile
|
||||
%endif
|
||||
rm -f configure
|
||||
CFLAGS="${RPM_OPT_FLAGS} -funroll-loops -pipe -D_GNU_SOURCE -D_SVID_SOURCE -Wall"
|
||||
LDFLAGS=
|
||||
LIBS=
|
||||
export CFLAGS LDFLAGS LIBS
|
||||
%if %suse_version > 1030
|
||||
if test -s /usr/share/aclocal/gettext.m4 ; then
|
||||
cp -vp /usr/share/aclocal/gettext.m4 m4/
|
||||
fi
|
||||
aclocal -I ${PWD}/m4
|
||||
autoconf -B ${PWD}/m4
|
||||
aclocal -I ${PWD}/m4 -I ${PWD}/gnulib/m4
|
||||
autoconf -B ${PWD}/m4 -B ${PWD}/gnulib/m4
|
||||
%else
|
||||
autoconf
|
||||
sed -ri 's/(m4_PACKAGE_VERSION,[[:blank:]]*\[)2.61(\])/\12.60\2/' aclocal.m4
|
||||
sed -ri 's/(AM_INIT_AUTOMAKE\(\[)1.10/\11.9.6/' configure.ac
|
||||
sed -ri 's/intl//' Makefile.am
|
||||
aclocal -I ${PWD}/m4 -I ${PWD}/gnulib/m4
|
||||
autoconf -B ${PWD}/m4 -B ${PWD}/gnulib/m4
|
||||
mkdir -p tools
|
||||
touch tools/compile
|
||||
export MKDIR_P="mkdir -p"
|
||||
%endif
|
||||
./configure \
|
||||
--enable-dups \
|
||||
@@ -97,6 +104,7 @@ Authors:
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--localstatedir=%{_localstatedir} \
|
||||
--libexecdir=%{_prefix}/lib \
|
||||
--with-zio \
|
||||
--with-gnu-ld \
|
||||
--disable-rpath \
|
||||
@@ -104,12 +112,29 @@ Authors:
|
||||
--with-db=gdbm \
|
||||
--enable-nls \
|
||||
--with-config-file=%{_sysconfdir}/manpath.config \
|
||||
--without-included-gettext
|
||||
%if %suse_version > 1030
|
||||
sed -ri 's/@GETTEXT_MACRO_VERSION@/0.17/' po/Makefile
|
||||
%endif
|
||||
--without-included-gettext \
|
||||
--with-sections="0 1 n l 8 3 2 5 4 9 6 7 \
|
||||
1x 3x 4x 5x 6x 8x \
|
||||
1bind 3bind 5bind 7bind 8bind \
|
||||
1cn 8cn \
|
||||
1m 1mh 5mh 8mh \
|
||||
1netpbm 3netpbm 5netpbm \
|
||||
0p 1p 3p 3posix \
|
||||
1pgsql 3pgsql 5pgsql\
|
||||
3C++ 8C++ \
|
||||
3blt \
|
||||
3curses 3ncurses 3form 3menu \
|
||||
3db 3gdbm 3f 3gk 3paper \
|
||||
3mm 5mm \
|
||||
3perl 3pm 3pq \
|
||||
3qt 3pub 3readline \
|
||||
1ssl 3ssl 5ssl 7ssl \
|
||||
3t 3tk 3tcl 3tclx 3tix \
|
||||
7l 7nr \
|
||||
8c \
|
||||
Cg g s m"
|
||||
make nls=all
|
||||
for man in $(find man/*.UTF-8 -type f); do
|
||||
for man in $(find man/ -type f -a -name '*.man[0-9]'); do
|
||||
pp="$(head -n 1 $man)"
|
||||
case "$pp" in
|
||||
\'\\\"*\ -\*-\ coding:\ *\ -\*-)
|
||||
@@ -126,6 +151,9 @@ Authors:
|
||||
done
|
||||
|
||||
%install
|
||||
%if %suse_version <= 1030
|
||||
export MKDIR_P="mkdir -p"
|
||||
%endif
|
||||
rm -rf %{buildroot}%{_localstatedir}/cache/man
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/man-db
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
@@ -157,7 +185,7 @@ Authors:
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_localstatedir}/adm/fillup-templates
|
||||
install -m 0744 %{SOURCE2} %{buildroot}/etc/cron.daily/suse-do_mandb
|
||||
install -m 0744 %{SOURCE3} %{buildroot}/etc/cron.daily/suse-clean_catman
|
||||
%find_lang man-db
|
||||
%find_lang man-db --all-name
|
||||
|
||||
%pre
|
||||
test -d var/catman/ && rm -rf var/catman/ || true
|
||||
@@ -188,11 +216,13 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
%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
|
||||
%else
|
||||
%dir %attr(0711,root,root) %{_prefix}/lib/man-db
|
||||
%attr(0711,root,root) %{_prefix}/lib/man-db/man
|
||||
%attr(0711,root,root) %{_prefix}/lib/man-db/mandb
|
||||
%attr(0711,man,man) %{_prefix}/lib/man-db/manconv
|
||||
%attr(0711,man,man) %{_prefix}/lib/man-db/globbing
|
||||
%endif
|
||||
%{_sbindir}/accessdb
|
||||
%{_datadir}/groff/site-tmac/tmac.andb
|
||||
@@ -240,6 +270,53 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.cron-man
|
||||
|
||||
%changelog
|
||||
* Tue Apr 22 2008 werner@suse.de
|
||||
- Make libzio interface smarter, that is if used only for simple
|
||||
decompression do not use a pipe (saves 30%% mandb run time)
|
||||
(bnc#381830)
|
||||
- Make cron.daily.do_mandb smarter, that is check if anything
|
||||
has changes in the global manual paths that needs to run mandb
|
||||
(bnc#381830)
|
||||
- Update to bug fix version 2.5.1
|
||||
* The manual is now built automatically, avoiding some ordering
|
||||
problems on 'make distclean'.
|
||||
* Manual pages are converted to the proper input encoding for troff
|
||||
output as well as nroff output.
|
||||
* The -t, -T, -X, and -Z options to man work again; in 2.5.0, they
|
||||
read input from stdin rather than from the manual page.
|
||||
* apropos and whatis no longer segfault when given an explicit
|
||||
locale using -L.
|
||||
* man now understands that groff's ascii device takes ASCII input,
|
||||
not ISO-8859-1.
|
||||
* man no longer discards stderr when writing to a file or a pipe;
|
||||
this was broken by an overenthusiastic change in 2.5.0.
|
||||
* manconv now falls back to the next encoding in its list if any
|
||||
characters in an entire 64KB block fail to decode using the
|
||||
current encoding, as was originally intended.
|
||||
* manconv is more careful about extracting coding: directives from
|
||||
manual pages.
|
||||
* Ctrl-C and Ctrl-\ now work again at the prompt issued by 'man -a'.
|
||||
* There is a new --with-sections configure option to change the
|
||||
default value of SECTION in the configuration file.
|
||||
* Automake is now used to generate Makefiles. Among other things,
|
||||
this fixes VPATH builds and some bugs in dependency generation,
|
||||
and should allow building with non-GNU versions of make.
|
||||
* man-db now uses the Gnulib portability library, allowing the
|
||||
removal of earlier haphazard portability code. While this results
|
||||
in a somewhat larger source distribution, it makes man-db easier
|
||||
to maintain and should make it easier to build on systems to which
|
||||
the maintainer does not have access.
|
||||
* In the process of switching to Gnulib, the last vestiges of
|
||||
pre-C89 support have been removed; they were documented to be
|
||||
broken anyway.
|
||||
* If the MANROFFOPT environment variable is set, man now appends its
|
||||
value to the *roff command line.
|
||||
* man now accepts a --recode option to output a source manual page
|
||||
converted to a specified encoding.
|
||||
* For compatibility with System V, man accepts -s as an alias for
|
||||
-S, and permits sections to be comma-separated as well as
|
||||
colon-separated.
|
||||
* man now accepts a --warnings option to enable groff warnings.
|
||||
* Tue Feb 26 2008 werner@suse.de
|
||||
- Ensure to find local manual pages even in sub directories
|
||||
* Wed Jan 30 2008 werner@suse.de
|
||||
@@ -451,7 +528,7 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
- Port libz patch to this version
|
||||
- Map UTF-8 man pages to appropiate groff command
|
||||
- Make it work
|
||||
* Sun Jun 17 2001 bk@suse.de
|
||||
* Mon Jun 18 2001 bk@suse.de
|
||||
- new location of tmac files is /usr/share/groff/site-tmac,
|
||||
needed for groff 1.17 and does not work with older versions
|
||||
* Thu Jun 07 2001 werner@suse.de
|
||||
@@ -508,10 +585,10 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
- Make mandir depending on the RPM macro %%_mandir
|
||||
- Make zsoemlin zlib interface functions more compatible to cookie
|
||||
I/O functions (type changed in new glibc 2.1 and higher)
|
||||
* Thu Mar 16 2000 werner@suse.de
|
||||
* Fri Mar 17 2000 werner@suse.de
|
||||
- Make lexgrog knowing the japanese multibyte string of section NAME
|
||||
- Make flex use memory aligned tables.
|
||||
* Wed Mar 08 2000 werner@suse.de
|
||||
* Thu Mar 09 2000 werner@suse.de
|
||||
- Security fix in straycats: Check if we got a temporary file!
|
||||
* Thu Mar 02 2000 ro@suse.de
|
||||
- added usr/share/man/allman
|
||||
|
Reference in New Issue
Block a user