# Prevent brp-java-repack-jars from being run. %define __jar_repack %{nil} %global project felix %global bundle org.apache.felix.gogo.command %global groupId org.apache.felix %global artifactId %{bundle} Name: %{project}-gogo-command Version: 0.12.0 Release: 1%{?dist} Summary: Apache Felix Gogo Command Group: Development/Libraries License: ASL 2.0 URL: http://felix.apache.org Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz Patch0: 0001-pom.xml.patch BuildArch: noarch BuildRequires: java BuildRequires: maven BuildRequires: jpackage-utils BuildRequires: felix-osgi-core BuildRequires: felix-framework BuildRequires: felix-osgi-compendium BuildRequires: felix-gogo-runtime BuildRequires: mvn(org.apache.felix:org.apache.felix.bundlerepository) Requires: felix-framework Requires: felix-osgi-compendium Requires: felix-gogo-runtime Requires: mvn(org.apache.felix:org.apache.felix.bundlerepository) %description Provides basic shell commands for Gogo. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %global POM %{_mavenpomdir}/JPP.%{project}-%{bundle}.pom %prep %setup -q -n %{bundle}-%{version} %patch0 -p1 %build mvn-rpmbuild install javadoc:aggregate %install # jars install -d -m 0755 %{buildroot}%{_javadir}/%{project} install -m 644 target/%{bundle}-%{version}.jar \ %{buildroot}%{_javadir}/%{project}/%{bundle}.jar # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{project}-%{bundle}.pom %add_maven_depmap JPP.%{project}-%{bundle}.pom %{project}/%{bundle}.jar # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} %__cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %{_javadocdir}/%{name} %changelog #FIXME