File jte.spec of Package jte
#
# spec file for package jte
#
# Copyright (c) 2024 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: jte
Version: 3.1.13
Release: 0
Summary: Secure and speedy templates for Java and Kotlin
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://%{name}.gg/
Source0: https://github.com/casid/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
#BuildRequires: mvn(org.eclipse.jetty:apache-jsp)
#BuildRequires: mvn(org.apache.ant:ant)
BuildConflicts: java-devel < 17
BuildArch: noarch
%description
jte (Java Template Engine) is a secure and lightweight template engine for Java
and Kotlin. jte is designed to introduce as few new keywords as possible and
builds upon existing language features, making it straightforward to reason
about what a template does. The IntelliJ plugin offers full completion and
refactoring support for Java parts and jte keywords.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup
%pom_disable_module %{name}-spring-boot-starter-2
%pom_disable_module %{name}-spring-boot-starter-3
%pom_disable_module %{name}-kotlin
%pom_disable_module %{name}-watcher
%pom_disable_module %{name}-jsp-converter
%pom_disable_module %{name}-jsp-converter-jakarta
%pom_disable_module test/%{name}-runtime-test-kotlin
%pom_disable_module test/%{name}-test-report
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_dep gg.jte:jte-kotlin %{name}-maven-plugin
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc {SECURITY,README}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog