2019-11-02 10:27:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package string-template-maven-plugin
|
|
|
|
#
|
2025-03-27 14:14:37 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-11-02 10:27:50 +00:00
|
|
|
#
|
|
|
|
# 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: string-template-maven-plugin
|
|
|
|
Version: 1.1
|
|
|
|
Release: 0
|
|
|
|
Summary: StringTemplate Maven Plugin
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://github.com/kevinbirch/%{name}
|
|
|
|
Source0: https://github.com/kevinbirch/%{name}/archive/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://raw.githubusercontent.com/kevinbirch/%{name}/master/LICENSE
|
2025-03-27 14:14:37 +00:00
|
|
|
Patch0: string-template-maven-plugin-mpt4.patch
|
2019-11-02 10:27:50 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-23 10:55:45 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2019-11-02 10:27:50 +00:00
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.antlr:ST4)
|
2025-03-27 15:06:44 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
2019-11-02 10:27:50 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
2025-06-23 11:31:55 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven:maven-compat)
|
2019-11-02 10:27:50 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
BuildRequires: mvn(org.eclipse.aether:aether-util)
|
|
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
|
|
BuildRequires: mvn(org.twdata.maven:mojo-executor)
|
2019-11-03 14:23:59 +00:00
|
|
|
#!BuildRequires: stringtemplate4
|
2019-11-02 10:27:50 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
This plugin allows to execute StringTemplate template files during build.
|
|
|
|
The values for templates can come from static declarations or from a Java
|
|
|
|
class specified to be executed.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2025-03-27 14:14:37 +00:00
|
|
|
%patch -P 0 -p1
|
2019-11-02 10:27:50 +00:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
%pom_change_dep :stringtemplate :ST4
|
|
|
|
%pom_change_dep org.sonatype.aether: org.eclipse.aether:
|
|
|
|
perl -pi -e 's#org\.sonatype\.aether#org.eclipse.aether#g' \
|
|
|
|
src/main/java/com/webguys/maven/plugin/st/Controller.java
|
|
|
|
|
2023-09-15 11:01:55 +00:00
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
|
2025-03-27 14:14:37 +00:00
|
|
|
%pom_add_dep org.apache.maven.plugin-tools:maven-plugin-annotations:3.15.1:provided
|
|
|
|
|
2025-06-23 11:31:55 +00:00
|
|
|
%pom_add_dep org.apache.maven:maven-compat:3.0.8
|
|
|
|
|
2019-11-02 10:27:50 +00:00
|
|
|
%build
|
2022-03-23 10:55:45 +00:00
|
|
|
%{mvn_build} -f -- \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
|
|
-Dmaven.compiler.release=8 \
|
|
|
|
%endif
|
|
|
|
-Dsource=8
|
2019-11-02 10:27:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|