forked from pool/glassfish-activation
Accepting request 989128 from Java:packages
Try to make the upgrade which removed gnu-jaf as smooth as possible OBS-URL: https://build.opensuse.org/request/show/989128 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glassfish-activation?expand=0&rev=4
This commit is contained in:
commit
644b346fc6
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 13 14:11:54 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Avoid missing symlink %_javadir/jaf.jar, by recreating it when
|
||||
gnu-jaf is uninstalled
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 12 09:28:43 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -106,6 +106,15 @@ install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -r activation/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%triggerpostun api -- gnu-jaf
|
||||
if [ -f %{_javadir}/%{name}-api.jar ] ; then
|
||||
if [ -f %{_javadir}/jaf.jar ] ; then
|
||||
rm -f %{_javadir}/jaf.jar
|
||||
fi
|
||||
ln -sf %{name}-api.jar %{_javadir}/jaf.jar
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
|
Loading…
Reference in New Issue
Block a user