Bug 21729 - build policy for noarch doesn't compress man pages.
Summary: build policy for noarch doesn't compress man pages.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 7.0
Hardware: noarch
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2000-12-05 04:36 UTC by Sam Varshavchik
Modified: 2007-04-18 16:30 UTC (History)
0 users

Clone Of:
Last Closed: 2001-02-21 19:10:04 UTC

Attachments (Terms of Use)

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

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.

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