stringtemplate4/stringtemplate4.spec

52 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-08-08 18:23:00 +08:00
Name: stringtemplate4
2022-05-20 17:02:52 +08:00
Version: 4.3.3
2020-08-08 18:23:00 +08:00
Release: 1
Summary: A Java template engine
License: BSD
URL: http://www.stringtemplate.org/
2022-05-20 17:02:52 +08:00
Source0: https://github.com/antlr/stringtemplate4/archive/refs/tags/%{version}.tar.gz
2020-08-08 18:23:00 +08:00
BuildRequires: maven-local mvn(junit:junit) mvn(org.antlr:antlr-runtime) >= 3.5.2
BuildRequires: mvn(org.antlr:antlr3-maven-plugin) >= 3.5.2
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: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
2022-05-20 17:02:52 +08:00
%autosetup -p1
%pom_remove_parent
2020-08-08 18:23:00 +08:00
sed -i '/tmpdir =/s,;,+"/"&,' test/org/stringtemplate/v4/test/BaseTest.java
sed -i /testUnknownNamedArg/s/@Test// test/org/stringtemplate/v4/test/TestGroups.java
sed -i /testMissingImportString/s/@Test// test/org/stringtemplate/v4/test/TestGroupSyntaxErrors.java
rm -r test/org/stringtemplate/v4/test/TestEarlyEvaluation.java
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
2022-05-20 17:02:52 +08:00
%doc CHANGES.txt README.md
2020-08-08 18:23:00 +08:00
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
2022-05-20 17:02:52 +08:00
* Fri May 20 2022 Ge Wang <wangge20@h-partners.com> - 4.3.3-1
- Upgrade to version 4.3.3
2020-08-08 18:23:00 +08:00
* Wed Jul 29 2020 leiju <leiju4@huawei.com> - 4.0.8-1
- Package init