source: to-imperative/trunk/spec.in @ 691

Last change on this file since 691 was 299, checked in by pooh, 18 years ago
  • First stage of CVS tree reorganization completed.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 886 bytes
Line 
1cat <<EOF
2%define packbuildroot /tmp/${NAME}-${VERSION}
3
4Name: ${NAME}
5Version: ${VERSION}
6Release: ${RELEASE}
7Source: ${ARCHIVEDIR}.tar.gz
8License: GPL
9BuildRoot: %{packbuildroot}
10
11Group: Applications/System
12Summary: Refal+ compiler
13
14%description
15Refal+ compiler
16
17%prep
18echo \`pwd\`
19if [ ! -f Makefile ]; then
20  rm -rf ${ARCHIVEDIR}
21  tar xvzf %{SOURCE0}
22  cd ${ARCHIVEDIR}
23fi
24
25%build
26if [ ! -f Makefile ]; then cd ${ARCHIVEDIR}; fi
27make
28
29%install
30[ "\${RPM_BUILD_ROOT}" = "%{packbuildroot}" ] && rm -rf \${RPM_BUILD_ROOT}
31
32if [ ! -f Makefile ]; then cd ${ARCHIVEDIR}; fi
33
34make install INSTALL_DIR=\${RPM_BUILD_ROOT}/usr
35( cd \${RPM_BUILD_ROOT} ; find . -type f) | \\
36  sed -e 's/^\./%attr(-,root,root) /g' >${NAME}.list
37  mv ${NAME}.list %{packbuildroot}/
38
39%clean
40[ "\${RPM_BUILD_ROOT}" = "%{packbuildroot}" ] && rm -rf \${RPM_BUILD_ROOT}
41
42%files -f %{packbuildroot}/${NAME}.list
43EOF
Note: See TracBrowser for help on using the repository browser.