diff --git a/freemarker-2.3.28.tar.gz b/freemarker-2.3.28.tar.gz
deleted file mode 100644
index 65ec13a..0000000
Binary files a/freemarker-2.3.28.tar.gz and /dev/null differ
diff --git a/freemarker-2.3.30-use-jakarta-el.patch b/freemarker-2.3.30-use-jakarta-el.patch
new file mode 100644
index 0000000..ffdeb12
--- /dev/null
+++ b/freemarker-2.3.30-use-jakarta-el.patch
@@ -0,0 +1,14 @@
+diff --git a/ivy.xml b/ivy.xml
+index 0b03c2b..e880d34 100644
+--- a/ivy.xml
++++ b/ivy.xml
+@@ -98,7 +98,8 @@
+
+
+
+-
++
++
+
+
+
diff --git a/freemarker-2.3.31.tar.gz b/freemarker-2.3.31.tar.gz
new file mode 100644
index 0000000..6827fe7
Binary files /dev/null and b/freemarker-2.3.31.tar.gz differ
diff --git a/freemarker.spec b/freemarker.spec
index 2dd4586..1a18a6c 100644
--- a/freemarker.spec
+++ b/freemarker.spec
@@ -1,5 +1,7 @@
+%bcond_with jp_minimal
+
Name: freemarker
-Version: 2.3.28
+Version: 2.3.31
Release: 1
Summary: The Apache FreeMarker Template Engine
License: ASL 2.0
@@ -11,11 +13,21 @@ Patch3: fix-javadoc-encoding.patch
Patch5: no-javarebel.patch
Patch6: enable-jdom.patch
Patch7: javacc-7.patch
+Patch8: freemarker-2.3.30-use-jakarta-el.patch
+
BuildArch: noarch
-BuildRequires: ant apache-parent apache-commons-logging aqute-bnd dom4j >= 1.6.1 hamcrest
+BuildRequires: java-1.8.0-openjdk-devel ant apache-parent apache-commons-logging aqute-bnd 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: jcl-over-slf4j jdom >= 1.0 junit log4j-over-slf4j slf4j
BuildRequires: xalan-j2 >= 2.7.0
+
+%if %{without jp_minimal}
+BuildRequires: dom4j
+BuildRequires: saxpath
+BuildRequires: jython
+BuildRequires: rhino >= 1.6
+%endif
+
%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
@@ -40,17 +52,33 @@ find -type f -name "*.class" -delete
%patch5
%patch6
%patch7 -p1
+%patch8 -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 -e '/saxpath/d' -e '/avalon-logkit/d' ivy.xml
+sed -i '/ - 2.3.31-1
+- Update to 2.3.31
+
* Mon Aug 24 2020 liyanan - 2.3.28-1
- package init
diff --git a/jsp-api.patch b/jsp-api.patch
index 45cc33f..546b8c9 100644
--- a/jsp-api.patch
+++ b/jsp-api.patch
@@ -7,11 +7,11 @@
-
+
-
+
-
-
diff --git a/no-javarebel.patch b/no-javarebel.patch
index eaa49ea..4943522 100644
--- a/no-javarebel.patch
+++ b/no-javarebel.patch
@@ -2,7 +2,7 @@
+++ build.xml 2017-12-06 18:32:55.974897827 +0000
@@ -264,6 +264,7 @@
classpathref="ivy.dep"
- bootclasspath="${boot.classpath.j2se1.5}"
+ bootclasspath="${boot.classpath.j2se1.7}"
excludes="
+ freemarker/ext/beans/JRebelClassChangeNotifier.java
freemarker/core/_Java?*Impl.java,