- mark all files related to update-alternatives as ghost
- reformat header of spec a bit OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=11
This commit is contained in:
parent
58cb9e7b3b
commit
7d5e48a996
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 07:47:48 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- mark all files related to update-alternatives as ghost
|
||||
- reformat header of spec a bit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 23 11:55:26 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
|
@ -17,21 +17,9 @@
|
||||
# icecream 0
|
||||
|
||||
|
||||
Name: xalan-j2
|
||||
BuildRequires: ant
|
||||
BuildRequires: bcel
|
||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||
BuildRequires: jlex
|
||||
BuildRequires: servletapi5
|
||||
BuildRequires: xml-commons-apis-bootstrap
|
||||
#BuildRequires: xerces-j2-bootstrap
|
||||
#!BuildIgnore: xerces-j2-boostrap
|
||||
BuildRequires: java-cup-bootstrap
|
||||
#!BuildIgnore: xerces-j2 xml-commons xml-commons-resolver xml-commons-apis java-cup java_cup
|
||||
#!BuildIgnore: xml-commons-jaxp-1.3-apis
|
||||
%define section free
|
||||
%define version 2.7.0
|
||||
%define cvs_version 2_7_0
|
||||
|
||||
Name: xalan-j2
|
||||
Version: 2.7.0
|
||||
Release: 0
|
||||
Summary: Java XSLT processor
|
||||
@ -46,8 +34,22 @@ Url: http://xml.apache.org/xalan-j/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Provides: jaxp_transform_impl
|
||||
|
||||
Requires: jaxp_parser_impl
|
||||
PreReq: /usr/sbin/update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: bcel
|
||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||
BuildRequires: jlex
|
||||
BuildRequires: servletapi5
|
||||
BuildRequires: xml-commons-apis-bootstrap
|
||||
#BuildRequires: xerces-j2-bootstrap
|
||||
#!BuildIgnore: xerces-j2-boostrap
|
||||
BuildRequires: java-cup-bootstrap
|
||||
#!BuildIgnore: xerces-j2 xml-commons xml-commons-resolver xml-commons-apis java-cup java_cup
|
||||
#!BuildIgnore: xml-commons-jaxp-1.3-apis
|
||||
|
||||
%description
|
||||
Xalan is an XSLT processor for transforming XML documents into HTML,
|
||||
@ -89,7 +91,7 @@ a servlet, or as a module in other program.
|
||||
This package contains the manual for Xalan.
|
||||
|
||||
%package demo
|
||||
Summary: Demonstration and samples for xalan-j2.
|
||||
Summary: Demonstration and samples for xalan-j2
|
||||
Group: Development/Libraries/Java
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: servlet
|
||||
@ -155,30 +157,31 @@ ant \
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -p -m 644 build/xalan-interpretive.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
install -p -m 644 build/xsltc.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/xsltc-%{version}.jar
|
||||
%{buildroot}%{_javadir}/xsltc-%{version}.jar
|
||||
install -p -m 644 build/serializer.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-serializer-%{version}.jar
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
%{buildroot}%{_javadir}/%{name}-serializer-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
# demo
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
||||
install -p -m 644 build/xalansamples.jar \
|
||||
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar
|
||||
%{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
|
||||
install -p -m 644 build/xalanservlet.war \
|
||||
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-servlet.war
|
||||
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
# jaxp_transform_impl ghost symlink
|
||||
ln -s %{_sysconfdir}/alternatives \
|
||||
$RPM_BUILD_ROOT%{_javadir}/jaxp_transform_impl.jar
|
||||
# bnc#485299
|
||||
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/
|
||||
echo xalan-j2-serializer > $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/serializer
|
||||
%{buildroot}%{_datadir}/%{name}/%{name}-servlet.war
|
||||
cp -pr samples %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
# alternatives
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
touch %{buildroot}/%{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
||||
ln -sf %{_sysconfdir}/alternatives/jaxp_transform_impl.jar \
|
||||
%{buildroot}%{_javadir}/jaxp_transform_impl.jar
|
||||
|
||||
# bnc#485299
|
||||
install -d -m 0755 %{buildroot}/%{_sysconfdir}/ant.d/
|
||||
echo xalan-j2-serializer > %{buildroot}/%{_sysconfdir}/ant.d/serializer
|
||||
|
||||
%post
|
||||
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
||||
@ -205,14 +208,14 @@ update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{name}-serializer-%{version}.jar
|
||||
%{_javadir}/%{name}-serializer.jar
|
||||
%ghost %{_javadir}/jaxp_transform_impl.jar
|
||||
%{_sysconfdir}/ant.d/
|
||||
%ghost %{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
||||
%ghost %{_javadir}/jaxp_transform_impl.jar
|
||||
|
||||
%files xsltc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadir}/xsltc-%{version}.jar
|
||||
%{_javadir}/xsltc.jar
|
||||
#%ghost %{_javadir}/jaxp_transform_impl.jar
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
|
Loading…
x
Reference in New Issue
Block a user