Fix missing jaxp_transformer_impl symlink after upgrade
This commit is contained in:
parent
12bb1e46d0
commit
a4be4de6b5
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
Name: xalan-j2
|
Name: xalan-j2
|
||||||
Version: 2.7.1
|
Version: 2.7.1
|
||||||
Release: 30%{?dist}
|
Release: 31%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Java XSLT processor
|
Summary: Java XSLT processor
|
||||||
# src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C
|
# 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)
|
(cd build/docs; ln -sf %{_javadocdir}/%{name} apidocs)
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
# update-alternatives will remove the symlink - preserve it
|
||||||
|
mv %{_javadir}/jaxp_transform_impl.jar{,.tmp} || :
|
||||||
# alternatives removed in f26
|
# alternatives removed in f26
|
||||||
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/null || :
|
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/null || :
|
||||||
|
# restore the symlink
|
||||||
|
mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || :
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE.txt NOTICE.txt
|
%license LICENSE.txt NOTICE.txt
|
||||||
@ -211,6 +215,9 @@ update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/
|
|||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Feb 23 2017 Michael Simacek <msimacek@redhat.com> - 0:2.7.1-30
|
||||||
- Install with XMvn
|
- Install with XMvn
|
||||||
- Remove alternatives
|
- Remove alternatives
|
||||||
|
Loading…
Reference in New Issue
Block a user