- touch the alternatives files to avoid build errors

in older versions

OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=56
This commit is contained in:
Duncan Mac-Vicar 2014-09-03 10:48:04 +00:00 committed by Git OBS Bridge
parent fb825b29a6
commit 54bd190c3c
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 3 10:47:16 UTC 2014 - dmacvicar@suse.de
- touch the alternatives files to avoid build errors
in older versions
-------------------------------------------------------------------
Tue Jul 29 11:25:14 UTC 2014 - tchvatal@suse.com

View File

@ -540,9 +540,13 @@ ln -sf %{_sbindir}/d%{name} %{buildroot}/%{bindir}/catalina.sh
# Install update-alternatives content
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/el_api.jar
ln -sf %{_sysconfdir}/alternatives/el_api.jar %{buildroot}%{_javadir}/el_api.jar
touch %{buildroot}%{_sysconfdir}/alternatives/el_1_0_api.jar
ln -sf %{_sysconfdir}/alternatives/el_1_0_api.jar %{buildroot}%{_javadir}/el_1_0_api.jar
touch %{buildroot}%{_sysconfdir}/alternatives/jsp.jar
ln -sf %{_sysconfdir}/alternatives/jsp.jar %{buildroot}%{_javadir}/jsp.jar
touch %{buildroot}%{_sysconfdir}/alternatives/servlet.jar
ln -sf %{_sysconfdir}/alternatives/servlet.jar %{buildroot}%{_javadir}/servlet.jar
%pre