forked from pool/saxon6
- Fix update-alternatives code.
OBS-URL: https://build.opensuse.org/package/show/Java:packages/saxon6?expand=0&rev=15
This commit is contained in:
parent
8d6be4146d
commit
55166060d5
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 11 14:47:21 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Fix update-alternatives code.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 27 11:51:43 UTC 2014 - tchvatal@suse.com
|
Fri Jun 27 11:51:43 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
49
saxon6.spec
49
saxon6.spec
@ -16,9 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define section free
|
|
||||||
%define resolverdir %{_sysconfdir}/java/resolver
|
%define resolverdir %{_sysconfdir}/java/resolver
|
||||||
|
|
||||||
Name: saxon6
|
Name: saxon6
|
||||||
Version: 6.5.5
|
Version: 6.5.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -41,26 +39,19 @@ Patch3: saxon-javac-encoding.patch
|
|||||||
Patch4: saxon-add-fixes-from-com-isl-saxon-aelfred.patch
|
Patch4: saxon-add-fixes-from-com-isl-saxon-aelfred.patch
|
||||||
#PATCH-FIX-OPENSUSE: implements batch mode in which saxon is capable to proceed more files per one JVM launch
|
#PATCH-FIX-OPENSUSE: implements batch mode in which saxon is capable to proceed more files per one JVM launch
|
||||||
Patch5: saxon6-batch.patch
|
Patch5: saxon6-batch.patch
|
||||||
|
BuildRequires: ant
|
||||||
BuildRequires: fop >= 0.20.1
|
BuildRequires: fop >= 0.20.1
|
||||||
|
BuildRequires: java-devel
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: jdom >= 1.0
|
BuildRequires: jdom >= 1.0
|
||||||
BuildRequires: xml-commons-apis
|
|
||||||
%if ! %defined suse_version
|
|
||||||
BuildRequires: fop-javadoc
|
|
||||||
BuildRequires: java-javadoc
|
|
||||||
BuildRequires: jdom-javadoc >= 1.0
|
|
||||||
%else
|
|
||||||
BuildRequires: ant
|
|
||||||
BuildRequires: java-devel
|
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
%endif
|
BuildRequires: xml-commons-apis
|
||||||
Requires: /usr/sbin/update-alternatives
|
Requires: %{_sbindir}/update-alternatives
|
||||||
Requires: jaxp_parser_impl
|
Requires: jaxp_parser_impl
|
||||||
Provides: jaxp_transform_impl = %{name}-%{version}
|
Provides: jaxp_transform_impl = %{name}-%{version}
|
||||||
# bnc#780666
|
|
||||||
Provides: saxon
|
Provides: saxon
|
||||||
BuildArch: noarch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The SAXON package is a collection of tools for processing XML
|
The SAXON package is a collection of tools for processing XML
|
||||||
@ -87,12 +78,9 @@ documents. The main components are:
|
|||||||
So you can use SAXON by writing XSLT stylesheets, by writing Java
|
So you can use SAXON by writing XSLT stylesheets, by writing Java
|
||||||
applications, or by any combination of the two.
|
applications, or by any combination of the two.
|
||||||
|
|
||||||
|
|
||||||
%package aelfred
|
%package aelfred
|
||||||
Summary: Java XML parser
|
Summary: Java XML parser
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
#Provides: jaxp_parser_impl
|
|
||||||
#Requires: /usr/sbin/update-alternatives
|
|
||||||
Requires: xml-commons-apis
|
Requires: xml-commons-apis
|
||||||
Provides: saxon-aelfred
|
Provides: saxon-aelfred
|
||||||
|
|
||||||
@ -100,7 +88,6 @@ Provides: saxon-aelfred
|
|||||||
A slightly improved version of the AElfred Java XML parser from
|
A slightly improved version of the AElfred Java XML parser from
|
||||||
Microstar.
|
Microstar.
|
||||||
|
|
||||||
|
|
||||||
%package manual
|
%package manual
|
||||||
Summary: Manual for %{name}
|
Summary: Manual for %{name}
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
@ -158,9 +145,9 @@ Utility scripts for %{name}.
|
|||||||
unzip -q source.zip
|
unzip -q source.zip
|
||||||
cp -p %{SOURCE2} ./build.xml
|
cp -p %{SOURCE2} ./build.xml
|
||||||
cp -p %{SOURCE4} XmlParser.java
|
cp -p %{SOURCE4} XmlParser.java
|
||||||
%patch2 -p0
|
%patch2
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p0
|
%patch4
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
cp XmlParser.java com/icl/saxon/aelfred/XmlParser.java
|
cp XmlParser.java com/icl/saxon/aelfred/XmlParser.java
|
||||||
# cleanup unnecessary stuff we'll build ourselves
|
# cleanup unnecessary stuff we'll build ourselves
|
||||||
@ -177,7 +164,6 @@ ant \
|
|||||||
-Djdom.javadoc=%{_javadocdir}/jdom
|
-Djdom.javadoc=%{_javadocdir}/jdom
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
cp -p build/lib/saxon.jar %{buildroot}%{_javadir}/%{name}.jar
|
cp -p build/lib/saxon.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
@ -203,36 +189,31 @@ sed 's,__RESOLVERDIR__,%{resolverdir},' < %{SOURCE5} \
|
|||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
sed 's,__RESOLVERDIR__,%{resolverdir},' < %{SOURCE3} \
|
sed 's,__RESOLVERDIR__,%{resolverdir},' < %{SOURCE3} \
|
||||||
> %{buildroot}%{_mandir}/man1/%{name}.1
|
> %{buildroot}%{_mandir}/man1/%{name}.1
|
||||||
# jaxp_transform_impl ghost symlink
|
|
||||||
ln -s %{_sysconfdir}/alternatives \
|
|
||||||
%{buildroot}%{_javadir}/jaxp_transform_impl.jar
|
|
||||||
# jaxp_parser_impl ghost symlink
|
|
||||||
#ln -s %{_sysconfdir}/alternatives \
|
|
||||||
# %{buildroot}%{_javadir}/jaxp_parser_impl.jar
|
|
||||||
|
|
||||||
%clean
|
# jaxp_transform_impl ghost symlink
|
||||||
rm -rf %{buildroot}
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
||||||
|
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
||||||
|
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/jaxp_transform_impl.jar
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
||||||
jaxp_transform_impl %{_javadir}/%{name}.jar 25
|
jaxp_transform_impl %{_javadir}/%{name}.jar 25
|
||||||
|
|
||||||
%preun
|
%postun
|
||||||
{
|
if [ $1 -eq 0 ] ; then
|
||||||
[ $1 -eq 0 ] || exit 0
|
|
||||||
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
|
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
|
||||||
} >/dev/null 2>&1 || :
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%ghost %{_javadir}/jaxp_transform_impl.jar
|
%ghost %{_javadir}/jaxp_transform_impl.jar
|
||||||
|
%ghost %{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
||||||
|
|
||||||
%files aelfred
|
%files aelfred
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%{_javadir}/%{name}-aelfred*
|
%{_javadir}/%{name}-aelfred*
|
||||||
#%ghost %{_javadir}/jaxp_parser_impl.jar
|
|
||||||
|
|
||||||
%files fop
|
%files fop
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
Loading…
Reference in New Issue
Block a user