Summary: A set of documentation tools: man, apropos and whatis Name: man Version: 1.6g Release: %mkrel 6 License: GPLv2 Group: System/Base Url: http://primates.ximian.com/~flucifredi/man/ Source0: http://primates.ximian.com/~flucifredi/man/%{name}-%{version}.tar.gz Source1: makewhatis.cronweekly Source2: makewhatis.crondaily # Japanese patches Patch0: man-1.5h1-gencat.patch Patch1: man-1.5g-nonrootbuild.patch Patch2: man-1.5j-i18n.patch Patch10: man-1.5k-confpath.patch Patch11: man-1.5h1-make.patch Patch12: man-1.5k-nonascii.patch Patch13: man-1.6e-security.patch Patch14: man-1.6e-mandirs.patch Patch15: man-1.5m2-bug11621.patch Patch16: man-1.5k-sofix.patch Patch17: man-1.5m2-buildroot.patch Patch18: man-1.5i2-newline.patch Patch19: man-1.5j-utf8.patch Patch20: man-1.5i2-overflow.patch Patch21: man-1.5j-nocache.patch Patch22: man-1.6e-use_i18n_vars_in_a_std_way.patch Patch23: man-1.5m2-no-color-for-printing.patch # ignore SIGPIPE signals, so no error messages are displayed # when the pipe is broken before the formatting of the man page # (which may take some time) is finished. # the typical case is "man foo | head -1" Patch24: man-1.5m2-sigpipe.patch # avoid adding a manpage already in the list Patch26: man-1.5m2-multiple.patch # i18n fixes for whatis and makewhatis Patch27: man-1.6e-new_sections.patch # use xz compression in makewhatis # Mga Bug #5178 Patch28: man-1.6g-mga-makewhatis-use-xz.patch Requires: groff-for-man Requires: xz BuildRequires: xz %description The man package includes three tools for finding information and/or documentation about your Linux system: man, apropos and whatis. The man system formats and displays on-line manual pages about commands or functions on your system. Apropos searches the whatis database (containing short descriptions of system commands) for a string. Whatis searches its own database for a complete word. The man package should be installed on your system because it is the primary way for find documentation on a %{distribution} system. %prep %setup -q %patch0 -p0 -b .jp2~ %patch1 -p1 -b .nonrootbuild~ %patch2 -p1 -b .i18n~ %patch10 -p0 -b .confpath~ %patch11 -p1 -b .make~ %patch12 -p1 -b .nonascii~ %patch13 -p1 -b .security~ %patch14 -p1 -b .mandirs~ %patch15 -p1 -b .ad~ %patch16 -p1 -b .sofix~ %patch17 -p1 -b .less~ %patch18 -p0 -b .newline~ %patch19 -p1 -b .utf8~ %patch20 -p1 -b .overflow~ %patch21 -p1 -b .nocache~ %patch22 -p1 -b .use_i18n_vars_in_a_std_way~ %patch23 -p1 -b .color~ %patch24 -p1 -b .sigpipe~ %patch26 -p1 -b .multiple~ %patch27 -p1 -b .new_sections~ %patch28 -p1 for i in $(find man -name man.conf.man); do mv $i ${i%man.conf.man}man.config.man done for i in $(find man -name man.conf.5); do mv $i ${i%man.conf.5}man.config.5 done for src in msgs/mess.[a-z][a-z]; do charset=$(sed 's/^.*codeset=//' ${src}.codeset) if [ "$(file ${src} | cut -d ' ' -f 2)" == "UTF-8" ]; then charset='utf-8'; fi iconv -t utf-8 -f ${charset} -o ${src}.utf ${src} && mv ${src}.utf ${src} echo '$ codeset=utf-8' > ${src}.codeset done %build ./configure -default -confdir %{_sysconfdir} +sgid +fhs +lang all # -compatibility_mode_for_colored_groff %make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %install %makeinstall_std install -m755 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis.cron install -m755 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/cron.daily/makewhatis.cron for i in 1 2 3 4 5 6 7 8 9 n; do mkdir -p %{buildroot}/var/cache/man/cat$i mkdir -p %{buildroot}/var/cache/man/local/cat$i mkdir -p %{buildroot}/var/cache/man/X11R6/cat$i done # symlinks for manpath pushd %{buildroot} ln -s man .%{_bindir}/manpath ln -s man.1%{_extension} .%{_mandir}/man1/manpath.1%{_extension} popd # those are provided in the man-pages-xx packages rm -rf %{buildroot}%{_mandir}/{de,fr,it,pl} # Fix makewhatis perms chmod 755 %{buildroot}%{_sbindir}/makewhatis # add the same dummy line to man.config as in 1/updates # to force rpm to replace old files echo "#" >> %{buildroot}%{_sysconfdir}/man.config %files %defattr(-,root,root) %{_sysconfdir}/cron.weekly/makewhatis.cron %{_sysconfdir}/cron.daily/makewhatis.cron %attr(2755,root,man) %{_bindir}/man %{_bindir}/manpath %{_bindir}/apropos %{_bindir}/whatis %{_bindir}/man2dvi %{_sbindir}/makewhatis %config %{_sysconfdir}/man.config %{_mandir}/man8/* %{_mandir}/man5/* %{_mandir}/man1/* # translated man pages %lang(bg) %{_mandir}/bg/man?/* %lang(cs) %{_mandir}/cs/man?/* %lang(da) %{_mandir}/da/man?/* %lang(el) %{_mandir}/el/man?/* %lang(es) %{_mandir}/es/man?/* %lang(fi) %{_mandir}/fi/man?/* %lang(hr) %{_mandir}/hr/man?/* %lang(ja) %{_mandir}/ja/man?/* %lang(ko) %{_mandir}/ko/man?/* %lang(nl) %{_mandir}/nl/man?/* %lang(pt) %{_mandir}/pt/man?/* %lang(ro) %{_mandir}/ro/man?/* %lang(sl) %{_mandir}/sl/man?/* %{_bindir}/man2html %attr(0775,root,man) %dir /var/cache/man/cat[123456789n] %attr(0775,root,man) %dir /var/cache/man/local %attr(0775,root,man) %dir /var/cache/man/local/cat[123456789n] %attr(0775,root,man) %dir /var/cache/man/X11R6 %attr(0775,root,man) %dir /var/cache/man/X11R6/cat[123456789n] # translation of man program. It doesn't use gettext format, so # find_lang doesn't find them... manual setting is needed %lang(bg) %{_datadir}/locale/bg/man %lang(cs) %{_datadir}/locale/cs/man %lang(da) %{_datadir}/locale/da/man %lang(de) %{_datadir}/locale/de/man %lang(el) %{_datadir}/locale/el/man %lang(en) %{_datadir}/locale/en/man %lang(es) %{_datadir}/locale/es/man %lang(fi) %{_datadir}/locale/fi/man %lang(fr) %{_datadir}/locale/fr/man %lang(hr) %{_datadir}/locale/hr/man %lang(it) %{_datadir}/locale/it/man %lang(ja) %{_datadir}/locale/ja/man %lang(ko) %{_datadir}/locale/ko/man %lang(nl) %{_datadir}/locale/nl/man %lang(pl) %{_datadir}/locale/pl/man %lang(pt) %{_datadir}/locale/pt/man %lang(ro) %{_datadir}/locale/ro/man %lang(ru) %{_datadir}/locale/ru/man %lang(sl) %{_datadir}/locale/sl/man %changelog * Tue Apr 10 2012 obgr_seneca <obgr_seneca> 1.6g-6.mga2 + Revision: 230070 - add patch so makewhatis uses xz compressed man pages (Bug #5178) * Mon Mar 12 2012 obgr_seneca <obgr_seneca> 1.6g-5.mga2 + Revision: 222851 - added dummy change as in 1/updates for upgradability * Sat Feb 18 2012 obgr_seneca <obgr_seneca> 1.6g-4.mga2 + Revision: 210453 - switched config file from %%config(noreplace) to %%config on tv's suggestion - Bug # 3100 * Mon Dec 05 2011 obgr_seneca <obgr_seneca> 1.6g-3.mga2 + Revision: 176839 - fixed wrong encoding of German messages (bug #1622) * Mon Jan 10 2011 blino <blino> 1.6g-2.mga1 + Revision: 5272 - use macro for distro name * Mon Jan 10 2011 ahmad <ahmad> 1.6g-1.mga1 + Revision: 5266 - imported package man * Sun Jan 09 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6g-1mdv2011.0 + Revision: 630701 - new release: 1.6g - ditch xz patch (P25, merged upstream) - do file renaming & utf-8 conversion in a bit nicer fashion (from pld) - ditch obsolete gencat LC_ALLC workaround, it's been fixed upstream - ditch obsolete workaround for passing cflags and just pass it as regularly - ditch obsolete & broken patch for installing locale specific man pages - sort and apply patches in a more sane order that makes them barable to maintain - enable parallel build * Sat Oct 16 2010 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6f-3mdv2011.0 + Revision: 586026 - add '~' to backup suffixes - fix xz patch, and also a minor bug in lzma support as well (regenerates P28) * Sat Oct 16 2010 Andrey Borzenkov <arvidjaar@mandriva.org> 1.6f-2mdv2011.0 + Revision: 585940 - requires xz for compressed man pages - patch28: support xz compressed man pages * Sun Feb 21 2010 Sandro Cazzaniga <kharec@mandriva.org> 1.6f-1mdv2010.1 + Revision: 509278 - Update to 1.6f - Drop patches who was old or applied upstream - Fix license * Tue Jan 05 2010 Michael Scherer <misc@mandriva.org> 1.6e-12mdv2010.1 + Revision: 486460 - add -c to nroff option, to solve bug #28761, for using most as man pager * Tue Nov 24 2009 Paulo Ricardo Zanoni <pzanoni@mandriva.com> 1.6e-11mdv2010.1 + Revision: 469712 - Adapt to new groff * Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.6e-10mdv2010.0 + Revision: 426071 - rebuild + Per Ãyvind Karlsen <peroyvind@mandriva.org> - update old lzma patch with xz support (P500 from Matthew Dawkins) * Sun Dec 21 2008 Oden Eriksson <oeriksson@mandriva.com> 1.6e-9mdv2009.1 + Revision: 317067 - rediffed some fuzzy patches - use %%ldflags * Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 1.6e-8mdv2009.0 + Revision: 223146 - rebuild * Tue Jan 15 2008 Thierry Vignaud <tv@mandriva.org> 1.6e-7mdv2008.1 + Revision: 152898 - rebuild * Tue Jan 15 2008 Thierry Vignaud <tv@mandriva.org> 1.6e-6mdv2008.1 + Revision: 152897 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Fri Aug 31 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6e-5mdv2008.0 + Revision: 76380 - add lzma support to makewhatis too for indexing (updates P500) * Tue Aug 21 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6e-4mdv2008.0 + Revision: 68174 - update P500 to really set lzma as default format * Fri Jun 22 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6e-3mdv2008.0 + Revision: 43074 - add lzma to buildrequires otherwise it will build without support * Thu Jun 07 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 1.6e-2mdv2008.0 + Revision: 36785 - add lzma support (P500) - drop useless & broken PreReq: setup - cleanups * Fri May 18 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.6e-1mdv2008.0 + Revision: 28329 - Updated to 1.6e (new version from new maintainer, updated also Url and Source tags). - Redid patches: i18n_whatis, new_sections, ro_usr, whatis2, security, mandirs, use_i18n_vars_in_a_std_way. - Removed already applied patch lookon. - Removed obsolete en/man.config.5 provided as a separate source, don't delete the one provided by upstream tarball. * Sat Dec 09 2006 Pablo Saratxaga <pablo@mandriva.com> 1.5m2-7mdv2007.0 + Revision: 94033 - rebuild - ignore SIGPIPE signals, so no error messages are displayed when the pipe is broken before the formatting of the man page (bug #13349) * Sat Dec 09 2006 Pablo Saratxaga <pablo@mandriva.com> 1.5m2-6mdv2007.1 + Revision: 94015 - fix for the interface translations, and set a better value for default NLSPATH (bug #25806) - improved the build of the manpages list, to avoid doubles (less disk access, and no more identiqual files (bug #25806) - changed the path of the formated man pages from fsstd to fhs (/var/catman/xxxx to /var/cache/man/xxxx) - call makewhatis with LANG="" for the English (default) man pages and create whatis files for orphaned languages - fix for the interface translations, and set a better value for default NLSPATH (bug #25806) - fixed makewhatis to not overwrite LANG value (reported by UTUMI Hirosi) - added MAN_NAME and MAN_DESCRIPTION environement variables to makewhatis so that language-specific values can be defined - i18n fixes and improvements to whatis and apropos (now recognizes LANGUAGE and only report a man page in only the first found language) - calling awk with LC_ALL, as otherwise if the data is in a different encoding than the locale, the string handling doens't work (as the stream of bytes are not recognized as valid characters) - Import man * Sun Sep 17 2006 Pablo Saratxaga <pablo@mandriva.com> 1.5m2-6mdv - define JNROFF in the config file so that it calls nroff and not directly groff (this is needed since the swith to utf-8 the i18n handling is done in nroff) - converted man pages to utf-8 - enabled color output * Tue Nov 22 2005 Pixel <pixel@mandriva.com> 1.5m2-4mdk - patch301: use i18n vars in a std way (ie LANGUAGE first, and use the first variable set) * Fri Jul 08 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.5m2-3mdk - patch 300: add new POSIX sections (#16167) * Tue Feb 08 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.5m2-2mdk - rpmlint fixes * Fri Jan 30 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.5m2-1mdk - new release - fix build - rediff patches 6, 8, 10, 104, 201 and 300 - rediff and rename patch 101: bzip2 whatis part was merged upstream, only keep LANG managment part - rediff patch 104, remove $(PREFIX) references that are obsoleted by "mandir=$RPM_BUILD_ROOT//usr/share/man" makeinstall argument: - kill patches 3, 11, 16, 26, 100 and 108 (merged upstream)