source: projects/vine-rpm-helper/trunk/plugins/autotoolize @ 4939

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

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

Line 
1#
2# Plugin for autotoolize 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%configure
25%{__make} %{?_smp_mflags}
26
27EOL
28}
29
30#
31# Output install section
32#
33OutputInstall()
34{
35cat >> ${SPECFILE} << 'EOL'
36%install
37%{__rm} -rf ${RPM_BUILD_ROOT}
38%{__make} install DESTDIR=${RPM_BUILD_ROOT}
39
40EOL
41}
42
Note: See TracBrowser for help on using the repository browser.