Revision 5181,
517 bytes
checked in by yasumichi, 13 years ago
(diff) |
add support for traditional Makefile project.
|
Rev | Line | |
---|
[5181] | 1 | # |
---|
| 2 | # Plugin for traditional 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 | %{__make} %{?_smp_mflags} |
---|
| 25 | |
---|
| 26 | EOL |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | # |
---|
| 30 | # Output install section |
---|
| 31 | # |
---|
| 32 | OutputInstall() |
---|
| 33 | { |
---|
| 34 | cat >> ${SPECFILE} << 'EOL' |
---|
| 35 | %install |
---|
| 36 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 37 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 38 | |
---|
| 39 | EOL |
---|
| 40 | } |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.