【发布时间】:2013-12-26 12:18:52
【问题描述】:
我有一个支持添加 python 插件的应用程序的源代码。我已经编写了一个 python 脚本并想构建一个自定义 rpm,默认包含我的脚本。这样我就不必在 rpm 安装后额外添加它。
现在据我了解,这有两个部分-
- 将文件添加到源代码中。
- 在
.spec文件中列出该文件。
我如何知道将文件放在源中的什么位置?如何指定要复制脚本的路径?规范文件包含类似的文本-
%if %{with_python}
%files python
%{_mandir}/man5/collectd-python*
%{_libdir}/%{name}/python.so
//Something like this?
// %{_libdir}/%{name}/gearman.py
// %{_libdir}/%{name}/redis.py
%endif
【问题讨论】:
标签: compilation rpm rpmbuild rpm-spec