Name: jinterface Version: 17.5.6 Release: 1%{?dist} Summary: Erlang low level interface to Java License: ERPL URL: http://www.erlang.org/doc/apps/jinterface # git clone https://github.com/erlang/otp # (cd otp/lib/jinterface && git archive --format=tar --prefix=jinterface-17.5.6/ OTP-17.5.6 | xz > ../../../jinterface-17.5.6.tar.xz) Source0: %{name}-%{version}.tar.xz # https://github.com/erlang/otp/EPLICENCE Source1: EPLICENCE BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildArch: noarch %description Jinterface Java package contains java classes, which help you integrate programs written in Java with Erlang. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} sed 's/%VSN%/%{version}/' pom.xml cp -p %{SOURCE1} . # Add OSGi support %pom_xpath_set "pom:project/pom:packaging" bundle %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . ' true bundle-manifest process-classes manifest ' %mvn_file : %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %license EPLICENCE %files javadoc -f .mfiles-javadoc %license EPLICENCE %changelog * Thu Jun 04 2015 gil cattaneo 17.5.6-1 - initial rpm