diff --git a/bsh-source-1.6.patch b/bsh-source-1.6.patch new file mode 100644 index 0000000..c1ca364 --- /dev/null +++ b/bsh-source-1.6.patch @@ -0,0 +1,21 @@ +--- beanshell-2.0b6/build.xml~ 2016-02-05 18:16:07.000000000 +0100 ++++ beanshell-2.0b6/build.xml 2019-10-28 14:00:52.279528558 +0100 +@@ -170,7 +170,8 @@ + deprecation="${deprecation}" + optimize="on" + debug="on" +- target="1.5" ++ source="1.6" ++ target="1.6" + includes="**/*.java" + excludes="${excludes},**/bak/**" + > +@@ -213,7 +214,7 @@ + destdir="${javadoc-dir}" + author="true" + version="true" +- source="1.5" ++ source="1.6" + use="true" + windowtitle="BeanShell ${version}" + doctitle="<h1>BeanShell ${version}<h1>" diff --git a/bsh.spec b/bsh.spec index 24e8e1f..c905c93 100644 --- a/bsh.spec +++ b/bsh.spec @@ -47,6 +47,8 @@ Source0: %{name}-2.0-b6.tar.gz # Remove code marked as SUN PROPRIETARY/CONFIDENTAIL Source2: generate-tarball.sh +Patch0: %{name}-source-1.6.patch + BuildRequires: javapackages-local BuildRequires: ant BuildRequires: bsf @@ -102,6 +104,7 @@ This package provides %{summary}. %prep %setup -q -n beanshell-%{upstream_version} +%patch0 -p1 sed -i 's,org.apache.xalan.xslt.extensions.Redirect,http://xml.apache.org/xalan/redirect,' docs/manual/xsl/*.xsl