Group :: Development/Other
RPM: stringtemplate
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Summary: A Java template engine
Name: stringtemplate
Version: 3.2.1
Release: alt2_24jpp11
URL: http://www.stringtemplate.org/
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
# Build jUnit tests + make the antlr2 generated code before preparing sources
Patch0: stringtemplate-3.1-build-junit.patch
License: BSD
BuildRequires: ant
BuildRequires: ant-antlr
BuildRequires: ant-junit
BuildRequires: javapackages-local
BuildArch: noarch
Source44: import.info
%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
Group: Development/Java
Summary: API documentation for %{name}
Requires: java-javadoc
BuildArch: noarch
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0
sed -i -e 's/source="1.4"/source="1.8"/g' build.xml
sed -i -e 's/target="1.4"/target="1.8"/g' build.xml
%build
rm -rf lib target
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 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
%doc --no-dereference LICENSE.txt
%doc README.txt
%files javadoc
%doc --no-dereference LICENSE.txt
%{_javadocdir}/%{name}
%changelog
…
Full changelog you can see here
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Summary: A Java template engine
Name: stringtemplate
Version: 3.2.1
Release: alt2_24jpp11
URL: http://www.stringtemplate.org/
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
# Build jUnit tests + make the antlr2 generated code before preparing sources
Patch0: stringtemplate-3.1-build-junit.patch
License: BSD
BuildRequires: ant
BuildRequires: ant-antlr
BuildRequires: ant-junit
BuildRequires: javapackages-local
BuildArch: noarch
Source44: import.info
%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
Group: Development/Java
Summary: API documentation for %{name}
Requires: java-javadoc
BuildArch: noarch
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0
sed -i -e 's/source="1.4"/source="1.8"/g' build.xml
sed -i -e 's/target="1.4"/target="1.8"/g' build.xml
%build
rm -rf lib target
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 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
%doc --no-dereference LICENSE.txt
%doc README.txt
%files javadoc
%doc --no-dereference LICENSE.txt
%{_javadocdir}/%{name}
%changelog
…
Full changelog you can see here