Krzysztof Daniel b42b896
%global project felix
Krzysztof Daniel b42b896
%global bundle org.apache.felix.gogo.command
Krzysztof Daniel b42b896
%global groupId org.apache.felix
Krzysztof Daniel b42b896
%global artifactId %{bundle}
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Name:           %{project}-gogo-command
Krzysztof Daniel b42b896
Version:        0.12.0
Krzysztof Daniel b42b896
Release:        2%{?dist}
Krzysztof Daniel b42b896
Summary:        Apache Felix Gogo Command
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Group:          Development/Libraries
Krzysztof Daniel b42b896
License:        ASL 2.0
Krzysztof Daniel b42b896
URL:            http://felix.apache.org
Krzysztof Daniel b42b896
Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Patch0:         felix-gogo-command-pom.xml.patch
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildArch:      noarch
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildRequires:  java
Krzysztof Daniel b42b896
BuildRequires:  maven
Krzysztof Daniel b42b896
BuildRequires:  maven-dependency-plugin
Krzysztof Daniel b42b896
BuildRequires:  maven-surefire-plugin
Krzysztof Daniel b42b896
BuildRequires:  maven-surefire-provider-junit4
Krzysztof Daniel b42b896
BuildRequires:  jpackage-utils
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildRequires:  felix-osgi-core
Krzysztof Daniel b42b896
BuildRequires:  felix-framework
Krzysztof Daniel b42b896
BuildRequires:  felix-osgi-compendium
Krzysztof Daniel b42b896
BuildRequires:  felix-gogo-runtime
Krzysztof Daniel b42b896
BuildRequires:  felix-gogo-parent
Krzysztof Daniel b42b896
BuildRequires:  mvn(org.apache.felix:org.apache.felix.bundlerepository)
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Requires:       felix-framework
Krzysztof Daniel b42b896
Requires:       felix-osgi-compendium
Krzysztof Daniel b42b896
Requires:       felix-gogo-runtime
Krzysztof Daniel b42b896
Requires:       mvn(org.apache.felix:org.apache.felix.bundlerepository)
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%description
Krzysztof Daniel b42b896
Provides basic shell commands for Gogo.
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%package javadoc
Krzysztof Daniel b42b896
Group:          Documentation
Krzysztof Daniel b42b896
Summary:        Javadoc for %{name}
Krzysztof Daniel b42b896
Requires:       jpackage-utils
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%description javadoc
Krzysztof Daniel b42b896
API documentation for %{name}.
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%global POM %{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%prep
Krzysztof Daniel b42b896
%setup -q -n %{bundle}-%{version} 
Krzysztof Daniel b42b896
%patch0 -p1
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%build
Krzysztof Daniel b42b896
mvn-rpmbuild install javadoc:aggregate
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%install
Krzysztof Daniel b42b896
# jars
Krzysztof Daniel b42b896
install -d -m 0755 %{buildroot}%{_javadir}/%{project}
Krzysztof Daniel b42b896
install -m 644 target/%{bundle}-%{version}.jar \
Krzysztof Daniel b42b896
        %{buildroot}%{_javadir}/%{project}/%{bundle}.jar
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
# poms
Krzysztof Daniel b42b896
install -d -m 755 %{buildroot}%{_mavenpomdir}
Krzysztof Daniel b42b896
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%add_maven_depmap JPP.%{project}-%{bundle}.pom %{project}/%{bundle}.jar
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
# javadoc
Krzysztof Daniel b42b896
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
Krzysztof Daniel b42b896
%__cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%files
Krzysztof Daniel b42b896
%doc LICENSE
Krzysztof Daniel b42b896
%{_javadir}/*
Krzysztof Daniel b42b896
%{_mavenpomdir}/*
Krzysztof Daniel b42b896
%{_mavendepmapfragdir}/*
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%files javadoc
Krzysztof Daniel b42b896
%doc LICENSE
Krzysztof Daniel b42b896
%{_javadocdir}/%{name}
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%changelog
Krzysztof Daniel b42b896
* Tue Jan 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-2
Krzysztof Daniel b42b896
- description formatting removed
Krzysztof Daniel b42b896
- jar_repack removed
Krzysztof Daniel b42b896
- license added to the javadoc
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
* Tue Jan 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-1
Krzysztof Daniel b42b896
- Release 0.12.0