%define LANG ko Summary: Korean(Hangul) Man Pages Name: man-pages-%LANG Version: 1.48 Release: 4mdk License: GPL Group: System/Internationalization URL: http://man.kldp.org/ Source: man-pages-%LANG-%version.tar.bz2 Icon: books-%LANG.xpm Buildroot: %_tmppath/%name-root BuildRequires: man => 1.5j-8mdk Requires: locales-%LANG, man => 1.5j-8mdk Prereq: sed grep man Autoreqprov: false BuildArchitectures: noarch Obsoletes: man-%LANG, manpages-%LANG Provides: man-%LANG, manpages-%LANG Conflicts: man < 1.5m2 %description Korean translation of the official manpages from LDP and another useful manpages from various packages. They're maintained by the Korean Manpage Project <http://man.kldp.org>. %prep %setup -c %{name}-%{version} %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%_mandir/%LANG/ mkdir -p $RPM_BUILD_ROOT/var/catman/%LANG/cat{1,2,3,4,5,6,7,8,9,n} for i in man?;do cp -adpvrf $i $RPM_BUILD_ROOT/%_mandir/%LANG/ done # those files conflict whith rpm package: rm $RPM_BUILD_ROOT/%_mandir/%LANG/man8/rpm{2cpio,}.8 # those files conflict whith man package: rm $RPM_BUILD_ROOT/%_mandir/%LANG/man{1/man.1,5/man.config.5} LANG=%LANG DESTDIR=$RPM_BUILD_ROOT /usr/sbin/makewhatis $RPM_BUILD_ROOT/%_mandir/%LANG mkdir -p $RPM_BUILD_ROOT/etc/cron.weekly cat > $RPM_BUILD_ROOT/etc/cron.weekly/makewhatis-%LANG.cron << EOF #!/bin/bash LANG=%LANG /usr/sbin/makewhatis %_mandir/%LANG exit 0 EOF chmod a+x $RPM_BUILD_ROOT/etc/cron.weekly/makewhatis-%LANG.cron mkdir -p $RPM_BUILD_ROOT/var/cache/man/%LANG %postun # 0 means deleting the package if [ "$1" = "0" ]; then ## Force removing of /var/catman/%LANG, if there isn't any man page ## directory /%_mandir/%LANG if [ ! -d %_mandir/%LANG ] ; then rm -rf /var/catman/%LANG fi fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,man,755) %dir %_mandir/%LANG %dir /var/cache/man/%LANG %config(noreplace) /var/cache/man/%LANG/whatis /%_mandir/%LANG/man* %attr(755,root,man)/var/catman/%LANG %config(noreplace) %attr(755,root,root)/etc/cron.weekly/makewhatis-%LANG.cron %changelog * Tue Feb 24 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.48-4mdk - add conflict tag in order to force package ordering so that updates get performed smoother - fix potential conflict with man (CFLO, not CFL) * Sun Feb 15 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.48-3mdk - fix conflict with latest man * Thu May 15 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.48-2mdk - fix conflict with rpm * Mon Jan 20 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.48-1mdk - new release * Wed May 29 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-16mdk - use new man-pages-LG template - don't rebuild whatis on install since - we've already build in package - cron will rebuild it nightly and so add other package french man pages - adapt to new man-pages-LG template - requires man => 1.5j-8mdk for new man-pages framework - remove old makewhatis.%LANG since default makewhatis is now able to parse non english man pages - use new std makewhatis to build whatis in spec and in cron entry - whatis db goes into /var/cache/man (so enable ro /usr) - standard {Build,}Requires/buildroot/prereq/arc/provides/obsoletes * Mon Mar 25 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-15mdk - remove old pre-spec_helper comments - 20010901 update - license is now GPL - fix description - fix tarball without man-pages-ko directory - add the url - fix: all sections're filled now - remove all comments warning than anybody was able to find where should come the updates - fix %%clean to be forced * Thu Mar 07 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-14mdk - fix permission on /usr/share/man/id/* - provides manpages-%%LANG - don't overwrite crontab if user altered it * Wed Mar 28 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-13mdk - fix tmppath - major update from debian - fix makewhatis sp that it's works * Tue Jul 18 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-12mdk - BM * Mon Jun 26 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1-11mdk - use mandir macro in order to be ok when switching to /usr/share/man as following FHS. * Fri Mar 31 2000 Denis Havlik <denis@mandrakesoft.com> 1.1-10mdk - convert to new group scheme - convert books-ja.gif -> .xpm * Fri Nov 19 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - moved makewhatis.%LANG from /usr/local/sbin to /usr/sbin * Tue Jul 20 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - included some nice improvements from man-pages-pl * Wed Jul 7 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - Adapted the rpm I had made to Mandrake style