diff --git a/stringtemplate-3.1-build-junit.patch b/stringtemplate-3.1-build-junit.patch new file mode 100644 index 0000000..a4d3ef7 --- /dev/null +++ b/stringtemplate-3.1-build-junit.patch @@ -0,0 +1,43 @@ +--- build.xml.orig 2009-09-22 23:00:17.000000000 +0200 ++++ build.xml 2010-01-29 03:34:13.000000000 +0100 +@@ -94,6 +94,7 @@ + + + ++ + + + +@@ -110,7 +111,7 @@ + + + +- ++ + + + +@@ -239,7 +240,22 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- + + diff --git a/stringtemplate-3.2.1.tar.gz b/stringtemplate-3.2.1.tar.gz new file mode 100644 index 0000000..274bad3 Binary files /dev/null and b/stringtemplate-3.2.1.tar.gz differ diff --git a/stringtemplate.spec b/stringtemplate.spec new file mode 100644 index 0000000..f9322e6 --- /dev/null +++ b/stringtemplate.spec @@ -0,0 +1,48 @@ +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 - 3.2.1-1 +- Package init diff --git a/stringtemplate.yaml b/stringtemplate.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/stringtemplate.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA