-
Notifications
You must be signed in to change notification settings - Fork 51
/
henplus.spec.in
46 lines (37 loc) · 1.15 KB
/
henplus.spec.in
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
# $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