Bug 21729

Summary: build policy for noarch doesn't compress man pages.
Product: [Retired] Red Hat Linux Reporter: Sam Varshavchik <mrsam>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-21 19:10:04 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 Sam Varshavchik 2000-12-05 04:36:53 UTC
How about creating /usr/lib/rpm/noarch/macros that consists only of:

%__spec_install_post   /usr/lib/rpm/brp-compress

I just put some Perl scripts and their man pages into a noarch RPM, and
discovered that the man pages did not compress because there was no
post-install script at all, for noarch builds.

It may not make any sense to run brp-strip for noarch, but at least running
brp-compress may do some good.

Comment 1 Sam Varshavchik 2000-12-08 02:18:26 UTC
Interesting.  If I specify --target=noarch, the brp scripts do NOT get run.

But, if instead I add "BuildArch: noarch" to the spec file, the brp scripts DO
run.

That doesn't make sense to me.




Comment 2 Jeff Johnson 2001-02-21 19:09:57 UTC
Changing component

Comment 3 Jeff Johnson 2001-07-25 21:11:02 UTC
Fixed by crating noarch-linux and noarch-redhat-linux symlinks
to the canonical arch per-platform configuration directory.