Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > ac6243a97b5e75fa9049b4487982d014 > files > 4

ikvm-0.20.0.0-1mdk.src.rpm

%define name ikvm
%define version 0.20.0.0
%define release 1mdk
%define classpath 0.18
%if %mdkversion >= 200600
%define pkgconfigdir %_datadir/pkgconfig
%else
%define pkgconfigdir %_libdir/pkgconfig
%endif

Summary: Java implementation for Mono
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://prdownloads.sourceforge.net/ikvm/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.gnu.org/pub/gnu/classpath/classpath-%classpath.tar.bz2
#gw only for the wrapper files:
Source2: http://go-mono.com/sources/ikvm/ikvm-0.14.tar.bz2
License: GPL-like
Group: Development/Java
Url: http://www.ikvm.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildRequires: nant
BuildRequires: ecj
Requires: mono

%description
IKVM.NET is a JVM for Mono and the Microsoft .NET framework.

%prep
%setup -q -n %name -a 1 -a 2
perl -pi -e "s^\.\./\.\.^..^" classpath/allsources.lst classpath/classpath.build

%build
cd ikvm-0.14
./configure --prefix=%_prefix --libdir=%_prefix/lib
%make
cd ..
nant -nologo clean
nant -nologo

%install
rm -rf $RPM_BUILD_ROOT
cd ikvm-0.14
%makeinstall_std
#gw fix pkgconfig location
%if %mdkversion >= 200600
mkdir -p %buildroot%pkgconfigdir
mv %buildroot%_prefix/lib/pkgconfig/*  %buildroot%pkgconfigdir/
%endif
perl -pi -e "s^0.14^%version^" %pkgconfigdir/ikvm.pc
cd ..
rm -f %buildroot%_prefix/lib/%name/{*.exe,*.dll}
cp bin/*.exe bin/IKVM*.dll %buildroot%_prefix/lib/%name

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENSE THANKYOU website/build/site
%_bindir/*
%_prefix/lib/%name
%pkgconfigdir/*.pc

%changelog
* Sun Sep 11 2005 Götz Waschk <waschk@mandriva.org> 0.20.0.0-1mdk
- new classpath 0.18
- New release 0.20.0.0

* Mon Jul 25 2005 Götz Waschk <waschk@mandriva.org> 0.18.0.0-2mdk
- remove the prebuilt binaries

* Mon Jul 25 2005 Götz Waschk <waschk@mandriva.org> 0.18.0.0-1mdk
- buildrequires ecj
- update classpath to 0.17
- drop patch
- new version

* Mon May 23 2005 Götz Waschk <waschk@mandriva.org> 0.14.0.1-1mdk
- initial package