%define cobprofdir %{_localstatedir}/lib/rhn/kickstarts %define cobprofdirup %{_localstatedir}/lib/rhn/kickstarts/upload %define cobprofdirwiz %{_localstatedir}/lib/rhn/kickstarts/wizard %define cobdirsnippets %{_localstatedir}/lib/rhn/kickstarts/snippets %define realcobsnippetsdir %{_localstatedir}/lib/cobbler/snippets %if 0%{?fedora} || 0%{?rhel} >= 7 %define appdir %{_localstatedir}/lib/tomcat/webapps %define jardir %{_localstatedir}/lib/tomcat/webapps/rhn/WEB-INF/lib %else %define appdir %{_localstatedir}/lib/tomcat6/webapps %define jardir %{_localstatedir}/lib/tomcat6/webapps/rhn/WEB-INF/lib %endif %if 0%{?rhel} || 0%{?fedora} %define run_checkstyle 1 %endif Name: spacewalk-java Summary: Java web application files for Spacewalk Group: Applications/Internet License: GPLv2 Version: 2.7.116 Release: 1.git.6.5e61c4a%{?dist} URL: https://github.com/spacewalkproject/spacewalk Source0: spacewalk-java-git-6.5e61c4a.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch ExcludeArch: ia64 Requires: apache-commons-fileupload Requires: bcel Requires: c3p0 >= 0.9.1 Requires: cglib Requires: cobbler20 Requires: dojo Requires: dwr >= 3 Requires: hibernate3 >= 3.6.10 Requires: hibernate3-c3p0 >= 3.6.10 Requires: hibernate3-ehcache >= 3.6.10 Requires: java-headless >= 1:1.8.0 Requires: javamail Requires: jcommon Requires: jdom Requires: jpam Requires: jta Requires: log4j Requires: redstone-xmlrpc Requires: simple-core Requires: simple-xml Requires: sitemesh Requires: spacewalk-branding Requires: spacewalk-java-config Requires: spacewalk-java-jdbc Requires: spacewalk-java-lib Requires: stringtree-json Requires: struts >= 0:1.3.0 Requires: susestudio-java-client Requires: tomcat-taglibs-standard Requires: xalan-j2 >= 0:2.6.0 Requires: xerces-j2 %if 0%{?fedora} || 0%{?rhel} >= 7 Requires: apache-commons-cli Requires: apache-commons-codec Requires: apache-commons-discovery Requires: apache-commons-el Requires: apache-commons-io Requires: apache-commons-lang Requires: apache-commons-logging Requires: javapackages-tools Requires: javassist Requires: mvn(org.slf4j:slf4j-log4j12) Requires: servlet >= 3.0 Requires: tomcat >= 7 Requires: tomcat-lib >= 7 # obsolete old jpackage rpms to make smooth upgrade Obsoletes: asm <= 1.5.3 Obsoletes: classpathx-jaf <= 1.1.1 Obsoletes: classpathx-mail <= 1.1.2 Obsoletes: excalibur <= 1:1.0 Obsoletes: excalibur-avalon-framework-api <= 1:4.3.1 Obsoletes: excalibur-avalon-framework-impl <= 1:4.3.1 Obsoletes: excalibur-avalon-logkit <= 1:2.2.1 Obsoletes: geronimo-jaf-1.1-api <= 1.2 Obsoletes: geronimo-jms-1.1-api <= 1.2 Obsoletes: geronimo-jsp-2.1-api <= 1.2 Obsoletes: geronimo-servlet-2.5-api <= 1.2 Obsoletes: geronimo-specs-poms <= 1.2 Obsoletes: glassfish-jaf <= 1.1.0 Obsoletes: glassfish-javamail <= 1.4.0 Obsoletes: jakarta-commons-el <= 1.0 Obsoletes: jakarta-commons-collections <= 3.1 Obsoletes: jython <= 2.2 Obsoletes: oscache <= 2.4.1 Obsoletes: saxpath <= 1.0 Obsoletes: servletapi4 <= 4.0.4 Obsoletes: sitemesh <= 2.4.1 Obsoletes: spacewalk-jpp-workaround <= 2.3.5 Obsoletes: tomcat5-jsp-2.0-api <= 5.5.27 Obsoletes: tomcat5-servlet-2.4-api <= 5.5.27 Obsoletes: tomcat6-servlet-2.5-api <= 6.0.18 Obsoletes: tomcat6-el-1.0-api <= 6.0.18 Obsoletes: velocity-dvsl <= 1.0 BuildRequires: apache-commons-codec BuildRequires: apache-commons-discovery BuildRequires: apache-commons-el BuildRequires: apache-commons-io BuildRequires: apache-commons-logging # spelling checker is only for Fedoras (no aspell in RHEL6) BuildRequires: aspell aspell-en libxslt BuildRequires: ehcache-core BuildRequires: javassist BuildRequires: javapackages-tools BuildRequires: mvn(ant-contrib:ant-contrib) BuildRequires: mvn(org.slf4j:slf4j-log4j12) BuildRequires: tomcat >= 7 BuildRequires: tomcat-lib >= 7 %else Requires: jakarta-commons-beanutils >= 1.9 Requires: jakarta-commons-cli Requires: jakarta-commons-cli-mvn Requires: jakarta-commons-codec Requires: jakarta-commons-discovery Requires: jakarta-commons-el Requires: jakarta-commons-io Requires: jakarta-commons-lang Requires: jakarta-commons-logging < 1.1 Requires: java-1.8.0-openjdk-devel Requires: jpackage-utils Requires: tomcat6 Requires: tomcat6-lib Requires: tomcat6-servlet-2.5-api BuildRequires: ant-contrib BuildRequires: ant-nodeps BuildRequires: jakarta-commons-codec BuildRequires: jakarta-commons-discovery BuildRequires: jakarta-commons-el BuildRequires: jakarta-commons-io BuildRequires: jakarta-commons-logging BuildRequires: jpackage-utils BuildRequires: tomcat6 BuildRequires: tomcat6-lib # obsolete old jpackage rpms to make smooth upgrade Obsoletes: apache-portlet-1.0-api <= 1.0 Obsoletes: asm <= 1.5.3 Obsoletes: asm2 <= 2.2.3 Obsoletes: classpathx-mail <= 1.1.2 Obsoletes: easymock <= 1.2 Obsoletes: easymock-classextension <= 1.2 Obsoletes: excalibur <= 1:1.0 Obsoletes: excalibur-avalon-framework-api <= 1:4.3.1 Obsoletes: excalibur-avalon-framework-impl <= 1:4.3.1 Obsoletes: excalibur-avalon-logkit <= 1:2.2.1 Obsoletes: freemarker <= 2.3.15 Obsoletes: geronimo-ejb-2.1-api <= 1.2 Obsoletes: geronimo-j2ee-1.4-apis <= 1.2 Obsoletes: geronimo-jta-1.1-api <= 1.2 Obsoletes: geronimo-specs-poms <= 1.2 Obsoletes: geronimo-stax-1.0-api <= 1.2 Obsoletes: glassfish-jaf <= 1.1.0 Obsoletes: glassfish-jaxb <= 2.1.4 Obsoletes: gnu-regexp <= 1.1.4 Obsoletes: groovy15 <= 1.5.6 Obsoletes: hivemind <= 1.1.1 Obsoletes: hivemind-lib <= 1.1.1 Obsoletes: isorelax <= 0.1 Obsoletes: jakarta-commons-chain <= 1.2 Obsoletes: jakarta-commons-discovery <= 0.4 Obsoletes: jakarta-commons-fileupload <= 1:1.2.1 Obsoletes: jakarta-commons-transaction <= 1.1 Obsoletes: jakarta-commons-validator <= 1.3.1 Obsoletes: jakarta-slide-webdavclient <= 2.1 Obsoletes: jarjar <= 0.9 Obsoletes: java-cup <= 0.11 Obsoletes: jaxen <= 1.1 Obsoletes: jcommon <= 1.0.12 Obsoletes: jettison <= 1.0.1 Obsoletes: jetty5 <= 5.1.14 Obsoletes: joda-time <= 1.5.2 Obsoletes: mockobjects <= 0.09 Obsoletes: msv-xsdlib <= 1.2 Obsoletes: myfaces-core11-api <= 1.1.5 Obsoletes: ognl <= 2.6.9 Obsoletes: oscache <= 2.4.1 Obsoletes: portals-pluto10-portlet-1.0-api <= 1.0.1 Obsoletes: relaxngDatatype <= 1.0 Obsoletes: saxpath <= 1.0 Obsoletes: servletapi4 <= 4.0.4 Obsoletes: spacewalk-jpp-workaround <= 2.3.5 Obsoletes: spacewalk-slf4j <= 1.6.1 Obsoletes: spring <= 1.2.9 Obsoletes: spring-all <= 1.2.9 Obsoletes: struts-taglib <= 1.3.8 Obsoletes: struts-tiles <= 1.3.8 Obsoletes: tapestry <= 4.0.2 Obsoletes: tomcat5-jasper <= 5.5.27 Obsoletes: tomcat5-jsp-2.0-api <= 5.5.27 Obsoletes: tomcat5-servlet-2.4-api <= 5.5.27 Obsoletes: velocity-dvsl <= 1.0 Obsoletes: ws-jaxme <= 0.5.1 Obsoletes: wstx <= 3.1.1 Obsoletes: xml-commons-jaxp-1.2-apis <= 1.3.04 Obsoletes: xml-im-exporter <= 1.1 Obsoletes: xom <= 1.2.1 Obsoletes: xpp2 <= 2.1.10 Obsoletes: xstream <= 1.3.1 %endif BuildRequires: /usr/bin/perl BuildRequires: /usr/bin/xmllint BuildRequires: ant BuildRequires: ant-apache-regexp BuildRequires: ant-junit BuildRequires: antlr >= 0:2.7.6 BuildRequires: apache-commons-cli BuildRequires: apache-commons-collections BuildRequires: apache-commons-fileupload BuildRequires: apache-commons-validator BuildRequires: bcel BuildRequires: c3p0 >= 0.9.1 BuildRequires: cglib BuildRequires: concurrent BuildRequires: dom4j BuildRequires: dwr >= 3 BuildRequires: hibernate3 >= 0:3.6.10 BuildRequires: hibernate3-c3p0 >= 3.6.10 BuildRequires: hibernate3-ehcache >= 3.6.10 BuildRequires: java-1.8.0-openjdk-devel BuildRequires: javamail BuildRequires: jcommon BuildRequires: jdom BuildRequires: jpam BuildRequires: jta BuildRequires: postgresql-jdbc BuildRequires: quartz < 2.0 BuildRequires: redstone-xmlrpc BuildRequires: simple-core BuildRequires: simple-xml BuildRequires: sitemesh BuildRequires: stringtree-json BuildRequires: struts >= 0:1.3.0 BuildRequires: susestudio-java-client BuildRequires: tanukiwrapper BuildRequires: tomcat-taglibs-standard %if 0%{?run_checkstyle} BuildRequires: checkstyle %if 0%{?fedora} || 0%{?rhel} >= 7 BuildRequires: apache-commons-beanutils >= 1.9 %else BuildRequires: jakarta-commons-beanutils >= 1.9 %endif BuildRequires: apache-commons-cli >= 1.3 BuildRequires: apache-commons-lang3 >= 3.4 %endif %if ! 0%{?omit_tests} > 0 BuildRequires: translate-toolkit %endif Obsoletes: rhn-java < 5.3.0 Obsoletes: rhn-java-sat < 5.3.0 Obsoletes: rhn-oracle-jdbc-tomcat5 <= 1.0 Provides: rhn-java = %{version}-%{release} Provides: rhn-java-sat = %{version}-%{release} Provides: rhn-oracle-jdbc-tomcat5 = %{version}-%{release} %description This package contains the code for the Java version of the Spacewalk Web Site. %package config Summary: Configuration files for Spacewalk Java Group: Applications/Internet Obsoletes: rhn-java-config < 5.3.0 Obsoletes: rhn-java-config-sat < 5.3.0 Provides: rhn-java-config = %{version}-%{release} Provides: rhn-java-config-sat = %{version}-%{release} %description config This package contains the configuration files for the Spacewalk Java web application and taskomatic process. %package lib Summary: Jar files for Spacewalk Java Group: Applications/Internet Obsoletes: rhn-java-lib < 5.3.0 Obsoletes: rhn-java-lib-sat < 5.3.0 Provides: rhn-java-lib = %{version}-%{release} Provides: rhn-java-lib-sat = %{version}-%{release} Requires: /usr/bin/sudo %description lib This package contains the jar files for the Spacewalk Java web application and taskomatic process. %package oracle Summary: Oracle database backend support files for Spacewalk Java Group: Applications/Internet Requires: ojdbc14 %if 0%{?fedora} || 0%{?rhel} >= 7 Requires: tomcat >= 7 %else Requires: tomcat6 %endif Provides: spacewalk-java-jdbc = %{version}-%{release} %description oracle This package contains Oracle database backend files for the Spacewalk Java. %package postgresql Summary: PostgreSQL database backend support files for Spacewalk Java Group: Applications/Internet Requires: postgresql-jdbc %if 0%{?fedora} || 0%{?rhel} >=7 Requires: tomcat >= 7 %else Requires: tomcat6 %endif Provides: spacewalk-java-jdbc = %{version}-%{release} %description postgresql This package contains PostgreSQL database backend files for the Spacewalk Java. %if ! 0%{?omit_tests} > 0 %package tests Summary: Test Classes for testing spacewalk-java Group: Applications/Internet BuildRequires: jmock > 2.6 BuildRequires: mvn(org.jmock:jmock-junit3) > 2.6 BuildRequires: mvn(org.jmock:jmock-legacy) > 2.6 Requires: jmock > 2.6 Requires: mvn(org.jmock:jmock-junit3) > 2.6 Requires: mvn(org.jmock:jmock-legacy) > 2.6 Requires: ant-junit %description tests This package contains testing files of spacewalk-java. %files tests %defattr(644,root,root,775) %{_datadir}/rhn/lib/rhn-test.jar %{_datadir}/rhn/unit-tests/* %{_datadir}/rhn/unittest.xml %attr(644, tomcat, tomcat) %{jardir}/commons-lang3.jar %attr(644, tomcat, tomcat) %{jardir}/mockobjects*.jar %attr(644, tomcat, tomcat) %{jardir}/strutstest*.jar %endif %package -n spacewalk-taskomatic Summary: Java version of taskomatic Group: Applications/Internet Requires: bcel Requires: c3p0 >= 0.9.1 Requires: cglib Requires: cobbler20 Requires: concurrent >= 1.3.4-21 Requires: hibernate3 >= 3.6.10 Requires: hibernate3-c3p0 >= 3.6.10 Requires: hibernate3-ehcache >= 3.6.10 Requires: java-headless >= 1:1.8.0 Requires: jcommon Requires: jpam Requires: log4j Requires: quartz < 2.0 Requires: simple-core Requires: spacewalk-java-config Requires: spacewalk-java-jdbc Requires: spacewalk-java-lib Requires: tanukiwrapper Requires: tomcat-taglibs-standard Requires: xalan-j2 >= 0:2.6.0 Requires: xerces-j2 %if 0%{?fedora} || 0%{?rhel} >= 7 Requires: apache-commons-cli Requires: apache-commons-codec Requires: apache-commons-dbcp Requires: apache-commons-lang Requires: apache-commons-logging Requires: javassist %else Requires: jakarta-commons-cli Requires: jakarta-commons-codec Requires: jakarta-commons-dbcp Requires: jakarta-commons-lang Requires: jakarta-commons-logging %endif Conflicts: quartz >= 2.0 Obsoletes: taskomatic < 5.3.0 Obsoletes: taskomatic-sat < 5.3.0 Provides: taskomatic = %{version}-%{release} Provides: taskomatic-sat = %{version}-%{release} Requires(post): chkconfig Requires(preun): chkconfig # This is for /sbin/service Requires(preun): initscripts %description -n spacewalk-taskomatic This package contains the Java version of taskomatic. %prep %setup -q -n spacewalk-java-git-6.5e61c4a # missing tomcat juli JAR (needed for JSP precompilation) - bug 661244 if test -d /usr/share/tomcat6; then mkdir -p build/build-lib if test ! -h /usr/share/java/tomcat6/tomcat-juli.jar; then ln -s /usr/share/tomcat6/bin/tomcat-juli.jar \ build/build-lib/tomcat-juli.jar else ln -s /usr/share/java/tomcat6/tomcat-juli.jar \ build/build-lib/tomcat-juli.jar fi fi %if 0%{?fedora} %define skip_xliff 1 %endif %if ! 0%{?omit_tests} > 0 && ! 0%{?skip_xliff} find . -name 'StringResource_*.xml' | while read i ; do echo $i # check for common localizations issues ln -s $(basename $i) $i.xliff CONTENT=$(pofilter --progress=none --nofuzzy --gnome \ --excludefilter=untranslated \ --excludefilter=purepunc \ $i.xliff 2>&1) if [ -n "$CONTENT" ]; then echo ERROR - pofilter errors: "$CONTENT" exit 1 fi rm -f $i.xliff #check duplicate message keys in StringResource_*.xml files CONTENT=$(/usr/bin/xmllint --format "$i" | /usr/bin/perl -lne 'if (/= 7 ant -Dprefix=$RPM_BUILD_ROOT install-tomcat install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/tomcat/Catalina/localhost/ # Need to use 2 versions of rhn.xml, Tomcat 8 changed syntax %if 0%{?fedora} >= 23 install -m 644 conf/rhn-tomcat8.xml $RPM_BUILD_ROOT%{_sysconfdir}/tomcat/Catalina/localhost/rhn.xml %else install -m 644 conf/rhn-tomcat5.xml $RPM_BUILD_ROOT%{_sysconfdir}/tomcat/Catalina/localhost/rhn.xml %endif %else ant -Dprefix=$RPM_BUILD_ROOT install-tomcat6 install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/tomcat6/Catalina/localhost/ install -m 644 conf/rhn-tomcat5.xml $RPM_BUILD_ROOT%{_sysconfdir}/tomcat6/Catalina/localhost/rhn.xml %endif # check spelling errors in all resources for English if aspell installed [ -x "$(which aspell)" ] && scripts/spelling/check_java.sh .. en_US %if 0%{?fedora} || 0%{?rhel} >= 7 install -d -m 755 $RPM_BUILD_ROOT%{_sbindir} install -d -m 755 $RPM_BUILD_ROOT%{_unitdir} %else install -d -m 755 $RPM_BUILD_ROOT%{_initrddir} %endif install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/rhn install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/unit-tests install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/lib install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/classes install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/config-defaults install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/search install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/rhn/search/lib install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/spacewalk/taskomatic install -d -m 755 $RPM_BUILD_ROOT%{cobprofdir} install -d -m 755 $RPM_BUILD_ROOT%{cobprofdirup} install -d -m 755 $RPM_BUILD_ROOT%{cobprofdirwiz} install -d -m 755 $RPM_BUILD_ROOT%{cobdirsnippets} install -d -m 755 $RPM_BUILD_ROOT%{_var}/spacewalk/systemlogs install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d echo "hibernate.cache.region.factory_class=net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory" >> conf/default/rhn_hibernate.conf install -m 644 conf/default/rhn_hibernate.conf $RPM_BUILD_ROOT%{_prefix}/share/rhn/config-defaults/rhn_hibernate.conf install -m 644 conf/default/rhn_taskomatic_daemon.conf $RPM_BUILD_ROOT%{_prefix}/share/rhn/config-defaults/rhn_taskomatic_daemon.conf install -m 644 conf/default/rhn_org_quartz.conf $RPM_BUILD_ROOT%{_prefix}/share/rhn/config-defaults/rhn_org_quartz.conf install -m 644 conf/rhn_java.conf $RPM_BUILD_ROOT%{_prefix}/share/rhn/config-defaults install -m 644 conf/logrotate/rhn_web_api $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/rhn_web_api %if 0%{?fedora} || 0%{?rhel} >= 7 # LOGROTATE >= 3.8 requires extra permission config sed -i 's/#LOGROTATE-3.8#//' $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/rhn_web_api install -m 755 scripts/taskomatic $RPM_BUILD_ROOT%{_sbindir} install -m 644 scripts/taskomatic.service $RPM_BUILD_ROOT%{_unitdir} %else install -m 755 scripts/taskomatic $RPM_BUILD_ROOT%{_initrddir} %endif install -m 644 scripts/unittest.xml $RPM_BUILD_ROOT/%{_datadir}/rhn/ install -m 644 build/webapp/rhnjava/WEB-INF/lib/rhn.jar $RPM_BUILD_ROOT%{_datadir}/rhn/lib %if ! 0%{?omit_tests} > 0 install -m 644 build/webapp/rhnjava/WEB-INF/lib/rhn-test.jar $RPM_BUILD_ROOT%{_datadir}/rhn/lib cp -a build/classes/com/redhat/rhn/common/conf/test/conf $RPM_BUILD_ROOT%{_datadir}/rhn/unit-tests/ %endif install -m 644 conf/log4j.properties.taskomatic $RPM_BUILD_ROOT%{_datadir}/rhn/classes/log4j.properties install -m 644 conf/cobbler/snippets/default_motd $RPM_BUILD_ROOT%{cobdirsnippets}/default_motd install -m 644 conf/cobbler/snippets/keep_system_id $RPM_BUILD_ROOT%{cobdirsnippets}/keep_system_id install -m 644 conf/cobbler/snippets/post_reactivation_key $RPM_BUILD_ROOT%{cobdirsnippets}/post_reactivation_key install -m 644 conf/cobbler/snippets/post_delete_system $RPM_BUILD_ROOT%{cobdirsnippets}/post_delete_system install -m 644 conf/cobbler/snippets/redhat_register $RPM_BUILD_ROOT%{cobdirsnippets}/redhat_register ln -s -f /usr/sbin/tanukiwrapper $RPM_BUILD_ROOT%{_bindir}/taskomaticd ln -s -f %{_javadir}/ojdbc14.jar $RPM_BUILD_ROOT%{jardir}/ojdbc14.jar ln -s -f %{_javadir}/dwr.jar $RPM_BUILD_ROOT%{jardir}/dwr.jar install -d -m 755 $RPM_BUILD_ROOT%{realcobsnippetsdir} ln -s -f %{cobdirsnippets} $RPM_BUILD_ROOT%{realcobsnippetsdir}/spacewalk touch $RPM_BUILD_ROOT%{_var}/spacewalk/systemlogs/audit-review.log # special links for taskomatic TASKOMATIC_BUILD_DIR=%{_prefix}/share/spacewalk/taskomatic ln -s -f %{_javadir}/ojdbc14.jar $RPM_BUILD_ROOT$TASKOMATIC_BUILD_DIR/ojdbc14.jar ln -s -f %{_javadir}/quartz-oracle.jar $RPM_BUILD_ROOT$TASKOMATIC_BUILD_DIR/quartz-oracle.jar rm -f $RPM_BUILD_ROOT$TASKOMATIC_BUILD_DIR/slf4j*nop.jar rm -f $RPM_BUILD_ROOT$TASKOMATIC_BUILD_DIR/slf4j*simple.jar # special links for rhn-search RHN_SEARCH_BUILD_DIR=%{_prefix}/share/rhn/search/lib ln -s -f %{_javadir}/ojdbc14.jar $RPM_BUILD_ROOT$RHN_SEARCH_BUILD_DIR/ojdbc14.jar ln -s -f %{_javadir}/postgresql-jdbc.jar $RPM_BUILD_ROOT$RHN_SEARCH_BUILD_DIR/postgresql-jdbc.jar # delete JARs which must not be deployed rm -rf $RPM_BUILD_ROOT%{jardir}/jspapi.jar rm -rf $RPM_BUILD_ROOT%{jardir}/jasper5-compiler.jar rm -rf $RPM_BUILD_ROOT%{jardir}/jasper5-runtime.jar rm -rf $RPM_BUILD_ROOT%{jardir}/tomcat*api.jar rm -rf $RPM_BUILD_ROOT%{jardir}/tomcat[_a-z6]*.jar %if 0%{?omit_tests} > 0 rm -rf $RPM_BUILD_ROOT%{_datadir}/rhn/lib/rhn-test.jar rm -rf $RPM_BUILD_ROOT/classes/com/redhat/rhn/common/conf/test/conf rm -rf $RPM_BUILD_ROOT%{_datadir}/rhn/unittest.xml rm -rf $RPM_BUILD_ROOT%{jardir}/mockobjects*.jar rm -rf $RPM_BUILD_ROOT%{jardir}/strutstest*.jar %endif # show all JAR symlinks echo "#### SYMLINKS START ####" find $RPM_BUILD_ROOT%{jardir} -name *.jar echo "#### SYMLINKS END ####" %clean rm -rf $RPM_BUILD_ROOT %pre rm -f %{realcobsnippetsdir}/spacewalk %post -n spacewalk-taskomatic if [ -f /etc/init.d/taskomatic ]; then # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add taskomatic fi %preun -n spacewalk-taskomatic if [ $1 = 0 ] ; then if [ -f /etc/init.d/taskomatic ]; then /sbin/service taskomatic stop >/dev/null 2>&1 /sbin/chkconfig --del taskomatic fi fi %files %defattr(644,tomcat,tomcat,775) %attr(775, root, tomcat) %dir %{appdir} %dir %{appdir}/rhn/ %{appdir}/rhn/apidoc/ %{appdir}/rhn/css/ %{appdir}/rhn/errata/ %{appdir}/rhn/help/ %{appdir}/rhn/img/ %{appdir}/rhn/META-INF/ %{appdir}/rhn/schedule/ %{appdir}/rhn/systems/ %{appdir}/rhn/users/ %{appdir}/rhn/errors/ %{appdir}/rhn/*.jsp %{appdir}/rhn/WEB-INF/classes %{appdir}/rhn/WEB-INF/decorators %{appdir}/rhn/WEB-INF/includes %{appdir}/rhn/WEB-INF/nav %{appdir}/rhn/WEB-INF/pages %{appdir}/rhn/WEB-INF/*.xml # list of all jar symlinks without any version numbers # and wildcards (except non-symlink velocity) %{jardir}/antlr.jar %{jardir}/bcel.jar %{jardir}/c3p0*.jar %if 0%{?fedora} >= 25 %{jardir}/cglib_cglib.jar %else %{jardir}/cglib.jar %endif %{jardir}/commons-beanutils.jar %{jardir}/commons-cli.jar %{jardir}/commons-codec.jar %{jardir}/commons-collections.jar %{jardir}/commons-digester.jar %{jardir}/commons-discovery.jar %{jardir}/commons-el.jar %{jardir}/commons-fileupload.jar %{jardir}/commons-io.jar %{jardir}/commons-lang.jar %{jardir}/commons-logging.jar %{jardir}/*commons-validator.jar %{jardir}/concurrent*.jar %{jardir}/dom4j.jar %{jardir}/dwr.jar %{jardir}/hibernate3* %{jardir}/ehcache-core.jar %{jardir}/*_hibernate-commons-annotations.jar %{jardir}/hibernate-jpa-2.0-api*.jar %{jardir}/javassist.jar %{jardir}/mchange-commons*.jar %{jardir}/slf4j_api.jar %{jardir}/slf4j_log4j12*.jar %{jardir}/*jboss-logging.jar %{jardir}/tomcat-taglibs-standard_taglibs-build-tools.jar %{jardir}/tomcat-taglibs-standard_taglibs-standard-compat.jar %{jardir}/tomcat-taglibs-standard_taglibs-standard-impl.jar %{jardir}/tomcat-taglibs-standard_taglibs-standard-jstlel.jar %{jardir}/tomcat-taglibs-standard_taglibs-standard-spec.jar %{jardir}/javamail_javax.mail.jar %{jardir}/jcommon*.jar %{jardir}/jdom.jar %{jardir}/jpam.jar %{jardir}/jta.jar %{jardir}/log4j*.jar %{jardir}/objectweb-asm_asm.jar %{jardir}/oro.jar %{jardir}/quartz.jar %{jardir}/redstone-xmlrpc-client.jar %{jardir}/redstone-xmlrpc.jar %{jardir}/rhn.jar %{jardir}/simple-core.jar %{jardir}/simple-xml.jar %{jardir}/sitemesh.jar %{jardir}/stringtree-json.jar %{jardir}/susestudio-java-client.jar %{jardir}/tanukiwrapper.jar %{jardir}/velocity-*.jar %{jardir}/xalan-j2.jar %{jardir}/xerces-j2.jar %{jardir}/xml-commons-apis.jar %{jardir}/struts*.jar %{jardir}/commons-chain.jar %dir %{cobprofdir} %dir %{cobprofdirup} %dir %{cobprofdirwiz} %dir %{cobdirsnippets} %config %{cobdirsnippets}/default_motd %config %{cobdirsnippets}/keep_system_id %config %{cobdirsnippets}/post_reactivation_key %config %{cobdirsnippets}/post_delete_system %config %{cobdirsnippets}/redhat_register %if 0%{?fedora} || 0%{?rhel} >= 7 %config(noreplace) %{_sysconfdir}/tomcat/Catalina/localhost/rhn.xml %else %config(noreplace) %{_sysconfdir}/tomcat6/Catalina/localhost/rhn.xml %endif %{realcobsnippetsdir}/spacewalk %dir %attr(755, tomcat, root) %{_var}/spacewalk/systemlogs %ghost %attr(644, tomcat, root) %{_var}/spacewalk/systemlogs/audit-review.log %files -n spacewalk-taskomatic %defattr(644,root,root,775) %if 0%{?fedora} || 0%{?rhel} >= 7 %attr(755, root, root) %{_sbindir}/taskomatic %attr(644, root, root) %{_unitdir}/taskomatic.service %else %attr(755, root, root) %{_initrddir}/taskomatic %endif %{_bindir}/taskomaticd %{_datarootdir}/spacewalk/taskomatic %files config %defattr(644,root,root,775) %{_prefix}/share/rhn/config-defaults/rhn_hibernate.conf %{_prefix}/share/rhn/config-defaults/rhn_taskomatic_daemon.conf %{_prefix}/share/rhn/config-defaults/rhn_org_quartz.conf %{_prefix}/share/rhn/config-defaults/rhn_java.conf %config %{_sysconfdir}/logrotate.d/rhn_web_api %files lib %defattr(644,root,root,775) %{_datadir}/rhn/classes/log4j.properties %{_datadir}/rhn/lib/rhn.jar %files oracle %defattr(644,root,root,775) %attr(644, tomcat, tomcat) %{jardir}/ojdbc14.jar %{_prefix}/share/rhn/search/lib/ojdbc14.jar %{_prefix}/share/spacewalk/taskomatic/ojdbc14.jar %{_prefix}/share/spacewalk/taskomatic/quartz-oracle.jar %files postgresql %defattr(644,root,root,775) %attr(644, tomcat, tomcat) %{jardir}/postgresql-jdbc.jar %{_prefix}/share/rhn/search/lib/postgresql-jdbc.jar %changelog * Thu Sep 21 2017 Tomas Kasparek 2.7.116-1 - 1493143 - keep errata in the original channel for channel.software.mergeErrata * Thu Aug 17 2017 Jiri Dostal 2.7.115-1 - 1458712 - "Update Organization" button placed that way it is not clear that it updates "Allow Organization Admin to manage Organization Configuration" setting as well * Wed Aug 16 2017 Eric Herget 2.7.114-1 - SW 2.7 Release prep - update copyright year (3rd pass) * Tue Aug 15 2017 Grant Gainey 2.7.113-1 - 1461898 - Fix SelectableChannel for other users of channel_selector.jspf * Tue Aug 15 2017 Jan Dobes 2.7.112-1 - KickstartDownloadActionTest is useless * Mon Aug 14 2017 Jan Dobes 2.7.111-1 - use LinkedHashSet same as in get method and as on web UI counterpart, TreeSet evaluates all KickstartCommand instances as equal (because of compareTo method) - fixing NoCobblerTokenException: We had an error trying to login. - this test doesn't make much sense - it lists also null-org errata and it randomly passes/fails depending on synced content * Fri Aug 11 2017 Jan Dobes 2.7.110-1 - assert is wrong - inverted TEST_CONFIG_BOOLEAN value is not saved when required fields are missing in form - fixing various ClassNotFoundException in tests - add hamcrest to classpath - update struts libs, they are now in /usr/share/java/struts/, add only tiles lib, others should be linked from tomcat lib dir - ChannelFactory.listAllBaseChannels lists also null-org channels, fix test - fix table name for set, hibernate is looking for 'rhnaction_rhnactionconfigchannel' and 'rhnaction_rhnactionconfigfilename' tables in ConfigUploadActionTest and ConfigUploadMtimeActionTest * Fri Aug 11 2017 Jiri Dostal 2.7.109-1 - 1471018 - Allow cancel event that was picked up from queue by WebUI * Thu Aug 10 2017 Jan Dobes 2.7.108-1 - 'if not exists' is unsupported in PG 8.4, catch exception in Java code instead - TEST_CONF_LOCATION path is still used in spacewalk-java-tests RPM, use it as fallback when any config file is not found locally * Mon Aug 07 2017 Eric Herget 2.7.107-1 - another pass to update copyright year * Thu Aug 03 2017 Jan Dobes 2.7.106-1 - 1455791 - rename cobbler profile names containing org's name * Thu Aug 03 2017 Tomas Kasparek 2.7.105-1 - 1477508 - fix query for Oracle databases * Mon Jul 31 2017 Eric Herget 2.7.104-1 - bump java.apiversion - update copyright year * Fri Jul 28 2017 Grant Gainey 2.7.103-1 - 1475067 - Fix SSM update-status icons * Fri Jul 28 2017 Jiri Dostal 2.7.102-1 - 1455887 - allow to fail Picked Up action as well * Tue Jul 25 2017 Gennadii Altukhov 2.7.101-1 - 1461705 - enable checkboxes for systems are in SSM * Thu Jul 20 2017 Grant Gainey 2.7.100-1 - 1461898 - fix pulldown for 'Manage Software Repositories' page * Use call that returns correctly-sorted channel-hierarchy * Fix JSP to stop using in ways that are bad for display * Remove HQL listCustomChannels that doesn't do what we thought it did * Thu Jul 20 2017 Jiri Dostal 2.7.99-1 - 1455887 - schedule.failSystemAction API overwrites system events history * Thu Jul 20 2017 Jiri Dostal 2.7.98-1 - 1455880 - failSystemAction does not check system action id * Tue Jul 18 2017 Eric Herget 2.7.97-1 - PR 476 - Fix child nav items not being shown as active * Tue Jul 18 2017 Grant Gainey 2.7.96-1 - 1458722 - Only make org-changes, if the org is allowed to be changed * Mon Jul 17 2017 Jan Dobes 2.7.95-1 - Merging frontend L10N from Zanata * Wed Jul 12 2017 Jiri Dostal 2.7.94-1 - 1320469 - "channel.software.mergePackages" does not create a repodata if a clone channel is created using the API * Fri Jun 30 2017 Eric Herget 2.7.93-1 - PR 500 - correcting email address in change log. Not able/willing to change email addresses in individual commits, however. - Duplicate Systems: correct language not to mention 'profiles' (bsc1035728) * Tue Jun 27 2017 Marc Dahlhaus - Fix logging of errors to be at error level, not debug. Also remove milliseconds from metadata stale check to match non-debian stale check - PR 500 - fix copy and paste mistake - PR 500 - use the already imported and used equalsIgnoreCase - PR 500 - Add epoch information for deb packages * Tue Jun 27 2017 Jiri Dostal 2.7.91-1 - 1460208 - organization name allows XSS - Revert "1460208 - organization name allows XSS" * Tue Jun 27 2017 Gennadii Altukhov 2.7.90-1 - 1460960 - show 'Proxy' tab only if a system is proxy * Fri Jun 23 2017 Jiri Dostal 2.7.89-1 - 1460208 - organization name allows XSS * Thu Jun 22 2017 Grant Gainey 2.7.88-1 - request repodata regeneration even if an erratum without new packages is published * Mon Jun 19 2017 Gennadii Altukhov 2.7.87-1 - 1418746 - checkbox should be selected if proxy client is in a SSM * Thu Jun 15 2017 Grant Gainey 2.7.86-1 - Increment 'earliest' date by a millisecond between chain actions * Thu Jun 15 2017 Grant Gainey 2.7.85-1 - Add a link to action details in single errata schedule notification - Add a link to system pending events in errata schedule notification for a single system * Thu Jun 15 2017 Grant Gainey 2.7.84-1 - Fix sort directions when the sort column is changed - Allow sorting on avisory name in errata lists - Reformat relevant-errata-list.jspf * Wed Jun 14 2017 Grant Gainey 2.7.83-1 - Checkstyle is a harsh mistress * Tue Jun 13 2017 Grant Gainey 2.7.82-1 - Test create assertions only in the create test, refactor helper method so that it can be used in other tests - Refactor: extract Tree operations tests to multiple classes, extract the common helper method to a base class * Tue Jun 13 2017 Grant Gainey 2.7.81-1 - extend package testing methods for more control * Tue Jun 13 2017 Grant Gainey 2.7.80-1 - Teach NavNodeTest that not-found-l10n strings are already escaped - Teach NavTest to rely on different pages for its test - Fix KickstartUrlHelperTest that has never been correct - Teach SystemManagerTest correct way to say Integer to Hibernate - Removed UserManagerTest's fragile dependency on ordering of rhntimezone table - SystemHandlerTest relied on changing a readonly Hibernate entity - look it up instead - ToolbarTagCloneTest relied on headers whose strings are no longer lowercase - VirtualSystemsListActionTest relied on a page that has been renamed - SessionSwapTest has always said 'DO NOT COMMIT THIS' - we should have listened... - Teach JarFinderTest to not rely on packages that live in more than one jar - Teach AdvDataSourceTest to work even if test-table already exists - Update StrutsTestCase to version that supports Struts 1.3 * Fri Jun 09 2017 Michael Mraka 2.7.79-1 - fixed checkstyle errors on Fedora 26 - Remove more fedorahosted links * Thu Jun 01 2017 Michael Calmer - PR 519 - make country, state/province and city searchable for system location * Wed May 31 2017 Michael Mraka 2.7.77-1 - 1444047 - display alternative archs only from the same org - Update system group details page * Wed May 24 2017 Jan Dobes 2.7.76-1 - 1441219 - channel admin should be able to set org user restrictions for null- org channels - 1441219 - fixing exploit - user permission is not checked - 1446310 - remove not existing links * Tue May 23 2017 Grant Gainey 2.7.75-1 - 1368438 - Teach ListPackagesAction and list.jsp about packageChannels * Tue May 23 2017 Grant Gainey 2.7.74-1 - 1005783 - I18N the 'NOT MAPPED' string of ISS - 1324737 - polish API description * Tue May 23 2017 Michael Mraka 2.7.73-1 - java devel package is needed even in runtime (on RHEL6) * Mon May 22 2017 Michael Mraka 2.7.72-1 - fixed java developer setup (mainly ivy config) - slf4j-log4j12 is in slf4j's subpackage on Fedora 25 * Fri May 19 2017 Grant Gainey 2.7.71-1 - 1452080 - Escape failure-text of failed-actions * Tue May 16 2017 Grant Gainey 2.7.70-1 - 1067601 - Rename org-specific channel-family when org-name changes * Fri May 12 2017 Laurence Rochfort - 1436634 - PR 527 - Used StringBuilder correctly without '+' operator. - 1436634 - PR 527 - Fix KS Default Download Location appending URL verbatim. * Wed May 10 2017 Jan Dobes 2.7.68-1 - 1414406. Fix schedulePackage{Install,Remove}ByNevra arguments description. * Tue May 09 2017 Grant Gainey 2.7.67-1 - 1445868 - Handle attempting to create ISS Master/Slave with existing FQDN more gracefully - 1440696 , fix updateRepoSsl description * Mon May 08 2017 Can Bulut Bayburt - PR 472 - Add 'Latest' back to button labels to make clear the latest version will be copied - Eric Herget - PR 472 - Update 'view/modify file' action buttons text * Mon May 08 2017 Grant Gainey 2.7.65-1 - 1381857 - Teach Postgres to correctly-unique-ify rhnConfigInfo rows * Mon May 08 2017 Silvio Moioli - PR 485 - Leave System Set Manager page title as-is - Eric Herget - PR 485 - SSM Task Log: make title coherent with menu item - PR 485 - ssm_status.xml: format XML - PR 485 - SSM Task Log page: put default as first tab - PR 485 - Rename SSM page titles for consistency (bsc#979623) * Mon May 08 2017 Eric Herget 2.7.66-1 - PR 476 - Change to support java version < 1.8 - PR 476 - SidenavRenderer: do not ouput empty class - PR 476 - Use different symbols for collapsible sidebar items * Fri May 05 2017 Grant Gainey 2.7.62-1 - 1448342 - Fix config-deploy success message * Thu May 04 2017 Can Bulut Bayburt - PR 483 - Hides 'Save/Clear' buttons when no changes are present in action chain lists - PR 483 - Fix plus/minus buttons in action chain list * Thu May 04 2017 Gennadii Altukhov 2.7.60-1 - 1436746 - remove 'Add Selected to SSM' button, because now WebUI requires enabled JavaScript * Wed May 03 2017 Michael Mraka 2.7.59-1 - recompile all packages with the same (latest) version of java - point ivy to local jars installed from rpms - fixed ant compile warning * Wed May 03 2017 Jiri Dostal 2.7.58-1 - 1409537 Remove unused packages from KS > Rhel4 * Fri Apr 28 2017 Eric Herget 2.7.57-1 - PR478 - Fix notification order for Create Organization page - Silvio Moioli - Remove unused imports. * Thu Apr 27 2017 Grant Gainey 2.7.56-1 - 1445225 - Don't link a package if it doesn't have an id * Thu Apr 27 2017 Grant Gainey 2.7.55-1 - 1445711 - Fix incorrect reference for id/name in JSP - bz1441213. installation->removal in schedulePackageRemove, remove->removal(for consistency), nerva->nevra * Tue Apr 25 2017 Michael Mraka 2.7.54-1 - use newer version of commons-digester on RHEL6 - newer version of commons-beanutils is needed on RHEL6 - some java packages has been built with java 1.8.0 * Mon Apr 24 2017 Michael Mraka 2.7.53-1 - fixing upgrade on Fedora 24 - no more special jar handling is needed - simplify mchange-commons setup * Fri Apr 21 2017 Jan Dobes 2.7.52-1 - 1414454 - adding test - 1414454 - adding channel.listManageableChannels API and changing select to provide all expected fields for serializer * Fri Apr 21 2017 Michael Mraka 2.7.51-1 - resolving dependencies during upgrade on RHEL6 - resolving file conflicts on RHEL6 installation - obsolete jpackage remnants on RHEL7 - 1441213 - fix description of api call * Tue Apr 11 2017 Jan Dobes 2.7.50-1 - 1441219 - channel admin role shouldn't allow user to work with null-org channels * Tue Apr 11 2017 Michael Mraka 2.7.49-1 - use fedora (not jpackage) version of concurrent - unify file ownership across subpackages * Mon Apr 10 2017 Michael Mraka 2.7.48-1 - updated RHEL6 (Build)Requires according to new java packages * Mon Apr 10 2017 Jan Dobes 2.7.47-1 - obsolete some more packages for successfull upgrade on rhel 7 * Thu Apr 06 2017 Jiri Dostal 2.7.46-1 - 1380311 - API client.channel.software.createRepo() in 5.8.0 allows "yum" repo type only, 5.7.0 used "YUM" * Tue Apr 04 2017 Gennadii Altukhov 2.7.45-1 - 1436746 - reverted commit 64d3df3b783c96548d53f31601c0e8322c23d8bc * Thu Mar 30 2017 Michael Mraka 2.7.44-1 - simplify rhn-search jar list * Wed Mar 29 2017 Michael Mraka 2.7.43-1 - fix perrmissions on /usr/share/spacewalk/taskomatic/*.jar * Tue Mar 28 2017 Michael Mraka 2.7.42-1 - run checkstyle on Fedora again - fixed new checkstyle errors - newer checkstyle requires commons-lang3 - use same requires on Fedora and RHEL7 * Mon Mar 27 2017 Gennadii Altukhov 2.7.41-1 - 1421115 - set number of bytes instead of length of java string for 'Content- Length' HTTP-header * Fri Mar 24 2017 Michael Mraka 2.7.40-1 - simplified taskomatic jar dependencies by linking them into a single directory * Tue Mar 21 2017 Michael Mraka 2.7.39-1 - include slf4j logger binding * Mon Mar 20 2017 Michael Mraka 2.7.38-1 - obsolete old jpackage rpms to make smooth upgrade * Thu Mar 16 2017 Gennadii Altukhov 2.7.37-1 - 1408167 - add link to proxy system details page * Wed Mar 15 2017 Michael Mraka 2.7.36-1 - new cglib on Fedora 25 has different path * Wed Mar 15 2017 Michael Mraka 2.7.35-1 - jmock-junit3 and jmock-legacy has been split into different packages * Wed Mar 15 2017 Michael Mraka 2.7.34-1 - ProxyHandler: dead code removed - struts-taglib is part of struts on Fedora / EPEL7 - hibernate on Fedora uses ehcache * Mon Mar 13 2017 Michael Mraka 2.7.33-1 - we need quartz v1 for build - use standard objectweb-asm and cglib on all platforms - use standard javamail on Fedora - merged Requires/BuildRequires into a single ifdef (cleanup) - jaf is a part of standard openjdk for a long time * Fri Mar 10 2017 Michael Mraka 2.7.32-1 - use standard apache-commons-fileupload on Fedora - use standard apache-commons-el on Fedora - use standard tomcat-taglibs-standard on Fedora * Fri Mar 10 2017 Michael Mraka 2.7.31-1 - Migrate to jMock2 * Fri Mar 03 2017 Tomas Kasparek 2.7.30-1 - Updated links to github in spec files - Migrating Fedorahosted to GitHub - Fix SSM reboot action success messages - Fix checkbox icon align - Get rid of remaining