Revision 4984,
609 bytes
checked in by yasumichi, 13 years ago
(diff) |
デフォルトで R:python BR:python-devel を出力するようにした。
|
Line | |
---|
1 | # |
---|
2 | # Plugin for Python package |
---|
3 | # |
---|
4 | # vi:syntax=sh |
---|
5 | # |
---|
6 | |
---|
7 | # |
---|
8 | # output dependency |
---|
9 | # |
---|
10 | OutputDependency() |
---|
11 | { |
---|
12 | echo "# Dependency" >> ${SPECFILE} |
---|
13 | echo "# `eval_gettext "Please describe a dependency below. "`" >> ${SPECFILE} |
---|
14 | echo "Requires: python" >> ${SPECFILE} |
---|
15 | echo "BuildRequires: python" >> ${SPECFILE} |
---|
16 | echo >> ${SPECFILE} |
---|
17 | } |
---|
18 | |
---|
19 | # |
---|
20 | # Output build section |
---|
21 | # |
---|
22 | OutputBuild() |
---|
23 | { |
---|
24 | cat >> ${SPECFILE} << 'EOL' |
---|
25 | %build |
---|
26 | %{__python} setup.py build |
---|
27 | |
---|
28 | EOL |
---|
29 | } |
---|
30 | |
---|
31 | # |
---|
32 | # Output install section |
---|
33 | # |
---|
34 | OutputInstall() |
---|
35 | { |
---|
36 | cat >> ${SPECFILE} << 'EOL' |
---|
37 | %install |
---|
38 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
39 | %{__python} setup.py install --root=${RPM_BUILD_ROOT} |
---|
40 | |
---|
41 | EOL |
---|
42 | } |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.