Bug 2373

Summary: problem with language and documetation (rpm, v. 2.9x-3.0)
Product: [Retired] Red Hat Linux Reporter: pius
Component: rpmAssignee: Jay Turner <jturner>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-01 15:14:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pius 1999-04-26 18:25:29 UTC
There is a problem with building/installing rpm packages which contains
%lang macros in the spec file. The problem is that files in %doc are getting
the same language as that set in the last line of %files. So if there are
some files labeled with %lang macro at the end of the %files section and
the last one is %lang(xx), documentation files will get default language set
to xx (no matter what lang it will be). And if there's no xx language
in LINGUAS or LANG variable, documentation files won't be installed.
This problem is common for all of the 2.9x rpm versions to current (3.0.1).

Comment 1 Jeff Johnson 1999-05-01 15:12:59 UTC
Fixed in rpm-3.0.1-4 (and cvs). Thanks for finding.

Comment 2 Jeff Johnson 1999-05-01 15:14:59 UTC
Actually the inheritance of last %lang to %doc is what was
fixed. Files that are marked with %lang are not installed unless
mentioned in LANG or LINGUAS at install time.