Bug 996
Summary: | Manual pages should all be compressed | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Ziv, Alon <alonz> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.2 | CC: | aleksey, mp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-05-02 14:02:39 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
Ziv, Alon
1999-01-30 15:14:21 UTC
I would suggest adding a %man directive to rpm (analogous to %doc directive) that would make sure that the man page has right format, right permissions and put it into the right place. This will be handled later by a new verson of rpm. It is not going to happen for 6.0, though. Forgot to assign to jbj Nor is it going to happen for 6.1. It will be implemented in rpm so I'm changing the component. My proposal to this issue is to represent properties of hardware-platform, operating system, distribution, and other [OO-]classes by sets of macros. E.g. for manpage compression, I use the definitions %Distribution__man_compressor gzip %Distribution__compress_manpages find $RPM_BUILD_ROOT/ -type 'f'| grep -E '.*[0-9]($|x)' | xargs file | grep roff | cut -d: -f1 | xargs %{Distribution__man_compressor} in my macro files, where ``man_compressor'' is an attribute of the object of the ``Distribution'' class, which is instantiated in my rpm-environment and ``compress_manpages'' is a method. /*Unfortunately, I had to use the ``__'' as delimiter between class name and feature; I had preferred to use the ``.'', but rpm is not able to handle macro names with a ``.'' in it.*/ In later parts of my %install section, I use then the method call to my Distribution object: %{Distribution__compress_manpages} , which does the compression job then. The big advantage of that is, that everybody only has to instantiate the platform, os and distribution objects of his environment with the desired parameters and a specfile based on that standard will automatically do the right job. If you are at all interested to make rpm a package manager, which is also helpful in other environments than Redhat-only, such a more global viewpoint will certainly be advantageous. Bye, Markus rpm have been doing this for quite a while now. Reopening to mark as really closed. |