我有一组软件包,其中包含一些纯文本文档,其中的名称后面带有“ .gz”。它们仍然是纯文本文件,但是文件名具有误导性。
包装内容(预构建):
/etc/some-package/config.xml
/opt/some-package/<stuff>
/usr/share/doc/some-package/EULA
/usr/share/doc/some-package/LICENSE.txt
SPEC%files部分:
%files
%defattr(-,root,root,-)
%config(noreplace) /etc/some-package/config.xml
%docdir /usr/share/doc/some-package
/usr/share/doc/some-package
/opt/some-package
打包命令:
rpmbuild -vv -ba --define "_source_filedigest_algorithm 8" --define
"_binary_filedigest_algorithm 8" --define "_topdir $WORKSPACE" --
define "_WORKSPACE $WORKSPACE" $WORKSPACE/SPECS/some-package.spec
包装内容(后装):
/etc/some-package/config.xml
/opt/some-package/<stuff>
/usr/share/doc/some-package/EULA.gz
/usr/share/doc/some-package/LICENSE.txt.gz