Add workaround for symlink->directory rpm bug

This commit is contained in:
Michael Simacek 2016-03-23 08:32:19 +01:00
parent 9473de659c
commit d7102c2bf6

View File

@ -3,7 +3,7 @@
Name: apache-%{short_name} Name: apache-%{short_name}
Version: 3.2.2 Version: 3.2.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: Provides new interfaces, implementations and utilities for Java Collections Summary: Provides new interfaces, implementations and utilities for Java Collections
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/%{base_name}/ URL: http://commons.apache.org/%{base_name}/
@ -73,6 +73,12 @@ ant tf.javadoc -Dtf.build.docs=target/site/apidocs/
%install %install
%mvn_install %mvn_install
# Workaround for RPM bug #646523 - can't change symlink to directory
%pretrans javadoc -p <lua>
dir = "%{_javadocdir}/%{name}"
dummy = posix.readlink(dir) and os.remove(dir)
%files -f .mfiles %files -f .mfiles
%doc PROPOSAL.html README.txt LICENSE.txt NOTICE.txt %doc PROPOSAL.html README.txt LICENSE.txt NOTICE.txt
@ -83,6 +89,9 @@ ant tf.javadoc -Dtf.build.docs=target/site/apidocs/
%changelog %changelog
* Wed Mar 23 2016 Michael Simacek <msimacek@redhat.com> - 3.2.2-3
- Add workaround for symlink->directory rpm bug
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild