| 349 | == Setting up executable compression == |
| 350 | |
| 351 | By 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 | |