Changes between Version 37 and Version 38 of RpmHowToPackagers


Ignore:
Timestamp:
Dec 29, 2015, 2:41:53 PM (8 years ago)
Author:
dmik
Comment:

Add Setting up executable compression section

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToPackagers

    v37 v38  
    347347Note that if you don't need any debug info generation at all, simply remove the `%debug_package` macro from your .spec file and debug file generation will be automatically suppressed (all the debug info will be silently discarded from the executable files during the compression phase in such case).
    348348
     349== Setting up executable compression ==
     350
     351By default, RPM performs compression for the following executable files built by the .spec file before putting them to `.rpm` bundles: `*.exe`, `*.dll` and `*.pyd`. Compression is done using the `lxlite` tool by optimizing LX object layout and discarding debug info. Sometimes it is desirable to change the list of files to be compressed (or to disable compression at all). Here are the examples of how to do it:
     352{{{
     353# Disable compression completely
     354%define _strip_no_compress 1
     355
     356# Exclude myfile*.dll from the compressed files
     357%define _strip_opts --compress -x "myfile*.dll"
     358
     359# Add *.mymod files to the default list of files to be compressed
     360%define _strip_opts --compress -i "*.mymod"
     361
     362# Compress only *.mymod files (do not compress default extensions at all)
     363%define _strip_opts --compress -n "*.mymod"
     364}}}
     365
    349366== OS/2 specific notes ==
    350367While the syntax of .spec files is the same used under Unix, not everything is currently working in the OS/2 port. Also many packages are already built and manually installed: this means RPM is not aware of their presence.