Bug 742285

Summary: RFE: %find_lang should handle localised manpages & other l10n files by default
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 18:05:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karel Volný 2011-09-29 15:19:35 UTC
Description of problem:
The subject says that all ...

Trying to package something with localized manpages you end up having %files section filed with lines like:

%lang(CZ) %{_mandir}/cs/man1/*.1.gz
%lang(DE) %{_mandir}/de/man1/*.1.gz
...

It'd be very nice if these are also handled by the %find_lang macro.

Comment 1 Panu Matilainen 2011-10-08 08:28:04 UTC
The find-lang script knows a number of arguments (run /usr/lib/rpm/find-lang.sh to see them), one of them is to also collect localized manpages.

So simply adding --with-man to %find_lang should do what you want.

Comment 2 Karel Volný 2012-01-07 17:51:26 UTC
(In reply to comment #1)
> The find-lang script knows a number of arguments (run /usr/lib/rpm/find-lang.sh
> to see them), one of them is to also collect localized manpages.
> 
> So simply adding --with-man to %find_lang should do what you want.

ah, I wish I had your crystal ball that would suggest that find_lang is actually a shell script which has a commandline help :-)

note that https://fedoraproject.org/wiki/Packaging:Guidelines says:

"This macro will locate all of the locale files that belong to your package (by name), and put this list in a file."

but it isn't mentioned anywhere that you need to specify any additional options to locate really ALL of the locale files, hence the logic "locale files not located => the macro cannot locate them" which led to this report

so, as the functionality is already in, it is just a matter of having it used => I'm changing the subject, by default please locate ALL the files, not just a subset

also, I've proposed an update to packaging guidelines to make things more obvious - see https://fedorahosted.org/fpc/ticket/128
... but if the behaviour of this macro is going to change, the text may need another update

Comment 3 Fedora End Of Life 2012-08-07 18:05:36 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping