[kaffe] spec file generation patch

supreet supreet@linux-delhi.org
Thu Oct 30 11:23:04 2003


--=-U/0XRC+Cbq5nFVg1Jvd1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

automatic version handling and general cleans for rpm builds
-- 
supreet <supreet@linux-delhi.org>

--=-U/0XRC+Cbq5nFVg1Jvd1
Content-Disposition: attachment; filename=kaffe.spec.in
Content-Type: text/plain; name=kaffe.spec.in; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit

%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  <supreet@linux-delhi.org
- Added versioning from build system

--=-U/0XRC+Cbq5nFVg1Jvd1
Content-Disposition: attachment; filename=specfile_generation_patch.diff
Content-Type: text/plain; name=specfile_generation_patch.diff; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit

--- 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

--=-U/0XRC+Cbq5nFVg1Jvd1--