d2b8c11
Summary: Kawa scheme implementation
d2b8c11
Name: kawa
d2b8c11
431367b
Version: 1.9.1
431367b
%define nversion 1.9.1
431367b
%define dversion 1.9.1
d2b8c11
3a92091
Release: 4%{?dist}
af6f45b
License: MIT
d2b8c11
Group: Development/Languages
d2b8c11
URL: http://www.gnu.org/software/kawa/
d2b8c11
Source0: %{name}-%{nversion}.tar.gz
d2b8c11
BuildRoot: %{_tmppath}/%{name}-%{nversion}-%{release}-root
66f0bbe
BuildPrereq: gcc-java >= 4.1.0
66f0bbe
Requires: libgcj >= 4.1.0
dac00bd
BuildRequires:    libtool
d2b8c11
BuildRequires:    texinfo
6ac2ac8
BuildRequires:    groff
d2b8c11
BuildRequires:    readline-devel
d2b8c11
BuildRequires:    ant >= 1.6
3034b32
BuildRequires:    ncurses-devel
bfd91ef
BuildRequires:    antlr
d2b8c11
BuildRequires:    servletapi5
d2b8c11
Requires:         servletapi5
d2b8c11
BuildRequires:    java-gcj-compat-devel >= 1.0.31
1027b62
Requires(post):   java-gcj-compat >= 1.0.31
1027b62
Requires(postun): java-gcj-compat >= 1.0.31
efb2353
Epoch: 1
d2b8c11
d2b8c11
%description
efb2353
Kawa is an implementation of the Scheme programming language.  It is
efb2353
implemented in Java, and compiles Scheme into Java byte-codes.  It
efb2353
also includes an XQuery implementation, accessible via the qexo
efb2353
script.
d2b8c11
d2b8c11
%package        javadoc
d2b8c11
Summary:        Javadoc for %{name}
d2b8c11
Group:          Development/Documentation
d2b8c11
d2b8c11
%description    javadoc
d2b8c11
%{summary}.
d2b8c11
d2b8c11
%prep
efb2353
%setup -q -n %{name}-%{dversion}
d2b8c11
d2b8c11
%build
ea7e465
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} --enable-kawa-frontend --with-gcj
bfd91ef
export CLASSPATH=$(build-classpath servletapi5 antlr)
ea7e465
# build kawa.jar with gcj to work around an ecj bug.
ea7e465
make
ea7e465
cd gnu/kawa/servlet
ea7e465
CLASSPATH=../../..:./../../..:$CLASSPATH gcj -C -d ../../.. -g CGIServletWrapper.java GetRequest.java GetResponse.java KawaPageServlet.java KawaServlet.java ReplServlet.java ReplSession.java ServletCallContext.java ServletPrinter.java
ea7e465
cd ../../..
ea7e465
tar cvf /tmp/c.tar `find ./ -name \*class`
ea7e465
make distclean ||:
ea7e465
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} --enable-kawa-frontend 
ea7e465
tar xvf /tmp/c.tar
d2b8c11
ant
d2b8c11
d2b8c11
# Override the Makefile for generating kawa.1, since it should be
d2b8c11
# unformatted man page source.
d2b8c11
cp doc/kawa.man doc/kawa.1
d2b8c11
d2b8c11
%install
d2b8c11
rm -rf $RPM_BUILD_ROOT
d2b8c11
make install install-javadoc-html JAVA=/usr/bin/java DESTDIR=$RPM_BUILD_ROOT JAVADOC_DIR=$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
d2b8c11
rm -f $RPM_BUILD_ROOT/usr/share/info/dir
d2b8c11
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
d2b8c11
aot-compile-rpm
d2b8c11
d2b8c11
%clean
d2b8c11
rm -rf $RPM_BUILD_ROOT
d2b8c11
d2b8c11
%post
1027b62
/sbin/install-info %{_infodir}/kawa.info.gz %{_infodir}/dir
d2b8c11
%{_bindir}/rebuild-gcj-db
d2b8c11
d2b8c11
%postun
d2b8c11
if [ $1 = 0 ]; then
1027b62
  /sbin/install-info --delete %{_infodir}/kawa.info.gz %{_infodir}/dir
