Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (37 sloc) 1.15 KB
# $Id: henplus.spec.in,v 1.10 2008-11-16 04:24:59 magrokosmos Exp $
#
%define version @HENPLUS_VERSION@
Summary: JDBC SQL utility with readline commandline editing
License: GNU General Public License (GPL)
Group: Application/Java
Name: henplus
Prefix: /usr
Packager: Henner Zeller <H.Zeller@acm.org>
Release: 2
Source: http://prdownloads.sourceforge.net/henplus/henplus-%{version}.tar.gz
URL: http://sourceforge.net/projects/henplus/
Version: %{version}
Buildroot: /tmp/henplus
Requires: libreadline-java >= 0.7.3
BuildRequires: libreadline-java >= 0.7.3
BuildArchitectures: noarch
%description
A SQL commandline frontend with TAB-completion and history for any
JDBC aware database. It supports multiple open database sessions in
parallel.
%prep
%setup -q
%build
export CLASSPATH=$CLASSPATH:`rpm -ql libreadline-java | grep readline-java.jar`
ant -Dbuild.compiler=modern -Dprefix=%{prefix} jar
%install
ant -Dprefix=%{prefix} -DDESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
%{prefix}/bin/henplus
%defattr(-,root,root,-)
%dir %{prefix}/share/henplus
%{prefix}/share/henplus/henplus-%{version}.jar
%doc doc/HenPlus.html