Files
jsqlparser/jsqlparser.spec

75 lines
2.3 KiB
RPMSpec

#
# spec file for package jsqlparser
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
Name: jsqlparser
Version: 5.1
Release: 0
Summary: An SQL statement parser
License: Apache-2.0 OR LGPL-2.1-only
Group: Development/Libraries/Java
URL: https://github.com/JSQLParser/JSqlParser/wiki
Source0: https://github.com/JSQLParser/JSqlParser/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: java-devel >= 9
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildArch: noarch
%description
JSqlParser parses an SQL statement and translate it into a hierarchy of Java
classes. The generated hierarchy can be navigated using the Visitor Pattern.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n JSqlParser-%{name}-%{version}
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin org.codehaus.mojo:license-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-compiler-plugin
%pom_change_dep net.java.dev.javacc:javacc ::ANY
%pom_xpath_remove 'pom:project/pom:reporting'
%{mvn_file} : %{name}
%build
export MAVEN_OPTS='-Xmx1024m -Xms1024m -Xss64m'
%{mvn_build} -f -j -- \
-Dmaven.compiler.release=9
%install
%mvn_install
%files -f .mfiles
%license LICENSE*
%doc README.md
%changelog