diff --git a/Xerces-J-src.2.11.0.tar.gz b/Xerces-J-src.2.11.0.tar.gz
new file mode 100644
index 0000000..826aaa7
--- /dev/null
+++ b/Xerces-J-src.2.11.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f59a5ef7b51bd883f2e9bda37a9360692e6c5e439b98d9b6ac1953e1f98b0680
+size 1792762
diff --git a/Xerces-J-src.2.8.1.tar.bz2 b/Xerces-J-src.2.8.1.tar.bz2
deleted file mode 100644
index 8fb79af..0000000
--- a/Xerces-J-src.2.8.1.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9ed1cb6b3bb65dfbf7a493dec45dba48673d6a7dd2ef28df5e32de6c0ddfefe0
-size 1242079
diff --git a/Xerces-J-tools.2.11.0.tar.gz b/Xerces-J-tools.2.11.0.tar.gz
new file mode 100644
index 0000000..d30d5ee
--- /dev/null
+++ b/Xerces-J-tools.2.11.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff9a5e3a12b4bdad5a9238db03ed5a4709831d3e2c13fe53601163c374ad2051
+size 7079679
diff --git a/Xerces-J-tools.2.8.1.tar.bz2 b/Xerces-J-tools.2.8.1.tar.bz2
deleted file mode 100644
index acda1c3..0000000
--- a/Xerces-J-tools.2.8.1.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:7b492f78042f5bbbc8cb7e0d9e82d7f7c0d1539b529b882310cdfc720839ce42
-size 4065452
diff --git a/java150_build.patch b/java150_build.patch
deleted file mode 100644
index ec2355a..0000000
--- a/java150_build.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-Index: xerces-2_8_1/build.xml
-===================================================================
---- xerces-2_8_1.orig/build.xml
-+++ xerces-2_8_1/build.xml
-@@ -240,6 +240,7 @@ Copyright:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- build.properties
+echo 'javac.source=1.5' >> build.properties
+
+sed -i 's/\r//' LICENSE README NOTICE build.sh
%build
## this uses the ant.jar provided by the xerces packages. Tough luck,
@@ -183,71 +175,71 @@ export JAVA_HOME=%{_libdir}/jvm/java-1.5.0-gcj
export GC_MAXIMUM_HEAP_SIZE="134217728"
export CLASSPATH=$CLASSPATH:`build-classpath antlr-bootstrap`
sh build.sh jars
-
#ant tests test
%install
# jars
-mkdir -p $RPM_BUILD_ROOT%{_javadir}
-cp -p build/xercesImpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
-cp -p build/resolver.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}-xml-resolver.jar
-cp -p build/xml-apis.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}-xml-apis.jar
-(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+mkdir -p %{buildroot}%{_javadir}
+cp -p build/xercesImpl.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
+cp -p build/resolver.jar %{buildroot}%{_javadir}/%{name}-%{version}-xml-resolver.jar
+cp -p build/xml-apis.jar %{buildroot}%{_javadir}/%{name}-%{version}-xml-apis.jar
+(cd %{buildroot}%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# scripts
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-version
-cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-constants
+mkdir -p %{buildroot}%{_bindir}
+cp -p %{SOURCE2} %{buildroot}%{_bindir}/%{name}-version
+cp -p %{SOURCE4} %{buildroot}%{_bindir}/%{name}-constants
+# mans
+install -d -m 755 %{buildroot}%{_mandir}/man1
+install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1
+install -p -m 644 %{SOURCE5} %{buildroot}%{_mandir}/man1
# demo
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
+mkdir -p %{buildroot}%{_datadir}/%{name}
cp -p build/xercesSamples.jar \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar
-cp -pr data $RPM_BUILD_ROOT%{_datadir}/%{name}
+ %{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
+cp -pr data %{buildroot}%{_datadir}/%{name}
# jaxp_parser_impl ghost symlink
ln -s %{_sysconfdir}/alternatives \
- $RPM_BUILD_ROOT%{_javadir}/jaxp_parser_impl.jar
+ %{buildroot}%{_javadir}/jaxp_parser_impl.jar
# xml-apis ghost symlink
ln -s %{_sysconfdir}/alternatives \
- $RPM_BUILD_ROOT%{_javadir}/xml-commons-apis.jar
+ %{buildroot}%{_javadir}/xml-commons-apis.jar
# xml-resolver ghost symlink
ln -s %{_sysconfdir}/alternatives \
- $RPM_BUILD_ROOT%{_javadir}/xml-commons-resolver.jar
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+ %{buildroot}%{_javadir}/xml-commons-resolver.jar
%post
-/usr/sbin/update-alternatives --install %{_javadir}/jaxp_parser_impl.jar jaxp_parser_impl %{_javadir}/%{name}.jar 23
-/usr/sbin/update-alternatives --auto jaxp_parser_impl
+%{_sbindir}/update-alternatives --install %{_javadir}/jaxp_parser_impl.jar jaxp_parser_impl %{_javadir}/%{name}.jar 23
+%{_sbindir}/update-alternatives --auto jaxp_parser_impl
%post xml-apis
-/usr/sbin/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/%{name}-xml-apis.jar 1
-/usr/sbin/update-alternatives --auto xml-commons-apis
+%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/%{name}-xml-apis.jar 1
+%{_sbindir}/update-alternatives --auto xml-commons-apis
%post xml-resolver
-/usr/sbin/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/%{name}-xml-resolver.jar 1
-/usr/sbin/update-alternatives --auto xml-commons-resolver
+%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/%{name}-xml-resolver.jar 1
+%{_sbindir}/update-alternatives --auto xml-commons-resolver
%preun
{
[ $1 = 0 ] || exit 0
- /usr/sbin/update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar
+ %{_sbindir}/update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar
} >/dev/null 2>&1 || :
%preun xml-apis
{
[ $1 = 0 ] || exit 0
- /usr/sbin/update-alternatives --remove xml-commons-apis %{_javadir}/%{name}-xml-apis.jar
+ %{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/%{name}-xml-apis.jar
} >/dev/null 2>&1 || :
%preun xml-resolver
{
[ $1 = 0 ] || exit 0
- /usr/sbin/update-alternatives --remove xml-commons-resolver %{_javadir}/%{name}-xml-commons-resolver.jar
+ %{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/%{name}-xml-commons-resolver.jar
} >/dev/null 2>&1 || :
%files
%defattr(0644,root,root,0755)
-%doc LICENSE README ISSUES STATUS TODO
+%doc LICENSE README
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%ghost %{_javadir}/jaxp_parser_impl.jar
@@ -271,5 +263,6 @@ rm -rf $RPM_BUILD_ROOT
%files scripts
%defattr(0755,root,root,0755)
%{_bindir}/*
+%{_mandir}/man1/*
%changelog