diff --git a/4.0.8.tar.gz b/4.0.8.tar.gz new file mode 100644 index 0000000..3f2da5a Binary files /dev/null and b/4.0.8.tar.gz differ diff --git a/stringtemplate4.spec b/stringtemplate4.spec new file mode 100644 index 0000000..2e39242 --- /dev/null +++ b/stringtemplate4.spec @@ -0,0 +1,51 @@ +Name: stringtemplate4 +Version: 4.0.8 +Release: 1 +Summary: A Java template engine +License: BSD +URL: http://www.stringtemplate.org/ +Source0: https://github.com/antlr/stringtemplate4/archive/%{version}.tar.gz +BuildRequires: maven-local mvn(junit:junit) mvn(org.antlr:antlr-runtime) >= 3.5.2 +BuildRequires: mvn(org.antlr:antlr3-maven-plugin) >= 3.5.2 +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +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 +%setup -q +%pom_remove_plugin :findbugs-maven-plugin +%pom_remove_plugin :maven-gpg-plugin +%pom_remove_plugin :maven-shade-plugin +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 +%doc CHANGES.txt contributors.txt README.txt +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Wed Jul 29 2020 leiju - 4.0.8-1 +- Package init diff --git a/stringtemplate4.yaml b/stringtemplate4.yaml new file mode 100644 index 0000000..88619f7 --- /dev/null +++ b/stringtemplate4.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: antlr/stringtemplate4 +tag_prefix: "^" +seperator: "."