%define LNG pt_BR %define name man-pages-%LNG %define version 0.1 %define release %mkrel 11 Summary: Brazilian man (manual) pages from the Linux Documentation Project Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Internationalization URL: http://br.tldp.org/projetos/man/man.html # the tarball has to build, files got from the web with wget. # files dated 2002-11-21 -- pablo Source: http://br.tldp.org/projetos/man/arquivos/man-pages-pt_BR.tar.bz2 #Icon: books-%LNG.xpm BuildRequires: man Requires: locales-pt, man Autoreqprov: false BuildArchitectures: noarch %description A large collection of man pages (reference material) from the Linux Documentation Project (LDP), translated to Brzailian Portuguese. The man pages are organized into the following sections: Section 1: User commands (intro only) Section 2: System calls Section 3: Libc calls Section 4: Devices (e.g., hd, sd) Section 5: File formats and protocols (e.g., wtmp, %{_sysconfdir}passwd, nfs) Section 5: Games (intro only) Section 7: Conventions, macro packages, etc. (e.g., nroff, ascii) Section 8: System administration (intro only) Section 9: Kernel routines %prep %setup -n man-pages-pt_BR %build %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_mandir}/%LNG/man{1,2,3,4,5,6,7,8} for i in 1 2 3 4 5 6 7 8 ; do cp -adpvrf man$i %{buildroot}/%{_mandir}/%LNG/||: done 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> 0.1-11.mga3 + Revision: 405267 - fix ownership of man directories to not conflict with other packages (mga#9055) * Sat Jan 12 2013 umeabot <umeabot> 0.1-10.mga3 + Revision: 359402 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 11 2011 ahmad <ahmad> 0.1-9.mga1 + Revision: 5961 - drop old versioned man requires, just 'man' is enough now - imported package man-pages-pt_BR