Added hack for maven depmap of tomcat-juli absolute link [ -f ] pass correctly
This commit is contained in:
parent
a7d085a852
commit
56bee3dd5e
13
tomcat.spec
13
tomcat.spec
@ -54,7 +54,7 @@
|
|||||||
Name: tomcat
|
Name: tomcat
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Version: %{major_version}.%{minor_version}.%{micro_version}
|
Version: %{major_version}.%{minor_version}.%{micro_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -409,8 +409,8 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
|
|||||||
%{__ln_s} $(build-classpath log4j) log4j.jar
|
%{__ln_s} $(build-classpath log4j) log4j.jar
|
||||||
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
||||||
|
|
||||||
# Link the juli jar here from /usr/share/java/tomcat
|
# Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
|
||||||
%{__ln_s} %{bindir}/tomcat-juli.jar .
|
%{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# symlink to the FHS locations where we've installed things
|
# symlink to the FHS locations where we've installed things
|
||||||
@ -464,6 +464,10 @@ done
|
|||||||
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
||||||
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
|
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
|
||||||
|
|
||||||
|
# replace temporary copy with link
|
||||||
|
%{__ln_s} -f %{bindir}/tomcat-juli.jar ${RPM_BUILD_ROOT}%{libdir}/
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# add the tomcat user and group
|
# add the tomcat user and group
|
||||||
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
|
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
|
||||||
@ -644,6 +648,9 @@ fi
|
|||||||
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
|
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-2
|
||||||
|
- Added hack for maven depmap of tomcat-juli absolute link [ -f ] pass correctly
|
||||||
|
|
||||||
* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
|
* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
|
||||||
- Updated to 7.0.25
|
- Updated to 7.0.25
|
||||||
- Removed EntityResolver patch (changes already in upstream sources)
|
- Removed EntityResolver patch (changes already in upstream sources)
|
||||||
|
Loading…
Reference in New Issue
Block a user