509d035
Name:           kawa
509d035
Epoch:          1
934d214
Version:        2.0
934d214
Release:        1%{?dist}
509d035
Summary:        Kawa scheme implementation
509d035
License:        MIT
509d035
URL:            http://www.gnu.org/software/kawa/
509d035
Source0:        http://ftp.gnu.org/gnu/kawa/kawa-%{version}.tar.gz
509d035
BuildRequires:  ant
509d035
BuildRequires:  antlr
509d035
BuildRequires:  groff
509d035
BuildRequires:  java-devel >= 1:1.7.0
509d035
BuildRequires:  libtool
509d035
BuildRequires:  ncurses-devel
509d035
BuildRequires:  readline-devel
509d035
BuildRequires:  servlet3
509d035
BuildRequires:  texinfo
509d035
BuildRequires:  util-linux-ng
509d035
Requires:       servlet3
40cd767
Requires:       java-headless
40cd767
Requires(post): info
40cd767
Requires(preun): info
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}
40cd767
BuildArch:      noarch
aaca816
Requires:       %{name} = %{epoch}:%{version}-%{release}
aaca816
Requires:       jpackage-utils
d2b8c11
d2b8c11
%description    javadoc
d2b8c11
%{summary}.
d2b8c11
d2b8c11
%prep
509d035
%setup -q
d2b8c11
d2b8c11
%build
40cd767
%configure --enable-kawa-frontend \
40cd767
           --with-java-source=1.7.0 \
509d035
           --with-servlet=$(build-classpath tomcat-servlet-3.0-api) \
509d035
           --with-libtool
aaca816
export CLASSPATH=$(build-classpath servlet antlr)
aaca816
make
d2b8c11
d2b8c11
# Override the Makefile for generating kawa.1, since it should be
d2b8c11
# unformatted man page source.
509d035
cp -p doc/kawa.man doc/kawa.1
509d035
cp -p doc/qexo.man doc/qexo.1
d2b8c11
d2b8c11
%install
509d035
%make_install install-javadoc-html JAVA=%{_bindir}/java JAVADOC_DIR=%{buildroot}%{_javadocdir}/%{name}
40cd767
rm -frv %{buildroot}%{_infodir}/dir
934d214
rm %{buildroot}%{_datadir}/java/kawa.jar
934d214
mv %{buildroot}%{_datadir}/java/kawa*.jar %{buildroot}%{_datadir}/java/kawa.jar
934d214
cp -p bin/cgi-servlet %{buildroot}%{_bindir}/cgi-servlet
509d035
509d035
%check
509d035
#make check
d2b8c11
d2b8c11
%post
40cd767
install-info %{_infodir}/kawa.info.gz %{_infodir}/dir
d2b8c11
40cd767
%preun
d2b8c11
if [ $1 = 0 ]; then
40cd767
  install-info --delete %{_infodir}/kawa.info.gz %{_infodir}/dir
d2b8c11
fi
d2b8c11
d2b8c11
%files
509d035
%doc AUTHORS ChangeLog COPYING NEWS README TODO
003e36b
%{_bindir}/cgi-servlet
509d035
%{_bindir}/kawa
509d035
%{_bindir}/qexo
509d035
%{_datadir}/java/kawa*.jar
d2b8c11
%{_mandir}/man1/kawa.1*
efb2353
%{_mandir}/man1/qexo.1*
d2b8c11
%{_infodir}/kawa*
d2b8c11
d2b8c11
%files javadoc
d2b8c11
%doc %{_javadocdir}/%{name}
d2b8c11
d2b8c11
%changelog
934d214
* Sat Feb 21 2015 Mosaab Alzoubi <moceap@hotmail.com> - 1:2.0-1
934d214
- Update to 2.0
934d214
- Remove version of Jar file #1022128
934d214
- Manual cgi-servlet install
934d214
17bd4a9
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.14-3
17bd4a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
17bd4a9
934d214
* Sat Jul 26 2014 Christopher Meng <rpm@cicku.me> - 1:1.14-2
40cd767
- Minor cleanup, explicitly requires java.
40cd767
509d035
* Thu Jun 19 2014 Christopher Meng <rpm@cicku.me> - 1:1.14-1
509d035
- Update to 1.14
509d035
509d035
* Mon Sep 23 2013 Christopher Meng <rpm@cicku.me> - 1:1.13-1
509d035
- Update to 1.13
509d035
7946004
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.11-6
7946004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7946004
55e8e01
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.11-5
55e8e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
55e8e01
85f58ba
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.11-4
85f58ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
85f58ba
18020a5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.11-3
18020a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
18020a5
b11b4a2
* Wed Mar 23 2011 Alexander Kurtakov <akurtako@redhat.com> 1:1.11-2
b11b4a2
- BR java 1.6.0.
b11b4a2
aaca816
* Wed Mar 23 2011 Alexander Kurtakov <akurtako@redhat.com> 1:1.11-1
aaca816
- Update to new upstream version.
aaca816
- Drop gcj bits.
aaca816
- Adapt to current guidelines.
aaca816
d6298fe
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.1-10
d6298fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d6298fe
8fe0095
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.1-9
8fe0095
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8fe0095
b26480b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.1-8
b26480b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b26480b
84f468a
* Mon Jan 12 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1:1.9.1-7
84f468a
- Requires in -javadoc subpackage needs epoch
84f468a
016ac7b
* Mon Nov 10 2008 Anthony Green <green@redhat.com> - 1:1.9.1-6
016ac7b
- The -javadoc package should Require the main package. (#451861)
016ac7b
f42cd15
* Thu Feb 28 2008 Anthony Green <green@redhat.com> - 1:1.9.1-5
f42cd15
- BuildRequire util-linux-ng.
f42cd15
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
509d035
* Mon 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
509d035
* Wed 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.