%global namedreltag RC2 %global namedversion %{version}%{?namedreltag} Name: swarmcache Version: 1.0 Release: 0.1.csv20040225%{?dist} Summary: Cluster-aware caching for java Group: Development/Libraries License: LGPLv2+ URL: http://swarmcache.sourceforge.net/ # cvs -d:pserver:anonymous@swarmcache.cvs.sourceforge.net:/cvsroot/swarmcache login # cvs -z3 -d:pserver:anonymous@swarmcache.cvs.sourceforge.net:/cvsroot/swarmcache export -D20040225 swarmcache # find swarmcache/ -name '*.jar' -type f -delete # find swarmcache/ -name '*.class' -delete # find swarmcache/ -name '*.bat' -delete # tar czf swarmcache-1.0-src-csv20040225.tar.gz swarmcache Source0: %{name}-1.0-src-csv20040225.tar.gz Source1: http://repo1.maven.org/maven2/%{name}/%{name}/%{namedversion}/%{name}-%{namedversion}.pom BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: ant-junit BuildRequires: apache-commons-collections BuildRequires: apache-commons-logging BuildRequires: jgroups212 BuildRequires: junit Requires: apache-commons-collections Requires: apache-commons-logging Requires: jgroups212 Requires: java Requires: jpackage-utils BuildArch: noarch %description SwarmCache is a simple, yet powerful distributed caching mechanism. It uses IP multicast to efficiently communicate between caching instances. It is ideal for radically improving the performance of clustered web applications. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name} cp -p %{SOURCE1} pom.xml sed -i "s|jgroups|org.jgroups|" pom.xml sed -i "s|jgroups-all|jgroups|" pom.xml sed -i "s|@version@|%{namedversion}|" readme.html iconv -f iso-8859-1 -t UTF-8 changehog.txt > changehog.txt.conv mv changehog.txt.conv changehog.txt %build export CLASSPATH=$(build-classpath commons-collections commons-logging jgroups212 junit) ant -Dbuild.sysclasspath=only test jar javadoc %install mkdir -p %{buildroot}%{_javadir} install -m 644 dist/%{name}-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr web/api/* %{buildroot}%{_javadocdir}/%{name} rm -rf web/api %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc changehog.txt readme.html web/* %files javadoc %{_javadocdir}/%{name} %changelog * Fri Aug 17 2012 gil cattaneo 1.0-0.1.csv20040225 - initial rpm