Tomas Radej 53a8d80
%global project   felix-gogo
Tomas Radej 53a8d80
%global bundle    org.apache.felix.gogo.runtime
Tomas Radej 53a8d80
%global pkgname   runtime
Tomas Radej 53a8d80
Tomas Radej 53a8d80
Name:             %{project}-%{pkgname}
Tomas Radej 53a8d80
Version:          0.10.0
Tomas Radej 53a8d80
Release:          2%{?dist}
Tomas Radej 53a8d80
Summary:          Community OSGi R4 Service Platform Implementation - Basic Commands
Tomas Radej 53a8d80
Group:            Development/Tools
Tomas Radej 53a8d80
License:          ASL 2.0
Tomas Radej 53a8d80
URL:              http://felix.apache.org/site/apache-felix-gogo.html
Tomas Radej 53a8d80
Tomas Radej 53a8d80
Source0:          http://www.mirrorservice.org/sites/ftp.apache.org//felix/org.apache.felix.gogo.runtime-0.10.0-project.tar.gz 
Tomas Radej 53a8d80
Tomas Radej 53a8d80
# Typecast an Event constructor call with java.util.Properties to 
Tomas Radej 53a8d80
# java.util.Dictionary because the call to the constructor with Properties
Tomas Radej 53a8d80
# was ambiguous.
Tomas Radej 53a8d80
Patch1:           %{name}-dictionary.patch
Tomas Radej 53a8d80
# Changed path to DEPENDENCIES, LICENSE and NOTICE from META-INF to root dir
Tomas Radej 53a8d80
Patch2:           %{name}-bundle-resources.patch
Tomas Radej 53a8d80
# Removed failing thread IO test
Tomas Radej 53a8d80
Patch3:           %{name}-deleted-io-test.patch
Tomas Radej 53a8d80
# Removed relativePath to parent pom
Tomas Radej 53a8d80
Patch4:           %{name}-parent.patch
Tomas Radej 53a8d80
Tomas Radej 53a8d80
BuildArch:        noarch
Tomas Radej 53a8d80
Tomas Radej 53a8d80
BuildRequires:    java
Tomas Radej 53a8d80
BuildRequires:    jpackage-utils
Tomas Radej 53a8d80
BuildRequires:    maven
Tomas Radej 53a8d80
BuildRequires:    felix-osgi-core
Tomas Radej 53a8d80
BuildRequires:    felix-osgi-compendium
Tomas Radej 53a8d80
BuildRequires:    maven-surefire-provider-junit4
Tomas Radej 53a8d80
BuildRequires:    felix-gogo-parent
Tomas Radej 53a8d80
Tomas Radej 53a8d80
Requires:         java 
Tomas Radej 53a8d80
Requires:         jpackage-utils
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%description
Tomas Radej 53a8d80
Apache Felix is a community effort to implement the OSGi R4 Service Platform
Tomas Radej 53a8d80
and other interesting OSGi-related technologies under the Apache license. The
Tomas Radej 53a8d80
OSGi specifications originally targeted embedded devices and home services
Tomas Radej 53a8d80
gateways, but they are ideally suited for any project interested in the
Tomas Radej 53a8d80
principles of modularity, component-orientation, and/or service-orientation.
Tomas Radej 53a8d80
OSGi technology combines aspects of these aforementioned principles to define a
Tomas Radej 53a8d80
dynamic service deployment framework that is amenable to remote management.
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%package javadoc
Tomas Radej 53a8d80
Group:            Documentation
Tomas Radej 53a8d80
Summary:          Javadoc for %{name}
Tomas Radej 53a8d80
Requires:         jpackage-utils
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%description javadoc
Tomas Radej 53a8d80
This package contains the API documentation for %{name}.
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%prep
Tomas Radej 53a8d80
%setup -q -n %{bundle}-%{version}
Tomas Radej 53a8d80
%patch1 -p1
Tomas Radej 53a8d80
%patch2 -p1
Tomas Radej 53a8d80
%patch3 -p1
Tomas Radej 53a8d80
%patch4 -p1
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%build
Tomas Radej 53a8d80
mvn-rpmbuild install javadoc:aggregate 
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%install
Tomas Radej 53a8d80
# jars
Tomas Radej 53a8d80
install -d -m 0755 %{buildroot}%{_javadir}/%{project}
Tomas Radej 53a8d80
install -pm 644 target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/%{project}/%{bundle}.jar
Tomas Radej 53a8d80
Tomas Radej 53a8d80
# pom
Tomas Radej 53a8d80
install -d -m 755 %{buildroot}%{_mavenpomdir}
Tomas Radej 53a8d80
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
Tomas Radej 53a8d80
%add_maven_depmap JPP.%{project}-%{bundle}.pom %{project}/%{bundle}.jar
Tomas Radej 53a8d80
Tomas Radej 53a8d80
# javadoc
Tomas Radej 53a8d80
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
Tomas Radej 53a8d80
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
Tomas Radej 53a8d80
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%files
Tomas Radej 53a8d80
%doc DEPENDENCIES LICENSE NOTICE 
Tomas Radej 53a8d80
%{_javadir}/*
Tomas Radej 53a8d80
%{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
Tomas Radej 53a8d80
%{_mavendepmapfragdir}/%{name}
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%files javadoc
Tomas Radej 53a8d80
%doc LICENSE
Tomas Radej 53a8d80
%{_javadocdir}/%{name}
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%changelog
Tomas Radej 53a8d80
* Fri Dec 16 2011 Tomas Radej <tradej@redhat.com> - 0.10.0-2
Tomas Radej 53a8d80
- Repackaged, minor changes
Tomas Radej 53a8d80
Tomas Radej 53a8d80
* Mon Nov 07 2011 Tomas Radej <tradej@redhat.com> - 0.10.0-1
Tomas Radej 53a8d80
- Initial packaging
Tomas Radej 53a8d80