File thymeleaf.spec of Package thymeleaf
#
# spec file for package thymeleaf
#
# 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: thymeleaf
Version: 3.1.3
Release: 0
Summary: A server-side Java template engine for web and standalone environments
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://www.thymeleaf.org/
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/%{name}-%{version}.RELEASE.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-jsr310)
BuildRequires: mvn(com.fasterxml.jackson:jackson-bom:pom:)
BuildRequires: mvn(jakarta.servlet:jakarta.servlet-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(ognl:ognl)
BuildRequires: mvn(org.apache.logging.log4j:log4j-bom:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.attoparser:attoparser)
BuildRequires: mvn(org.junit:junit-bom:pom:)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.unbescape:unbescape)
BuildArch: noarch
%description
Thymeleaf is a modern server-side Java template engine for both web and
standalone environments.
Thymeleaf’s main goal is to bring elegant natural templates to your development
workflow — HTML that can be correctly displayed in browsers and also work as
static prototypes, allowing for stronger collaboration in development teams.
With modules for Spring Framework, a host of integrations with your favourite
tools, and the ability to plug in your own functionality, Thymeleaf is ideal
for modern-day HTML5 JVM web development — although there is much more it can
do.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{name}-%{name}-%{version}.RELEASE
chmod 0644 ChangeLog.txt
%pom_disable_module examples
%pom_disable_module tests
%pom_disable_module %{name}-spring5 lib
%pom_disable_module %{name}-spring6 lib
%pom_disable_module %{name}-extras-springsecurity5 lib
%pom_disable_module %{name}-extras-springsecurity6 lib
%pom_disable_module %{name}-testing-spring5 lib/testing
%pom_disable_module %{name}-testing-spring6 lib/testing
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-assembly-plugin
%pom_remove_dep io.projectreactor:reactor-bom
%pom_remove_dep org.thymeleaf:%{name}-spring5 dist
%pom_remove_dep org.thymeleaf:%{name}-spring6 dist
%pom_remove_dep org.thymeleaf.examples:%{name}-examples dist
%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 {NOTICE,LICENSE}.txt
%doc {ChangeLog,README}.txt
%files javadoc -f .mfiles-javadoc
%license {NOTICE,LICENSE}.txt
%changelog