d2b8c11
fi
d2b8c11
%{_bindir}/rebuild-gcj-db
d2b8c11
d2b8c11
%files
d2b8c11
%defattr(-,root,root,-)
d2b8c11
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
d2b8c11
%{_bindir}/*
d2b8c11
%{_datadir}/java/*
d2b8c11
%{_libdir}/gcj/*
d2b8c11
%{_mandir}/man1/kawa.1*
efb2353
%{_mandir}/man1/qexo.1*
d2b8c11
%{_infodir}/kawa*
d2b8c11
d2b8c11
%files javadoc
d2b8c11
%defattr(644,root,root,755)
d2b8c11
%doc %{_javadocdir}/%{name}-%{version}
d2b8c11
%doc %{_javadocdir}/%{name}
d2b8c11
d2b8c11
%changelog
3a92091
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:1.9.1-4
3a92091
- Autorebuild for GCC 4.3
3a92091
ea7e465
* Mon Oct 15 2007 Anthony Green <green@redhat.com> - 1:1.9.1-3
ea7e465
- Don't build with icedtea, as it's not portable.
ea7e465
- Build .class files with gcj to work around ecj bug.
ea7e465
af6f45b
* Mon Oct 15 2007 Anthony Green <green@redhat.com> - 1:1.9.1-2
af6f45b
- Oops.  Change %%License to MIT.
af6f45b
431367b
* Mon Oct 15 2007 Anthony Green <green@redhat.com> - 1:1.9.1-1
431367b
- BuildRequire java-1.7.0-icedtea-devel, since that's what we'll build
431367b
  with now.
431367b
- Upgrade to 1.9.1.
431367b
- Change %%License to BSD.
431367b
dac00bd
* Mon Jan 22 2007 Anthony Green <green@redhat.com> - 1:1.9.0-2
dac00bd
- BuildRequire libtool.
dac00bd
1027b62
* Mon Jan 22 2007 Anthony Green <green@redhat.com> - 1:1.9.0-1
1027b62
- Upgrade to 1.9.0.
b0e2251
bfd91ef
* Thu Oct 05 2006 Anthony Green <green@redhat.com> - 1:1.8-11
bfd91ef
- Add antlr to classpath for gjdoc.
bfd91ef
509cd5d
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.8-10
bfd91ef
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
509cd5d
d9373c1
* Mon Sep 18 2006 Anthony Green <green@redhat.com> - 1:1.8-9
d9373c1
- Fix release tag.
d9373c1
92e32f7
* Mon Sep 18 2006 Anthony Green <green@redhat.com> - 1:1.8-8.2
92e32f7
- Rebuild.
92e32f7
1c9170a
* Wed Aug 30 2006 Anthony Green <green@redhat.com> - 1:1.8-8.1
1c9170a
- Rebuild with new aot-compile-rpm
1c9170a
3034b32
* Mon Jul 31 2006 Anthony Green <green@redhat.com> - 1:1.8-8
3034b32
- Add ncurses-devel BuildRequires.
3034b32
892fc82
* Tue Jul 25 2006 Anthony Green <green@redhat.com> - 1:1.8-7
892fc82
- Rebuild with new compiler.
892fc82
9416b88
* Wed Jul 19 2006 Anthony Green <green@redhat.com> - 1:1.8-6
9416b88
- Rebuild with new compiler.
9416b88
6ac2ac8
* Thu Feb  9 2006 Anthony Green <green@redhat.com> - 1:1.8-5
6ac2ac8
- Add groff build requirement for man page processing.
6ac2ac8
8b10d88
* Thu Feb  9 2006 Anthony Green <green@redhat.com> - 1:1.8-4
8b10d88
- Rebuild with new 4.1 compiler (post ABI change).
8b10d88
4178e96
* Wed Nov 14 2005 Anthony Green <green@redhat.com> - 1:1.8-3
66f0bbe
- Rebuild with GCC 4.1.
66f0bbe
efb2353
* Sat Oct  8 2005 Anthony Green <green@redhat.com> - 1:1.8-1
efb2353
- Upgrade to 1.8.
efb2353
- Add qexo man page.
efb2353
- Use an epoch because previous releases had bad names that confuse RPM.  My bad.
efb2353
efb2353
* Wed Sep 28 2005 Anthony Green <green@redhat.com> - 1.8rc2-1
efb2353
- Upgrade to 1.8 rc2.
efb2353
d2b8c11
* Sun Sep 11 2005 Anthony Green <green@redhat.com> - 1.8beta-5
d2b8c11
- Remove Requires for realine.  This is handled automagically.
d2b8c11
- Remove ldconfig.
d2b8c11
d2b8c11
* Sun Sep 11 2005 Anthony Green <green@redhat.com> - 1.8beta-4
d2b8c11
- Install unformatted man page source.
d2b8c11
- Remove BuildRequires groff.
d2b8c11
- Force kawa binary to use /usr/bin/java.
d2b8c11
- Add javadoc package.
d2b8c11
- Happy birthday, spec file!
d2b8c11
d2b8c11
* Sat Sep 10 2005 Anthony Green <green@redhat.com> - 1.8beta-3
d2b8c11
- Add BuildRequires for groff and readline-devel.
d2b8c11
- Add Requires for readline.
d2b8c11
- Configure with --enable-kawa-frontend.
d2b8c11
d2b8c11
* Sat Sep 10 2005 Anthony Green <green@redhat.com> - 1.8beta-2
d2b8c11
- Add BuildRequires for ant, texinfo and servletapi5.
d2b8c11
- Add Requires for servletapi5.
d2b8c11
- Add servletapi5.jar to classpath.
d2b8c11
d2b8c11
* Wed Sep  7 2005 Anthony Green <green@redhat.com> - 1.8beta-1
d2b8c11
- Updgrade to 1.8beta
d2b8c11
d2b8c11
* Sat Sep  7 2005 Anthony Green <green@redhat.com> - 1.7-2
d2b8c11
- Build for Fedora Extras.
d2b8c11
d2b8c11
* Sat Sep 11 2004 Anthony Green <green@spindazzle.org> - 1.7-1
d2b8c11
- Initial build.
d2b8c11