automatic version handling and general cleans for rpm builds -- supreet <[EMAIL PROTECTED]>
%define version @KVER@
Summary: A free virtual machine to run Java(tm) code Name: kaffe Version: %{version} Release: 5 Copyright: GPL Vendor: www.kaffe.org Url: http://www.kaffe.org Group: Development/Languages Source0: ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-developmen/kaffe-%{version}.tar.gz Buildroot: /var/tmp/kaffe-root ExclusiveArch: i386 sparc %description This is Kaffe, a virtual machine designed to execute Java bytecode. This machine can be configured in two modes. In one mode it operates as a pure bytecode interpreter (not unlike Javasoft's machine); in the second mode if performs "just-in-time" code conversion from the abstract code to the host machine's native code. This will ultimately allow execution of Java code at the same speed as standard compiled code but while maintaining the advantages and flexibility of code independence. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libexecdir=/usr/lib/kaffe/bin make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files /usr/* %changelog * Fri Oct 31 2003 <[EMAIL PROTECTED] - Added versioning from build system
--- kaffe-cvs/kaffe-1.1.2/configure.in 2003-10-31 00:24:30.000000000 +0530 +++ kaffe-1.1.2/configure.in 2003-10-07 11:40:50.000000000 +0530 @@ -1710,5 +1710,5 @@ AC_CONFIG_FILES([test/regression/compile_time/CompileScript]) AC_CONFIG_FILES([test/regression/run_time/Makefile]) AC_CONFIG_FILES([test/regression/run_time/CompileScript]) -AC_CONFIG_FILES([kaffe.spec]) + AC_OUTPUT