source: projects/vine-rpm-helper/tags/0.3/plugins/Python @ 4939

Revision 4939, 523 bytes checked in by yasumichi, 13 years ago (diff)

SPEC ファィル出力部分の一部をプラグイン化

Line 
1#
2# Plugin for Python package
3#
4# vi:syntax=sh
5#
6
7#
8# output dependency
9#
10OutputDependency()
11{
12        echo "# Dependency" >> ${SPECFILE}
13        echo "# `eval_gettext "Please describe a dependency below. "`" >> ${SPECFILE}
14        echo >> ${SPECFILE}
15}
16
17#
18# Output build section
19#
20OutputBuild()
21{
22cat >> ${SPECFILE} << 'EOL'
23%build
24%{__python} setup.py build
25
26EOL
27}
28
29#
30# Output install section
31#
32OutputInstall()
33{
34cat >> ${SPECFILE} << 'EOL'
35%install
36%{__rm} -rf ${RPM_BUILD_ROOT}
37%{__python} setup.py install --root=${RPM_BUILD_ROOT}
38
39EOL
40}
41
Note: See TracBrowser for help on using the repository browser.