2006-12-19 00:17:06 +01:00
|
|
|
#
|
2008-08-16 01:03:11 +02:00
|
|
|
# spec file for package man (Version 2.5.2)
|
2006-12-19 00:17:06 +01:00
|
|
|
#
|
2009-01-19 02:12:10 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:06 +01:00
|
|
|
#
|
2008-08-16 01:03:11 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:17:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2007-02-09 16:58:14 +01:00
|
|
|
# norootforbuild
|
2006-12-19 00:17:06 +01:00
|
|
|
|
2008-02-28 02:01:41 +01:00
|
|
|
|
2006-12-19 00:17:06 +01:00
|
|
|
Name: man
|
2007-07-29 10:54:59 +02:00
|
|
|
BuildRequires: flex groff
|
|
|
|
%if %suse_version > 1020
|
|
|
|
BuildRequires: gdbm-devel less libbz2-devel libzio-devel zlib-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libzio util-linux
|
|
|
|
%endif
|
2007-12-13 20:16:05 +01:00
|
|
|
%if %suse_version > 1030
|
|
|
|
BuildRequires: gettext-runtime gettext-tools
|
|
|
|
%else
|
|
|
|
BuildRequires: gettext gettext-devel
|
|
|
|
%endif
|
2008-08-16 01:03:11 +02:00
|
|
|
Version: 2.5.2
|
2009-08-26 17:21:03 +02:00
|
|
|
Release: 20
|
2006-12-19 00:17:06 +01:00
|
|
|
Summary: A Program for Displaying man Pages
|
2007-07-18 22:01:45 +02:00
|
|
|
License: GPL v2 or later
|
2008-04-23 01:42:57 +02:00
|
|
|
Url: https://savannah.nongnu.org/projects/man-db
|
2006-12-19 00:17:06 +01:00
|
|
|
Group: System/Base
|
2008-04-23 01:42:57 +02:00
|
|
|
PreReq: coreutils fillup
|
2006-12-19 00:17:06 +01:00
|
|
|
Provides: man_db
|
|
|
|
Requires: groff >= 1.18 less
|
2007-09-20 14:08:33 +02:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:17:06 +01:00
|
|
|
Source: man-db-%{version}.tar.bz2
|
|
|
|
Source1: sysconfig.cron-man
|
|
|
|
Source2: cron.daily.do_mandb
|
|
|
|
Source3: cron.daily.clean_catman
|
2007-12-12 18:16:54 +01:00
|
|
|
Source4: mancoding
|
2006-12-19 00:17:06 +01:00
|
|
|
Patch0: man-db-%{version}.dif
|
2008-08-16 01:03:11 +02:00
|
|
|
Patch1: man-db_%{version}-2.diff.bz2
|
2006-12-19 00:17:06 +01:00
|
|
|
Patch2: man-db-2.3.19deb4.0-groff.dif
|
2007-12-12 18:16:54 +01:00
|
|
|
Patch4: man-db-2.4.3-section.dif
|
2008-08-16 01:03:11 +02:00
|
|
|
Patch5: man-db-2.5.1-security4.dif
|
2007-12-12 18:16:54 +01:00
|
|
|
Patch6: man-db-2.4.3-firefox.dif
|
|
|
|
Patch7: man-db-%{version}-chinese.dif
|
2008-08-16 01:03:11 +02:00
|
|
|
Patch8: man-db-2.5.1-globbing.dif
|
|
|
|
Patch9: man-db-2.5.1-zio.dif
|
|
|
|
Patch10: man-db-2.5.1-listall.dif
|
|
|
|
Patch11: man-db-%{version}-catp.dif
|
2008-11-21 15:35:09 +01:00
|
|
|
Patch12: man-db-2.5.2-fastpipe.dif
|
2009-01-19 02:12:10 +01:00
|
|
|
Patch13: man-db-2.5.2-fhs.dif
|
2006-12-19 00:17:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-12 18:16:54 +01:00
|
|
|
%global _sysconfdir /etc
|
2006-12-19 00:17:06 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A program for displaying man pages on the screen or sending them to a
|
|
|
|
printer (using groff).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
G. Wilford <G.Wilford@ee.surrey.ac.uk>
|
2008-04-23 01:42:57 +02:00
|
|
|
Fabrizio Polacco <fpolacco@debian.org>
|
|
|
|
Colin Watson <cjwatson@debian.org>
|
2006-12-19 00:17:06 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n man-db-%{version}
|
|
|
|
%patch1 -p1 -b .debian
|
|
|
|
%patch2 -p0 -b .groff
|
|
|
|
%patch4 -p0 -b .sect
|
2007-12-12 18:16:54 +01:00
|
|
|
%patch5 -p0 -b .secu4
|
|
|
|
%patch6 -p0 -b .firefox
|
|
|
|
%patch7 -p0 -b .chinese
|
|
|
|
%patch8 -p0 -b .globbing
|
|
|
|
%patch9 -p0 -b .zio
|
2008-06-22 02:12:16 +02:00
|
|
|
%patch10 -p0 -b .listall
|
2008-08-16 01:03:11 +02:00
|
|
|
%patch11 -p0 -b .catp
|
2008-11-21 15:35:09 +01:00
|
|
|
%patch12 -p0 -b .fp
|
2009-08-07 22:22:28 +02:00
|
|
|
%patch13 -p0 -b .fhs
|
2009-08-26 17:21:03 +02:00
|
|
|
%patch0 -p0
|
2006-12-19 00:17:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{?suse_update_config:%{suse_update_config -f tools }}
|
2008-04-23 01:42:57 +02:00
|
|
|
%if %suse_version > 1030
|
2006-12-19 00:17:06 +01:00
|
|
|
gettextize --force --copy --no-changelog
|
2008-04-23 01:42:57 +02:00
|
|
|
%endif
|
2008-05-16 14:43:35 +02:00
|
|
|
SEC=(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)
|
|
|
|
SEC="${SEC[@]}"
|
2008-04-23 01:42:57 +02:00
|
|
|
rm -f configure
|
2007-12-12 18:16:54 +01:00
|
|
|
CFLAGS="${RPM_OPT_FLAGS} -funroll-loops -pipe -D_GNU_SOURCE -D_SVID_SOURCE -Wall"
|
|
|
|
LDFLAGS=
|
|
|
|
LIBS=
|
|
|
|
export CFLAGS LDFLAGS LIBS
|
2007-12-13 20:16:05 +01:00
|
|
|
%if %suse_version > 1030
|
2008-04-23 01:42:57 +02:00
|
|
|
aclocal -I ${PWD}/m4 -I ${PWD}/gnulib/m4
|
|
|
|
autoconf -B ${PWD}/m4 -B ${PWD}/gnulib/m4
|
2007-12-13 20:16:05 +01:00
|
|
|
%else
|
2008-04-23 01:42:57 +02:00
|
|
|
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"
|
2007-12-13 20:16:05 +01:00
|
|
|
%endif
|
2007-12-12 18:16:54 +01:00
|
|
|
./configure \
|
|
|
|
--enable-dups \
|
|
|
|
--enable-setuid=man \
|
|
|
|
--with-device=utf8 \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--localstatedir=%{_localstatedir} \
|
2008-04-23 01:42:57 +02:00
|
|
|
--libexecdir=%{_prefix}/lib \
|
2007-12-12 18:16:54 +01:00
|
|
|
--with-zio \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-mb-groff \
|
|
|
|
--with-db=gdbm \
|
|
|
|
--enable-nls \
|
|
|
|
--with-config-file=%{_sysconfdir}/manpath.config \
|
2008-04-23 01:42:57 +02:00
|
|
|
--without-included-gettext \
|
2008-05-16 14:43:35 +02:00
|
|
|
--with-sections="${SEC}"
|
2007-12-12 18:16:54 +01:00
|
|
|
make nls=all
|
2008-04-23 01:42:57 +02:00
|
|
|
for man in $(find man/ -type f -a -name '*.man[0-9]'); do
|
2007-12-12 18:16:54 +01:00
|
|
|
pp="$(head -n 1 $man)"
|
|
|
|
case "$pp" in
|
|
|
|
\'\\\"*\ -\*-\ coding:\ *\ -\*-)
|
|
|
|
continue
|
|
|
|
;;
|
|
|
|
\'\\\"*)
|
|
|
|
sed -ri "1{ s/('\\\\\".*)/\\1 -\*- coding: UTF-8 -\*-/ }" $man
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
sed -ri "1 i\
|
|
|
|
'\\\\\" -\*- coding: UTF-8 -\*-\
|
|
|
|
" $man
|
|
|
|
esac
|
|
|
|
done
|
2006-12-19 00:17:06 +01:00
|
|
|
|
|
|
|
%install
|
2008-04-23 01:42:57 +02:00
|
|
|
%if %suse_version <= 1030
|
|
|
|
export MKDIR_P="mkdir -p"
|
|
|
|
%endif
|
2007-12-12 18:16:54 +01:00
|
|
|
rm -rf %{buildroot}%{_localstatedir}/cache/man
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/man-db
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}/etc
|
|
|
|
make nls=all install DESTDIR=%{buildroot}
|
|
|
|
if test -x %{buildroot}%{_bindir}/wrapper ; then
|
|
|
|
rm -f %{buildroot}%{_bindir}/mandb
|
|
|
|
rm -f %{buildroot}%{_bindir}/man
|
|
|
|
mv %{buildroot}%{_bindir}/wrapper %{buildroot}%{_bindir}/mandb
|
|
|
|
ln -sf mandb %{buildroot}%{_bindir}/man
|
|
|
|
fi
|
|
|
|
mkdir -p %{buildroot}%{_mandir}
|
|
|
|
pushd %{buildroot}%{_mandir}/
|
|
|
|
rm -rf *.ascii/
|
|
|
|
for d in *.UTF-8 ; do
|
|
|
|
find -name '*.[1-9nlop]' | xargs gzip -9f
|
|
|
|
done
|
|
|
|
for d in `find -name manpath.5.gz -printf '%%h '` ; do
|
|
|
|
ln -sf manpath.5.gz $d/manpath.config.5.gz
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
install -m 644 src/man_db.conf %{buildroot}%{_sysconfdir}/manpath.config
|
|
|
|
sh ./mk_catdirs %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/groff/site-tmac
|
|
|
|
install -m 0644 groff/tmac.andb %{buildroot}%{_datadir}/groff/site-tmac/
|
|
|
|
install -m 0644 groff/tmac.andocdb %{buildroot}%{_datadir}/groff/site-tmac/
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
mkdir -p %{buildroot}/etc/cron.daily
|
|
|
|
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
|
2008-04-23 01:42:57 +02:00
|
|
|
%find_lang man-db --all-name
|
2006-12-19 00:17:06 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
test -d var/catman/ && rm -rf var/catman/ || true
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -an cron}
|
|
|
|
|
2007-07-27 01:58:55 +02:00
|
|
|
%files -f man-db.lang
|
2007-02-09 16:58:14 +01:00
|
|
|
%defattr(-,root,root)
|
2006-12-19 00:17:06 +01:00
|
|
|
%config /etc/manpath.config
|
|
|
|
%attr(0744,root,root) /etc/cron.daily/suse-clean_catman
|
|
|
|
%attr(0744,root,root) /etc/cron.daily/suse-do_mandb
|
2007-12-12 18:16:54 +01:00
|
|
|
%{_bindir}/apropos
|
|
|
|
%{_bindir}/catman
|
|
|
|
%{_bindir}/lexgrog
|
2008-01-30 18:47:16 +01:00
|
|
|
%if %suse_version > 1030
|
2008-01-10 02:13:07 +01:00
|
|
|
%attr(0755,root,root) %{_bindir}/man
|
|
|
|
%attr(0755,root,root) %{_bindir}/mandb
|
2008-01-30 18:47:16 +01:00
|
|
|
%else
|
|
|
|
%attr(4755,root,root) %{_bindir}/man
|
|
|
|
%attr(4755,root,root) %{_bindir}/mandb
|
|
|
|
%endif
|
2007-12-12 18:16:54 +01:00
|
|
|
%{_bindir}/manpath
|
|
|
|
%{_bindir}/whatis
|
|
|
|
%{_bindir}/zsoelim
|
2008-01-30 18:47:16 +01:00
|
|
|
%if %suse_version > 1030
|
|
|
|
%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
|
2008-04-23 01:42:57 +02:00
|
|
|
%attr(0755,man,man) %{_prefix}/lib/man-db/globbing
|
2008-01-30 18:47:16 +01:00
|
|
|
%else
|
2007-12-12 18:16:54 +01:00
|
|
|
%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
|
2008-01-30 18:47:16 +01:00
|
|
|
%attr(0711,man,man) %{_prefix}/lib/man-db/manconv
|
2008-04-23 01:42:57 +02:00
|
|
|
%attr(0711,man,man) %{_prefix}/lib/man-db/globbing
|
2008-01-30 18:47:16 +01:00
|
|
|
%endif
|
2007-12-12 18:16:54 +01:00
|
|
|
%{_sbindir}/accessdb
|
|
|
|
%{_datadir}/groff/site-tmac/tmac.andb
|
|
|
|
%{_datadir}/groff/site-tmac/tmac.andocdb
|
2006-12-19 00:17:06 +01:00
|
|
|
%dir %{_mandir}/de
|
|
|
|
%dir %{_mandir}/de/man1
|
|
|
|
%doc %{_mandir}/de/man1/*.1.gz
|
|
|
|
%dir %{_mandir}/de/man5
|
|
|
|
%doc %{_mandir}/de/man5/*.5.gz
|
|
|
|
%dir %{_mandir}/de/man8
|
|
|
|
%doc %{_mandir}/de/man8/*.8.gz
|
|
|
|
%dir %{_mandir}/es
|
|
|
|
%dir %{_mandir}/es/man1
|
|
|
|
%doc %{_mandir}/es/man1/*.1.gz
|
|
|
|
%dir %{_mandir}/es/man5
|
|
|
|
%doc %{_mandir}/es/man5/*.5.gz
|
|
|
|
%dir %{_mandir}/es/man8
|
|
|
|
%doc %{_mandir}/es/man8/*.8.gz
|
2007-07-18 22:01:45 +02:00
|
|
|
%dir %{_mandir}/fr
|
|
|
|
%dir %{_mandir}/fr/man1
|
|
|
|
%doc %{_mandir}/fr/man1/*.1.gz
|
|
|
|
%dir %{_mandir}/fr/man5
|
|
|
|
%doc %{_mandir}/fr/man5/*.5.gz
|
|
|
|
%dir %{_mandir}/fr/man8
|
|
|
|
%doc %{_mandir}/fr/man8/*.8.gz
|
2006-12-19 00:17:06 +01:00
|
|
|
%dir %{_mandir}/it
|
|
|
|
%dir %{_mandir}/it/man1
|
|
|
|
%doc %{_mandir}/it/man1/*.1.gz
|
|
|
|
%dir %{_mandir}/it/man5
|
|
|
|
%doc %{_mandir}/it/man5/*.5.gz
|
|
|
|
%dir %{_mandir}/it/man8
|
|
|
|
%doc %{_mandir}/it/man8/*.8.gz
|
|
|
|
%dir %{_mandir}/ja
|
|
|
|
%dir %{_mandir}/ja/man1
|
|
|
|
%doc %{_mandir}/ja/man1/*.1.gz
|
|
|
|
%dir %{_mandir}/ja/man5
|
|
|
|
%doc %{_mandir}/ja/man5/*.5.gz
|
|
|
|
%dir %{_mandir}/ja/man8
|
|
|
|
%doc %{_mandir}/ja/man8/*.8.gz
|
|
|
|
%doc %{_mandir}/man1/*.1.gz
|
|
|
|
%doc %{_mandir}/man5/*.5.gz
|
|
|
|
%doc %{_mandir}/man8/*.8.gz
|
2008-01-10 02:13:07 +01:00
|
|
|
%defattr(-,man,man)
|
2007-12-12 18:16:54 +01:00
|
|
|
%{_localstatedir}/cache/man/*
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.cron-man
|
|
|
|
|
2007-03-21 16:06:16 +01:00
|
|
|
%changelog
|