Bug 742285 - RFE: %find_lang should handle localised manpages & other l10n files by default
Summary: RFE: %find_lang should handle localised manpages & other l10n files by default
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-29 15:19 UTC by Karel Volný
Modified: 2012-08-07 18:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 18:05:34 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.