[Bug 1247243] Review Request: mod_cluster - httpd modules and Tomcat/ WildFly java libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1247243



--- Comment #14 from gil cattaneo <puntogil@xxxxxxxxx> ---
this had not yet seen

%post java-tomcat8
if [ "$1" == "1" ]; then
    %{__ln_s} %{libdir}/mod_cluster-container-catalina.jar
%{_javadir}/tomcat/mod_cluster-container-catalina.jar
    %{__ln_s} %{libdir}/mod_cluster-container-catalina-standalone.jar
%{_javadir}/tomcat/mod_cluster-container-catalina-standalone.jar
    %{__ln_s} %{libdir}/mod_cluster-container-spi.jar
%{_javadir}/tomcat/mod_cluster-container-spi.jar
    %{__ln_s} %{libdir}/mod_cluster-core.jar
%{_javadir}/tomcat/mod_cluster-core.jar
    %{__ln_s} %{_javadir}/jboss-logging/jboss-logging.jar
%{_javadir}/tomcat/jboss-logging.jar
    %{__ln_s} %{libdir}/mod_cluster-container-tomcat8.jar
%{_javadir}/tomcat/mod_cluster-container-tomcat8.jar
fi


#%postun  java-tomcat7
#if [ "$1" == "0" ]; then
#    rm -f %{_javadir}/tomcat/mod_cluster-container-catalina.jar
#    rm -f %{_javadir}/tomcat/mod_cluster-container-catalina-standalone.jar
#    rm -f %{_javadir}/tomcat/mod_cluster-container-spi.jar
#    rm -f %{_javadir}/tomcat/mod_cluster-core.jar
#    rm -f %{_javadir}/tomcat/jboss-logging.jar
#    rm -f %{_javadir}/tomcat/mod_cluster-container-tomcat7.jar
#fi
%postun java-tomcat8
if [ "$1" == "0" ]; then
    rm -f %{_javadir}/tomcat/mod_cluster-container-catalina.jar
    rm -f %{_javadir}/tomcat/mod_cluster-container-catalina-standalone.jar
    rm -f %{_javadir}/tomcat/mod_cluster-container-spi.jar
    rm -f %{_javadir}/tomcat/mod_cluster-core.jar
    rm -f %{_javadir}/tomcat/jboss-logging.jar
    rm -f %{_javadir}/tomcat/mod_cluster-container-tomcat8.jar
fi
%endif

i do not know what good and i do not know
but this work is really useless ...
you could be simplified using the macro %mvn_file groupId:artifactId [SUBDIR]
e.g. %mvn_file :mod_cluster-container-catalina
%{name}/mod_cluster-container-catalina tomcat/mod_cluster-container-catalina

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]