File hsqldb1.spec of Package hsqldb1
#
# spec file for package hsqldb1
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global cvs_version 1_8_1_3
%global majorversion 1
Name: hsqldb1
Version: 1.8.1.3
Release: 0
Summary: HyperSQL Database Engine
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: http://hsqldb.sourceforge.net/
Source0: http://downloads.sourceforge.net/hsqldb/hsqldb_%{cvs_version}.zip
Source1: http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.pom
Patch0: hsqldb-jdbc-4.1.patch
Patch1: hsqldb-runFinalizersOnExit.patch
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: glassfish-servlet-api
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: junit
BuildRequires: unzip
BuildRequires: xmvn-install
BuildRequires: xmvn-resolve
Requires: glassfish-servlet-api
BuildArch: noarch
%description
HSQLdb is a relational database engine written in JavaTM , with a JDBC
driver, supporting a subset of ANSI-92 SQL. It offers a small (about
100k), fast database engine which offers both in memory and disk based
tables. Embedded and server modes are available. Additionally, it
includes tools such as a minimal web server, in-memory query and
management tools (can be run as applets or servlets, too) and a number
of demonstration examples.
Downloaded code should be regarded as being of production quality. The
product is currently being used as a database and persistence engine in
many Open Source Software projects and even in commercial projects and
products! In it's current version it is extremely stable and reliable.
It is best known for its small size, ability to execute completely in
memory and its speed. Yet it is a completely functional relational
database management system that is completely free under the Modified
BSD License. Yes, that's right, completely free of cost or restrictions!
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n hsqldb
# set right permissions
find . -name "*.sh" -exec chmod 755 \{\} \;
# remove all _notes directories
for dir in `find . -name _notes`; do rm -rf $dir; done
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
find . -name "*.war" -exec rm -f {} \;
# correct silly permissions
chmod -R go=u-w *
%patch -P 0 -p1
%patch -P 1 -p1
cp %{SOURCE1} ./pom.xml
%pom_xpath_set pom:project/pom:version %{version}
%{mvn_file} hsqldb:hsqldb %{name}
%{mvn_compat_version} : %{majorversion}
%build
export CLASSPATH=$(build-classpath glassfish-servlet-api junit)
pushd build
ant jar javadoc
popd
%install
%{mvn_artifact} pom.xml lib/hsqldb.jar
%mvn_install -J doc/src
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license doc/hsqldb_lic.txt
%files javadoc -f .mfiles-javadoc
%license doc/hsqldb_lic.txt
%changelog