Name: freemarker
Version: 2.3.29
Release: 2
Summary: The Apache FreeMarker Template Engine
License: ASL 2.0 and OFL-1.1 and CC-BY-SA-3.0
URL: https://freemarker.apache.org/
Source0: https://github.com/apache/freemarker/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: jsp-api.patch
Patch2: jython-compatibility.patch
Patch3: fix-javadoc-encoding.patch
Patch5: no-javarebel.patch
Patch6: enable-jdom.patch
Patch7: javacc-7.patch
BuildArch: noarch
BuildRequires: ant apache-parent apache-commons-logging aqute-bnd dom4j >= 1.6.1 hamcrest
BuildRequires: ivy-local glassfish-jsp-api glassfish-servlet-api javacc >= 7.0 jaxen >= 1.1
BuildRequires: jcl-over-slf4j jdom >= 1.0 junit jython log4j-over-slf4j rhino >= 1.6 slf4j
BuildRequires: xalan-j2 >= 2.7.0
%description
Apache FreeMarker is a template engine: a Java library to generate text output
(HTML web pages, e-mails, configuration files, source code, etc.) based on
templates and changing data. Templates are written in the FreeMarker Template
Language (FTL), which is a simple, specialized language (not a full-blown
programming language like PHP).
%package help
Summary: Javadoc for %{name}
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
This package contains the API documentation for %{name}.
%prep
%setup -q
find -type f -name "*.jar" -delete
find -type f -name "*.class" -delete
%patch1
%patch2
%patch3
%patch5
%patch6
%patch7 -p1
rm ivysettings.xml
sed -i 's/cachepath conf="IDE"/cachepath conf="javadoc"/' build.xml
sed -i '/conf name="IDE"/i' ivy.xml
sed -i '/ - 2.3.29-2
- Remove unused build require saxpath because it has been merged into Jaxen
* Fri Apr 30 2021 sunguoshuai - 2.3.29-1
- Upgrade to 2.3.29
* Mon Aug 24 2020 liyanan - 2.3.28-1
- package init