Name: jbosscache-core Version: 3.2.8 Release: 3%{?dist} Summary: JBoss objects cache Group: Development/Libraries License: LGPLv2 URL: http://jboss.org/jbosscache # svn export http://anonsvn.jboss.org/repos/jbosscache/core/tags/3.2.8.GA jbosscache-core-3.2.8 # tar cJf jbosscache-core-3.2.8.tar.xz jbosscache-core-3.2.8 Source0: %{name}-%{version}.tar.xz Source1: %{name}-depmap.xml BuildRequires: maven BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: maven-surefire BuildRequires: maven-compiler-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-release-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-enforcer-plugin BuildRequires: jbosscache-common-parent BuildRequires: jdbm BuildRequires: c3p0 BuildRequires: jcip-annotations BuildRequires: jgroups212 BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: jboss-common-core BuildRequires: apache-commons-logging BuildRequires: jboss-transaction-1.1-api Requires: java Requires: jpackage-utils Requires: jgroups212 Requires: jboss-transaction-1.1-api Requires: jboss-common-core Requires: jdbm Requires: c3p0 Requires: jcip-annotations Requires: apache-commons-logging BuildArch: noarch %description A library that caches frequently accessed Java objects in order to dramatically improve the performance of applications. %package javadoc Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils %description javadoc %{summary}. %prep %setup -q find . -name \*.jar -exec rm -f {} \; # Remove code for amazon-s3 and berkleydb-je dependencies rm -rf src/main/java/org/jboss/cache/loader/{s3,bdbje} %build # Not running tests due to missing dependencies mvn-rpmbuild install -Dmaven.test.skip=true \ -Dmaven.local.depmap.file=%{SOURCE1} \ -Dproject.build.sourceEncoding=UTF-8 \ javadoc:aggregate %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 target/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # poms install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -m 644 pom.xml \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %doc README-*.txt src/main/release/LICENSE-lgpl-2.1.txt src/main/release/README.txt %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %{_javadocdir}/%{name} %changelog * Wed Aug 08 2012 Matt Spaulding - 3.2.8-3 - Using custom depmap - Corrected license type * Tue Aug 07 2012 Matt Spaulding - 3.2.8-2 - Updated Requires section * Tue Jul 24 2012 Matt Spaulding - 3.2.8-1 - Initial package