49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
Summary: A Java template engine
|
|
Name: stringtemplate
|
|
Version: 3.2.1
|
|
Release: 1
|
|
URL: http://www.stringtemplate.org/
|
|
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
|
|
Patch0: stringtemplate-3.1-build-junit.patch
|
|
License: BSD
|
|
BuildRequires: ant ant-antlr ant-junit javapackages-local
|
|
BuildArch: noarch
|
|
%description
|
|
StringTemplate is a java template engine (with ports for
|
|
C# and Python) for generating source code, web pages,
|
|
emails, or any other formatted text output. StringTemplate
|
|
is particularly good at multi-targeted code generators,
|
|
multiple site skins, and internationalization/localization.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Requires: java-javadoc
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
%build
|
|
rm -rf lib target
|
|
ant jar
|
|
ant javadocs -Dpackages= -Djavadocs.additionalparam="-Xdoclint:none"
|
|
|
|
%install
|
|
%mvn_artifact pom.xml build/%{name}.jar
|
|
%mvn_file : %{name}
|
|
%mvn_install -J docs/api/
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
%doc README.txt
|
|
|
|
%files javadoc
|
|
%license LICENSE.txt
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Thu Jul 23 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.2.1-1
|
|
- Package init
|