rpmbuild change compression format

前端 未结 4 806
面向向阳花
面向向阳花 2020-12-14 02:41

I try to pack some map files for our geoserver in an internal rpm package. For the build part, this is just to copy the files. I think this works as expected. But it takes t

4条回答
  •  忘掉有多难
    2020-12-14 03:00

    Please check the file /usr/lib/rpm/macros in your build machine, (the file maybe diff in path), it has a total support list of compression methods there: e.g.:

    329 #       Compression type and level for source/binary package payloads.
    330 #               "w9.gzdio"      gzip level 9 (default).
    331 #               "w9.bzdio"      bzip2 level 9.
    332 #               "w7.xzdio"      xz level 7, xz's default.
    333 #               "w7.lzdio"      lzma-alone level 7, lzma's default
    334 #
    335 #%_source_payload       w9.gzdio
    336 #%_binary_payload       w9.gzdio
    

    so here just as Aaron said, you can set it here for universal, or set specifically for your proj. spec.

提交回复
热议问题