Name: activemq-jaas Version: 5.6.0 Release: 1%{?dist} Summary: ActiveMQ Jaas 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-jaas-5.6.0 # rm -rf activemq-jaas-5.6.0/{activemq-{all,blueprint,camel,console,fileserver, \ # core,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-jaas-5.6.0/pom.xml # tar cJf activemq-jaas-5.6.0.tar.xz activemq-jaas-5.6.0 Source0: activemq-jaas-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-enforcer-plugin BuildRequires: activemq-parent Requires: jpackage-utils Requires: java BuildArch: noarch %description ActiveMQ Jaas %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} chmod 644 LICENSE README.txt %build # Tests disabled for missing dependencies 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