%define LNG ko %define name man-pages-%LNG %define version 20050219 %define release %mkrel 11 Summary: Korean(Hangul) Man Pages Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Internationalization URL: http://man.kldp.org/ Source: man-pages-%LNG-%{version}.tar.bz2 BuildRequires: man => 1.6 Requires: locales-%LNG, man => 1.6 Autoreqprov: false BuildArchitectures: noarch %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 %{buildroot} mkdir -p %{buildroot}/%{_mandir}/%LNG/ for i in man?;do cp -adpvrf $i %{buildroot}/%{_mandir}/%LNG/ done # those files conflict whith rpm package: rm %{buildroot}/%{_mandir}/%LNG/man8/rpm{2cpio,}.8 # those files conflict whith man package: rm %{buildroot}/%{_mandir}/%LNG/man{1/man.1,1/whatis.1,5/man.config.5} LANG=%LNG DESTDIR=%{buildroot} %{_sbindir}/makewhatis %{buildroot}/%{_mandir}/%LNG mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%LNG.cron << EOF #!/bin/bash LANG=%LNG %{_sbindir}/makewhatis %{_mandir}/%LNG exit 0 EOF chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%LNG.cron mkdir -p %{buildroot}/var/cache/man/%LNG touch %{buildroot}/var/cache/man/%LNG/whatis %post %create_ghostfile /var/cache/man/%LNG/whatis root root 644 %clean rm -rf %{buildroot} %files %defattr(0644,root,man,755) %attr(0755,root,root) %dir %{_mandir}/%LNG %dir /var/cache/man/%LNG %ghost %config(noreplace) /var/cache/man/%LNG/whatis %attr(0755,root,root) %dir %{_mandir}/%LNG/man* %{_mandir}/%LNG/man*/* %{_mandir}/%LNG/whatis %config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%LNG.cron %changelog * Tue Mar 26 2013 luigiwalser <luigiwalser> 20050219-11.mga3 + Revision: 405266 - fix ownership of man directories to not conflict with other packages (mga#9055) * Sat Jan 12 2013 umeabot <umeabot> 20050219-10.mga3 + Revision: 359394 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Jan 10 2011 ahmad <ahmad> 20050219-9.mga1 + Revision: 5448 - imported package man-pages-ko