Name: glassfish-ha-api Version: 3.1.9 Release: %mkrel 4 Summary: High Availability APIs and SPI License: CDDL or GPLv2 with exceptions URL: http://glassfish.java.net/ # svn export https://svn.java.net/svn/glassfish~svn/tags/ha-api-3.1.9 glassfish-ha-api-3.1.9 # tar czf glassfish-ha-api-3.1.9-src-svn.tar.gz glassfish-ha-api-3.1.9 Source0: %{name}-%{version}-src-svn.tar.gz # wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt # glassfish-ha-api package don't include the license file Source1: glassfish-LICENSE.txt Group: Development/Java BuildRequires: java-devel BuildRequires: jvnet-parent BuildRequires: glassfish-hk2-api # test dep BuildRequires: junit BuildRequires: glassfish-hk2-maven-plugins BuildRequires: maven-local BuildRequires: maven-enforcer-plugin BuildRequires: maven-install-plugin BuildRequires: maven-plugin-bundle BuildArch: noarch %description GlassFish High Availability APIs and SPI. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} sed -i "s|<packaging>hk2-jar</packaging>|<packaging>jar</packaging>|" pom.xml sed -i "s|<artifactId>hk2</artifactId>|<artifactId>hk2-api</artifactId>|" pom.xml %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration" %pom_remove_plugin org.glassfish.hk2:hk2-maven-plugin %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . ' <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration>' sed -i "s|<artifactId>hk2</artifactId>|<artifactId>hk2-api</artifactId>|" pom.xml # META-INF/inhabitants/default contents ...not available without hk2 #class=org.glassfish.ha.store.impl.NoOpBackingStoreFactory,index=org.glassfish.ha.store.api.BackingStoreFactory:noop #class=org.glassfish.ha.store.spi.ObjectInputStreamWithLoader # in hk2 some modules require unavailable libraries. and i cant build ha-api as hk2-jar #%%pom_xpath_remove "pom:project/pom:packaging" #%%pom_xpath_inject "pom:project" "<packaging>jar</packaging>" cp -p %{SOURCE1} LICENSE.txt sed -i 's/\r//' LICENSE.txt %build %mvn_file :ha-api %{name} %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Wed Dec 24 2014 dmorgan <dmorgan> 3.1.9-4.mga5 + Revision: 805467 - imported package glassfish-ha-api * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 08 2013 gil cattaneo <puntogil@libero.it> 3.1.9-2 - switch to XMvn - minor changes to adapt to current guideline * Tue Oct 02 2012 gil cattaneo <puntogil@libero.it> 3.1.9-1 - initial rpm