This commit is contained in:
parent
2a1c6a02f6
commit
e4b54d192f
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 13:15:48 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Do not distribute the private xml-apis and xml-resolver
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 15:33:36 UTC 2017 - fstrba@suse.com
|
||||
|
||||
|
@ -117,40 +117,6 @@ Implementation page.
|
||||
|
||||
This package contains additional utility scripts for Xerces2.
|
||||
|
||||
%package xml-resolver
|
||||
Summary: Resolver subproject of xml-commons
|
||||
Group: Development/Libraries/Java
|
||||
Requires(post): update-alternatives
|
||||
Requires(pre): update-alternatives
|
||||
Provides: xml-commons-resolver
|
||||
|
||||
%description xml-resolver
|
||||
xml-commons is focused on common code and guidelines for xml projects.
|
||||
The first focus will be to organize and have common packaging for the
|
||||
various externally-defined standards code relating to XML - things like
|
||||
the DOM, SAX, and JAXP interfaces.
|
||||
|
||||
This package contains the resolver subproject of xml-commons.
|
||||
|
||||
%package xml-apis
|
||||
Summary: APIs subproject of xml-commons
|
||||
Group: Development/Libraries/Java
|
||||
Requires(post): update-alternatives
|
||||
Requires(pre): update-alternatives
|
||||
Provides: xml-commons-apis
|
||||
|
||||
%description xml-apis
|
||||
xml-commons is focused on common code and guidelines for xml projects.
|
||||
Its first focus will be to organize and have common packaging for the
|
||||
various externally-defined standards code relating to XML - things like
|
||||
the DOM, SAX, and JAXP interfaces. As the xml-commons community forms,
|
||||
we also hope to serve as a holding area for other common xml-related
|
||||
utilities and code, and to help promulgate common packaging, testing,
|
||||
documentation, and other guidelines across all xml.apache.org
|
||||
subprojects.
|
||||
|
||||
This package contains the APIs subproject of xml-commons.
|
||||
|
||||
%prep
|
||||
%setup -q -n xerces-%{cvs_version}
|
||||
%setup -q -T -a 1 -D -n xerces-%{cvs_version}
|
||||
@ -179,8 +145,6 @@ sh build.sh jars
|
||||
# jars
|
||||
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 %{buildroot}%{_bindir}
|
||||
@ -199,36 +163,16 @@ cp -pr data %{buildroot}%{_datadir}/%{name}
|
||||
# alternatives
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
||||
ln -sf %{_sysconfdir}/alternatives/jaxp_parser_impl.jar %{buildroot}%{_javadir}/jaxp_parser_impl.jar
|
||||
ln -sf %{_sysconfdir}/alternatives/xml-commons-apis.jar %{buildroot}%{_javadir}/xml-commons-apis.jar
|
||||
ln -sf %{_sysconfdir}/alternatives/xml-commons-resolver.jar %{buildroot}%{_javadir}/xml-commons-resolver.jar
|
||||
|
||||
%post
|
||||
%{_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
|
||||
%{_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
|
||||
%{_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
|
||||
if [ $1 = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar
|
||||
fi
|
||||
|
||||
%preun xml-apis
|
||||
if [ $1 = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/%{name}-xml-apis.jar
|
||||
fi
|
||||
|
||||
%preun xml-resolver
|
||||
if [ $1 = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/%{name}-xml-commons-resolver.jar
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc LICENSE README
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
@ -236,18 +180,6 @@ fi
|
||||
%{_javadir}/jaxp_parser_impl.jar
|
||||
%ghost %{_sysconfdir}/alternatives/jaxp_parser_impl.jar
|
||||
|
||||
%files xml-apis
|
||||
%{_javadir}/%{name}-%{version}-xml-apis.jar
|
||||
%{_javadir}/%{name}-xml-apis.jar
|
||||
%{_javadir}/xml-commons-apis.jar
|
||||
%ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
|
||||
|
||||
%files xml-resolver
|
||||
%{_javadir}/%{name}-%{version}-xml-resolver.jar
|
||||
%{_javadir}/%{name}-xml-resolver.jar
|
||||
%{_javadir}/xml-commons-resolver.jar
|
||||
%ghost %{_sysconfdir}/alternatives/xml-commons-resolver.jar
|
||||
|
||||
%files demo
|
||||
%{_datadir}/%{name}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user