Fix missing jaxp_transformer_impl symlink after upgrade

This commit is contained in:
Michael Simacek 2017-03-08 10:50:11 +01:00
parent 12bb1e46d0
commit a4be4de6b5

View File

@ -32,7 +32,7 @@
Name: xalan-j2
Version: 2.7.1
Release: 30%{?dist}
Release: 31%{?dist}
Epoch: 0
Summary: Java XSLT processor
# src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C
@ -189,8 +189,12 @@ cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
(cd build/docs; ln -sf %{_javadocdir}/%{name} apidocs)
%post
# update-alternatives will remove the symlink - preserve it
mv %{_javadir}/jaxp_transform_impl.jar{,.tmp} || :
# alternatives removed in f26
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/null || :
# restore the symlink
mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || :
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
@ -211,6 +215,9 @@ update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/
%{_datadir}/%{name}
%changelog
* Wed Mar 08 2017 Michael Simacek <msimacek@redhat.com> - 0:2.7.1-31
- Fix missing jaxp_transformer_impl symlink after upgrade
* Thu Feb 23 2017 Michael Simacek <msimacek@redhat.com> - 0:2.7.1-30
- Install with XMvn
- Remove alternatives