From cf1e1a632f636b84495f47e81c09566dfcbd22be Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Nov 20 2007 05:19:20 +0000 Subject: Commit the initial package for other build targets --- diff --git a/.cvsignore b/.cvsignore index e69de29..66e4454 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ikarus-0.0.1.tar.gz diff --git a/ikarus-0.0.1-bootfile.patch b/ikarus-0.0.1-bootfile.patch new file mode 100644 index 0000000..6e487df --- /dev/null +++ b/ikarus-0.0.1-bootfile.patch @@ -0,0 +1,29 @@ +--- ikarus-0.0.1/src/ikarus-main.c.orig 2007-10-25 16:04:55.000000000 -0400 ++++ ikarus-0.0.1/src/ikarus-main.c 2007-11-18 20:15:30.000000000 -0500 +@@ -175,8 +175,9 @@ + if(boot_file){ + argc -= 2; + } ++ /* + else if(global_exe(argv[0])){ +- /* search path name */ ++ * search path name * + char* path = getenv("PATH"); + if(path == NULL){ + fprintf(stderr, +@@ -209,11 +210,15 @@ + } + } + } ++ */ + else { ++ boot_file = "/usr/lib/ikarus/ikarus.boot"; ++ /* + char* x = buff; + x = mystpcpy(x, argv[0]); + x = mystpcpy(x, ".boot"); + boot_file = buff; ++ */ + } + + if(sizeof(mp_limb_t) != sizeof(int)){ diff --git a/ikarus.spec b/ikarus.spec new file mode 100644 index 0000000..660ce1b --- /dev/null +++ b/ikarus.spec @@ -0,0 +1,69 @@ +Name: ikarus +Version: 0.0.1 +Release: 2%{?dist} +Summary: An incremental optimizing compiler for R6RS Scheme + +Group: Development/Languages +License: GPLv3 +URL: http://www.cs.indiana.edu/~aghuloum/ikarus/ +Source0: http://www.cs.indiana.edu/~aghuloum/ikarus/ikarus-%{version}.tar.gz +Patch0: ikarus-0.0.1-bootfile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: i386 + +BuildRequires: gmp-devel +#Requires: + +%description +Ikarus is a free optimizing incremental native-code compiler for R6RS Scheme. + +Ikarus is an optimizing compiler, so your Scheme code will run fast +without the need to port hot spots to C "for performance". With an +incremental compiler, you don't need a separate compilation step to +make your program run fast. The best part is that the compiler itself +is fast, capable of compiling thousands of lines of code per second. + +Finally, Ikarus is an R6RS compiler. R6RS is the latest revision of +the Scheme standard. The preliminary release of Ikarus supports over +80% of the most important features R6RS, and later releases will bring +Ikarus closer to full R6RS conformance. R6RS libraries, scripts, +record types, condition system, exception handling, unicode strings, +bytevectors, hashtable, and enumerations are among the supported +features. + + +%prep +%setup -q +%patch0 -p1 -b .bootfile + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_libdir}/ikarus +mv $RPM_BUILD_ROOT%{_bindir}/ikarus.boot $RPM_BUILD_ROOT%{_libdir}/ikarus/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING GPL-3 README TODO doc/ikarus-users-guide.pdf +%{_bindir}/ikarus +%{_libdir}/ikarus + + +%changelog +* Sun Nov 18 2007 Michel Salim 0.0.1-2 +- Move boot file from _bindir to _libdir + +* Mon Nov 5 2007 Michel Salim 0.0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..13555f8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8d949eaa781417c0d5e8e444f21608d4 ikarus-0.0.1.tar.gz