1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# $Id: henplus.spec.in,v 1.8 2004/02/01 21:12:21 hzeller Exp $
#
%define version @HENPLUS_VERSION@
Summary: JDBC SQL utility with readline commandline editing
Copyright: GNU General Public License (GPL)
Group: Application/Java
Name: henplus
Prefix: /usr
Packager: Henner Zeller <H.Zeller@acm.org>
Release: 1
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.jar
%doc doc/HenPlus.html
|