[felix-gogo-shell] Added files
Tomas Radej
tradej at fedoraproject.org
Thu Jan 12 15:44:09 UTC 2012
commit 0e47fe84c4ae6db84153348833f599fae63ecc40
Author: Tomas Radej <tradej at redhat.com>
Date: Thu Jan 12 16:16:01 2012 +0100
Added files
.gitignore | 1 +
felix-gogo-shell-groupid.patch | 20 ++++++++++
felix-gogo-shell.spec | 83 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0eaaf61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/org.apache.felix.gogo.shell-0.10.0-project.tar.gz
diff --git a/felix-gogo-shell-groupid.patch b/felix-gogo-shell-groupid.patch
new file mode 100644
index 0000000..563c9e7
--- /dev/null
+++ b/felix-gogo-shell-groupid.patch
@@ -0,0 +1,20 @@
+diff --git a/pom.xml b/pom.xml
+index af31761..f49d7c3 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -30,13 +30,13 @@
+ <version>0.10.0</version>
+ <dependencies>
+ <dependency>
+- <groupId>org.osgi</groupId>
++ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>4.2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+- <groupId>org.osgi</groupId>
++ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <version>4.0.0</version>
+ <scope>provided</scope>
diff --git a/felix-gogo-shell.spec b/felix-gogo-shell.spec
new file mode 100644
index 0000000..e1a17cf
--- /dev/null
+++ b/felix-gogo-shell.spec
@@ -0,0 +1,83 @@
+%global parent felix-gogo
+%global pkgname shell
+
+Name: %{parent}-%{pkgname}
+Version: 0.10.0
+Release: 1%{?dist}
+Summary: Community OSGi R4 Service Platform Implementation - Basic Commands
+Group: Development/Tools
+License: ASL 2.0
+URL: http://felix.apache.org/site/apache-felix-gogo.html
+
+Source0: http://mirror.catn.com/pub/apache//felix/org.apache.felix.gogo.shell-0.10.0-project.tar.gz
+
+# Changed GroupID from osgi to felix
+Patch0: %{name}-groupid.patch
+
+BuildArch: noarch
+
+BuildRequires: java
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: felix-gogo-parent
+BuildRequires: felix-gogo-runtime
+BuildRequires: felix-osgi-compendium
+
+Requires: java
+Requires: jpackage-utils
+
+%description
+Apache Felix is a community effort to implement the OSGi R4 Service Platform
+and other interesting OSGi-related technologies under the Apache license. The
+OSGi specifications originally targeted embedded devices and home services
+gateways, but they are ideally suited for any project interested in the
+principles of modularity, component-orientation, and/or service-orientation.
+OSGi technology combines aspects of these aforementioned principles to define a
+dynamic service deployment framework that is amenable to remote management.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n org.apache.felix.gogo.shell-%{version}
+%patch0 -p1 -F3
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# jars
+install -d -m 0755 %{buildroot}%{_javadir}
+install -pm 644 target/org.apache.felix.gogo.shell-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
+
+
+%files
+%doc DEPENDENCIES LICENSE NOTICE
+%{_javadir}/*
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE
+%{_javadocdir}/%{name}
+
+%changelog
+* Mon Jan 09 2012 Tomas Radej <tradej at redhat.com> - 0.10.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..d2c7097 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9f530f0009df4948b25c49cde14cb2a5 org.apache.felix.gogo.shell-0.10.0-project.tar.gz
More information about the scm-commits
mailing list