Name: pax-runner Version: 1.7.6 Release: 1%{?dist} Summary: OPS4J Pax Runner Group: Development/Libraries License: ASL 2.0 URL: http://team.ops4j.org/wiki/display/paxrunner/Pax+Runner # git clone git://github.com/ops4j/org.ops4j.pax.runner pax-runner-1.7.6 # (cd pax-runner-1.7.6 && git archive --format=tar --prefix=pax-runner-1.7.6/ runner-1.7.6 | xz > ../pax-runner-1.7.6-src-git.tar.xz) Source0: %{name}-%{version}-src-git.tar.xz # pax-runner package don't include the license file Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ops4j-master BuildRequires: apache-commons-logging BuildRequires: felix-osgi-compendium BuildRequires: felix-osgi-core BuildRequires: ops4j-base BuildRequires: pax-scanner BuildRequires: pax-swissbox # pax-runner module #BuildRequires: felix-bundlerepository #BuildRequires: felix-framework 1.0.0 #BuildRequires: pax-url #BuildRequires: slf4j # test deps BuildRequires: easymock BuildRequires: junit BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-enforcer-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-plugin-bundle BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: ops4j-base Requires: pax-scanner Requires: pax-swissbox Requires: java Requires: jpackage-utils BuildArch: noarch %description OPS4J Pax Runner - Easiest way to run your bundles. See details at http://team.ops4j.org/wiki/display/paxrunner/. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q # TODO %pom_disable_module pax-runner %pom_disable_module pax-runner-assembly %pom_disable_module pax-runner-no-jcl %pom_remove_plugin :maven-dependency-plugin pax-runner sed -i "s|<_include>-osgi.bnd||" pom.xml cp -p %{SOURCE1} . sed -i 's/\r//' LICENSE-2.0.txt %build mvn-rpmbuild install javadoc:aggregate %install mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-runner.pom %add_maven_depmap JPP.%{name}-runner.pom mkdir -p %{buildroot}%{_javadir}/%{name} for m in commons \ handler \ platform \ platform-concierge \ platform-equinox \ platform-felix \ platform-knopflerfish; do install -m 644 %{name}-${m}/target/%{name}-${m}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-${m}.jar install -pm 644 %{name}-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom %add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar done mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %dir %{_javadir}/%{name} %{_javadir}/%{name}/%{name}-*.jar %{_mavenpomdir}/JPP.%{name}-runner.pom %{_mavenpomdir}/JPP.%{name}-%{name}-*.pom %{_mavendepmapfragdir}/%{name} %doc LICENSE-2.0.txt %files javadoc %{_javadocdir}/%{name} %doc LICENSE-2.0.txt %changelog * Mon Nov 05 2012 gil cattaneo 1.7.6-1 - initial rpm