Name: activemq-core Version: 5.6.0 Release: 1%{?dist} Summary: The most popular and powerful open source messaging and Integration Patterns server. Group: Development/Libraries License: ASL 2.0 URL: http://activemq.apache.org # git clone -b activemq-5.6.0 https://github.com/apache/activemq.git activemq-core-5.6.0 # rm -rf activemq-core-5.6.0/{activemq-{all,blueprint,camel,console,fileserver, \ # jaas,jmdns_1.0,karaf,openwire-generator,optional,pool,ra,rar,run,spring,tooling, \ # web,web-console,web-demo,xmpp},kahadb,assembly,etc} # rm -f activemq-core-5.6.0/pom.xml # rm -rf activemq-core-5.6.0/.git # tar cJf activemq-core-5.6.0.tar.xz activemq-core-5.6.0 Source0: activemq-core-5.6.0.tar.xz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: maven-compiler-plugin BuildRequires: maven-gpg-plugin BuildRequires: maven-idea-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-plugin-cobertura BuildRequires: maven-pmd-plugin BuildRequires: maven-source-plugin BuildRequires: maven-release-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-xbean-plugin BuildRequires: maven-clean-plugin BuildRequires: maven-enforcer-plugin BuildRequires: javacc-maven-plugin BuildRequires: activemq-parent BuildRequires: activemq-protobuf BuildRequires: activemq-jaas BuildRequires: activeio BuildRequires: jettison BuildRequires: springframework-jms BuildRequires: geronimo-jta BuildRequires: derby BuildRequires: jasypt BuildRequires: kahadb Requires: jpackage-utils Requires: java Requires: activemq-protobuf Requires: activemq-jaas Requires: activeio Requires: jettison Requires: springframework-jms Requires: geronimo-jta Requires: derby Requires: jasypt Requires: kahadb BuildArch: noarch %description The most popular and powerful open source messaging and Integration Patterns server. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name} %prep %setup -q -n %{name}-%{version} # Remove missing plugin %pom_remove_dep xsddoc:maven-xsddoc-plugin %{name}/pom.xml # Remove xstream support (fedora version is out of date) rm -rf %{name}/src/main/java/org/apache/activemq/transport/stomp rm -rf %{name}/src/main/java/org/apache/activemq/util/XStreamFactoryBean.java %pom_remove_dep com.thoughtworks.xstream:xstream %{name}/pom.xml # Remove jmdns support rm -rf %{name}/src/main/java/org/apache/activemq/transport/discovery/zeroconf %pom_remove_dep org.apache.activemq:activemq-jmdns_1.0 %{name}/pom.xml # Remove leveldb support rm -rf %{name}/src/main/java/org/apache/activemq/store/leveldb %pom_remove_dep org.fusesource.fuse-extra:fusemq-leveldb %{name}/pom.xml # Remove mqtt support rm -rf %{name}/src/main/java/org/apache/activemq/transport/mqtt %pom_remove_dep org.fusesource.mqtt-client:mqtt-client %{name}/pom.xml # Remove other optional dependencies %pom_remove_dep org.apache.activemq:activemq-openwire-generator %{name}/pom.xml %pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec %{name}/pom.xml %pom_remove_dep org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec %{name}/pom.xml %pom_remove_dep org.apache.geronimo.specs:geronimo-jacc_1.1_spec %{name}/pom.xml chmod 644 LICENSE README.txt %build mvn-rpmbuild -f %{name}/pom.xml \ -Dmaven.test.skip=true \ -Dproject.build.sourceEncoding=UTF-8 \ install javadoc:aggregate %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -pm 644 %{name}/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 %{name}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -rp %{name}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %doc LICENSE README.txt %{_javadir}/%{name}.jar %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %doc LICENSE %{_javadocdir}/%{name} %changelog * Mon Sep 10 2012 Matt Spaulding - 5.6.0-1 - Initial RPM package