Summary: Apache ActiveMQ Name: activemq Version: 5.3.0 Release: 1%{?dist} License: Apache Group: Network/Daemons Source0: apache-activemq-%{version}-bin.tar.gz Source1: wlcg-patch.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch Requires: tanukiwrapper >= 3.2.0 #%define buildver 5.1.0 %define homedir /usr/share/%{name} %define libdir /var/lib/%{name} %define libexecdir /usr/libexec/%{name} %define cachedir /var/cache/%{name} %define docsdir /usr/share/doc/%{name}-%{version} %description ApacheMQ is a JMS Compliant Messaging System %package info-provider Summary: An LDAP information provider for activemq Group:grid/lcg %description info-provider An LDAP infomation provider for activemq %package meta Summary: A metapackage Group:grid/lcg Requires: activemq = ${version}-${release}, activemq-info-provider = ${version}-${release} %description meta A metapackage %prep %setup -q -a1 -n apache-activemq-%{version} %build install --directory ${RPM_BUILD_ROOT} %install rm -rf $RPM_BUILD_ROOT install --directory ${RPM_BUILD_ROOT}%{homedir} install --directory ${RPM_BUILD_ROOT}%{homedir}/bin install --directory ${RPM_BUILD_ROOT}%{docsdir} install --directory ${RPM_BUILD_ROOT}%{libdir}/lib install --directory ${RPM_BUILD_ROOT}%{libexecdir} install --directory ${RPM_BUILD_ROOT}%{libdir}/webapps install --directory ${RPM_BUILD_ROOT}%{cachedir} install --directory ${RPM_BUILD_ROOT}%{cachedir}/data install --directory ${RPM_BUILD_ROOT}/var/log/%{name} install --directory ${RPM_BUILD_ROOT}/var/run/%{name} install --directory ${RPM_BUILD_ROOT}/etc/%{name} install --directory ${RPM_BUILD_ROOT}/etc/init.d install --directory ${RPM_BUILD_ROOT}/etc/httpd/conf.d # Config files install conf/activemq.xml ${RPM_BUILD_ROOT}/etc/%{name} install conf/credentials.properties ${RPM_BUILD_ROOT}/etc/%{name} install conf/jetty.xml ${RPM_BUILD_ROOT}/etc/%{name} install conf/log4j.properties ${RPM_BUILD_ROOT}/etc/%{name} install conf/activemq-wrapper.conf ${RPM_BUILD_ROOT}/etc/%{name} install conf/activemq-httpd.conf ${RPM_BUILD_ROOT}/etc/httpd/conf.d # startup script install bin/activemq ${RPM_BUILD_ROOT}/etc/init.d # Bin and doc dirs install *.txt *.html ${RPM_BUILD_ROOT}%{docsdir} cp -r docs ${RPM_BUILD_ROOT}%{docsdir} install bin/run.jar bin/activemq-admin ${RPM_BUILD_ROOT}%{homedir}/bin install --directory ${RPM_BUILD_ROOT}/usr/bin %{__ln_s} -f %{homedir}/bin/activemq-admin ${RPM_BUILD_ROOT}/usr/bin # Runtime directory cp -r lib ${RPM_BUILD_ROOT}%{libdir} cp -r webapps/admin ${RPM_BUILD_ROOT}%{libdir}/webapps # Info provider install info-provider-activemq ${RPM_BUILD_ROOT}/%{libexecdir} pushd ${RPM_BUILD_ROOT}%{homedir} [ -d conf ] || %{__ln_s} -f /etc/%{name} conf [ -d data ] || %{__ln_s} -f %{cachedir}/data data [ -d docs ] || %{__ln_s} -f %{docsdir} docs [ -d lib ] || %{__ln_s} -f %{libdir}/lib lib [ -d lib ] || %{__ln_s} -f %{libdir}/libexec libexec [ -d log ] || %{__ln_s} -f /var/log/%{name} log [ -d webapps ] || %{__ln_s} -f %{libdir}/webapps webapps popd %pre # Add the "activemq" user and group # we need a shell to be able to use su - later /usr/sbin/groupadd -g 92 -r activemq 2> /dev/null || : /usr/sbin/useradd -c "Apache Activemq" -u 92 -g activemq \ -s /bin/bash -r -d /usr/share/activemq activemq 2> /dev/null || : %post # install activemq (but don't activate) /sbin/chkconfig --add activemq %preun if [ $1 = 0 ]; then [ -f /var/lock/subsys/activemq ] && /etc/init.d/activemq stop [ -f /etc/init.d/activemq ] && /sbin/chkconfig --del activemq fi %postun %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(755,root,root) /usr/bin/activemq-admin %{homedir} %docdir %{docsdir} %{docsdir} %{libdir} %attr(775,activemq,activemq) %dir /var/log/%{name} %attr(775,activemq,activemq) %dir /var/run/%{name} %attr(775,root,activemq) %dir %{cachedir}/data %attr(755,root,root) /etc/init.d/activemq %config(noreplace) /etc/httpd/conf.d/activemq-httpd.conf %config(noreplace) /etc/%{name}/activemq.xml %config(noreplace) %attr(750,root,activemq) /etc/%{name}/credentials.properties %config(noreplace) /etc/%{name}/jetty.xml %config(noreplace) /etc/%{name}/activemq-wrapper.conf %config(noreplace) /etc/%{name}/log4j.properties %files info-provider %defattr(-,root,root) %attr(755,root,root) %{libexecdir}/info-provider-activemq %changelog * Sat Jan 16 2010 R.I.Pienaar 5.3.0 - Adjusted for ActiveMQ 5.3.0 * Wed Oct 29 2008 James Casey 5.2.0-2 - fixed defattr on subpackages * Tue Sep 02 2008 James Casey 5.2.0-1 - Upgraded to activemq 5.2.0 * Tue Sep 02 2008 James Casey 5.1.0-7 - Added separate logging of messages whenever the logging interceptor is enabled in the config file - removed BrokerRegistry messages casued by REST API - now we don't log messages to stdout (so no duplicates in wrapper log). - upped the number and size of the rolling logs * Fri Aug 29 2008 James Casey 5.1.0-6 - make ServiceData be correct LDIF * Wed Aug 27 2008 James Casey 5.1.0-5 - changed glue path from mds-vo-name=local to =resource * Tue Aug 05 2008 James Casey 5.1.0-4 - fixed up info-provider to give both REST and STOMP endpoints * Mon Aug 04 2008 James Casey 5.1.0-3 - reverted out APP_NAME change to ActiveMQ from init.d since it causes too many problems * Mon Aug 04 2008 James Casey 5.1.0-2 - Added info-provider - removed mysql as a requirement * Thu Mar 20 2008 Daniel RODRIGUES - 5.1-SNAPSHOT-1 - Changed to version 5.1 SNAPSHOT of 18 Mar, fizing AMQ Message Store - small fixes to makefile * Fri Dec 14 2007 James CASEY - 5.0.0-3rc4 - Added apache config file to forward requests to Jetty * Thu Dec 13 2007 James CASEY - 5.0.0-2rc4 - fixed /usr/bin symlink - added useJmx to the default config * Thu Dec 13 2007 James CASEY - 5.0.0-RC4.1 - Moved to RC4 of the 5.0.0 release candidates * Mon Dec 10 2007 James CASEY - 5.0-SNAPSHOT-7 - added symlink in /usr/bin for activemq-admin * Wed Nov 26 2007 James CASEY - 5.0-SNAPSHOT-6 - fix bug with group name setting in init.d script * Wed Nov 26 2007 James CASEY - 5.0-SNAPSHOT-5 - fix typos in config file for activemq * Wed Nov 26 2007 James CASEY - 5.0-SNAPSHOT-4 - add support for lib64 version of tanukiwrapper in config - turned off mysql persistence in the "default" config * Wed Oct 17 2007 James CASEY - 5.0-SNAPSHOT-2 - more re-org to mirror how tomcat is installed. - support for running as activemq user * Tue Oct 16 2007 James CASEY - 5.0-SNAPSHOT-1 - Initial Version