| Revision 4939,
528 bytes
checked in by yasumichi, 15 years ago
(diff) |
|
SPEC ファィル出力部分の一部をプラグイン化
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # Plugin for autotoolize 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 >> ${SPECFILE} |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | # |
|---|
| 18 | # Output build section |
|---|
| 19 | # |
|---|
| 20 | OutputBuild() |
|---|
| 21 | { |
|---|
| 22 | cat >> ${SPECFILE} << 'EOL' |
|---|
| 23 | %build |
|---|
| 24 | %configure |
|---|
| 25 | %{__make} %{?_smp_mflags} |
|---|
| 26 | |
|---|
| 27 | EOL |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | # |
|---|
| 31 | # Output install section |
|---|
| 32 | # |
|---|
| 33 | OutputInstall() |
|---|
| 34 | { |
|---|
| 35 | cat >> ${SPECFILE} << 'EOL' |
|---|
| 36 | %install |
|---|
| 37 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 38 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 39 | |
|---|
| 40 | EOL |
|---|
| 41 | } |
|---|
| 42 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.