| Revision 8875,
955 bytes
checked in by yasumichi, 12 years ago
(diff) |
|
add file for Ruby mkmf packages.
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # Plugin for Ruby extend library |
|---|
| 3 | # |
|---|
| 4 | # vi:syntax=sh |
|---|
| 5 | # |
|---|
| 6 | |
|---|
| 7 | # |
|---|
| 8 | # get basic info |
|---|
| 9 | # |
|---|
| 10 | GetBasicInfo() |
|---|
| 11 | { |
|---|
| 12 | #if [ -f ${BUILDDIR}/${PKGDIR}/PKG-INFO ]; then |
|---|
| 13 | #SUMMARY=`grep 'Summary:' ${BUILDDIR}/${PKGDIR}/PKG-INFO | sed -e 's/Summary: *//'` |
|---|
| 14 | #URI=`grep 'Home-page:' ${BUILDDIR}/${PKGDIR}/PKG-INFO | sed -e 's/Home-page: *//'` |
|---|
| 15 | #grep -v "^[a-zA-Z\-]*:" ${BUILDDIR}/${PKGDIR}/PKG-INFO | sed -e 's/^ //' > ${SOURCEDIR}/description.mkrpmspec |
|---|
| 16 | #fi |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | # |
|---|
| 20 | # output dependency |
|---|
| 21 | # |
|---|
| 22 | OutputDependency() |
|---|
| 23 | { |
|---|
| 24 | echo "# Dependency" >> ${SPECFILE} |
|---|
| 25 | echo "# `eval_gettext "Please describe a dependency below. "`" >> ${SPECFILE} |
|---|
| 26 | echo "Requires: ruby" >> ${SPECFILE} |
|---|
| 27 | echo "BuildRequires: ruby-devel" >> ${SPECFILE} |
|---|
| 28 | echo >> ${SPECFILE} |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | # |
|---|
| 32 | # Output build section |
|---|
| 33 | # |
|---|
| 34 | OutputBuild() |
|---|
| 35 | { |
|---|
| 36 | cat >> ${SPECFILE} << 'EOL' |
|---|
| 37 | %build |
|---|
| 38 | ruby extconf.rb |
|---|
| 39 | make |
|---|
| 40 | |
|---|
| 41 | EOL |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | # |
|---|
| 45 | # Output install section |
|---|
| 46 | # |
|---|
| 47 | OutputInstall() |
|---|
| 48 | { |
|---|
| 49 | cat >> ${SPECFILE} << 'EOL' |
|---|
| 50 | %install |
|---|
| 51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 52 | make install |
|---|
| 53 | |
|---|
| 54 | EOL |
|---|
| 55 | } |
|---|
| 56 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.