diff --git a/.devtoolset-3-felix-gogo-runtime.metadata b/.devtoolset-3-felix-gogo-runtime.metadata new file mode 100644 index 0000000..7df5e29 --- /dev/null +++ b/.devtoolset-3-felix-gogo-runtime.metadata @@ -0,0 +1 @@ +a4dc7636979a4926cb1c815b127b1f5d780ef403 SOURCES/org.apache.felix.gogo.runtime-0.10.0-project.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5107eeb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/org.apache.felix.gogo.runtime-0.10.0-project.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/felix-gogo-runtime-bundle-resources.patch b/SOURCES/felix-gogo-runtime-bundle-resources.patch new file mode 100644 index 0000000..4443435 --- /dev/null +++ b/SOURCES/felix-gogo-runtime-bundle-resources.patch @@ -0,0 +1,13 @@ +diff --git a/pom.xml b/pom.xml +index 345457c..d467d41 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -71,7 +71,7 @@ + ${pom.artifactId} + The Apache Software Foundation + org.apache.felix.gogo.runtime.activator.Activator +- {maven-resources},META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,META-INF/DEPENDENCIES=DEPENDENCIES ++ {maven-resources},LICENSE,NOTICE,DEPENDENCIES + <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@))) + <_removeheaders>Private-Package,Ignore-Package,Include-Resource + diff --git a/SOURCES/felix-gogo-runtime-deleted-io-test.patch b/SOURCES/felix-gogo-runtime-deleted-io-test.patch new file mode 100644 index 0000000..d0c500c --- /dev/null +++ b/SOURCES/felix-gogo-runtime-deleted-io-test.patch @@ -0,0 +1,95 @@ +diff --git a/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java b/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java +deleted file mode 100644 +index 32ea917..0000000 +--- a/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java ++++ /dev/null +@@ -1,89 +0,0 @@ +-/* +- * Licensed to the Apache Software Foundation (ASF) under one +- * or more contributor license agreements. See the NOTICE file +- * distributed with this work for additional information +- * regarding copyright ownership. The ASF licenses this file +- * to you under the Apache License, Version 2.0 (the +- * "License"); you may not use this file except in compliance +- * with the License. You may obtain a copy of the License at +- * +- * http://www.apache.org/licenses/LICENSE-2.0 +- * +- * Unless required by applicable law or agreed to in writing, +- * software distributed under the License is distributed on an +- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +- * KIND, either express or implied. See the License for the +- * specific language governing permissions and limitations +- * under the License. +- */ +-package org.apache.felix.gogo.runtime.threadio; +- +-import junit.framework.TestCase; +- +-import java.io.ByteArrayOutputStream; +-import java.io.PrintStream; +-import java.util.ArrayList; +-import java.util.List; +- +-public class TestThreadIO extends TestCase +-{ +- +- /** +- * Test if the threadio works in a nested fashion. We first push +- * ten markers on the stack and print a message for each, capturing +- * the output in a ByteArrayOutputStream. Then we pop them, also printing +- * a message identifying the level. Then we verify the output for each level. +- */ +- public void testNested() +- { +- ThreadIOImpl tio = new ThreadIOImpl(); +- tio.start(); +- List list = new ArrayList(); +- for (int i = 0; i < 10; i++) +- { +- ByteArrayOutputStream out = new ByteArrayOutputStream(); +- list.add(out); +- tio.setStreams(System.in, new PrintStream(out), System.err); +- System.out.print("b" + i); +- } +- for (int i = 9; i >= 0; i--) +- { +- System.out.println("e" + i); +- tio.close(); +- } +- tio.stop(); +- for (int i = 0; i < 10; i++) +- { +- String message = list.get(i).toString().trim(); +- assertEquals("b" + i + "e" + i, message); +- } +- } +- +- /** +- * Simple test too see if the basics work. +- */ +- public void testSimple() +- { +- ThreadIOImpl tio = new ThreadIOImpl(); +- tio.start(); +- System.out.println("Hello World"); +- ByteArrayOutputStream out = new ByteArrayOutputStream(); +- ByteArrayOutputStream err = new ByteArrayOutputStream(); +- tio.setStreams(System.in, new PrintStream(out), new PrintStream(err)); +- try +- { +- System.out.println("Simple Normal Message"); +- System.err.println("Simple Error Message"); +- } +- finally +- { +- tio.close(); +- } +- tio.stop(); +- String normal = out.toString().trim(); +- //String error = err.toString().trim(); +- assertEquals("Simple Normal Message", normal); +- //assertEquals("Simple Error Message", error ); +- System.out.println("Goodbye World"); +- } +-} diff --git a/SOURCES/felix-gogo-runtime-dictionary.patch b/SOURCES/felix-gogo-runtime-dictionary.patch new file mode 100644 index 0000000..8ede2a2 --- /dev/null +++ b/SOURCES/felix-gogo-runtime-dictionary.patch @@ -0,0 +1,21 @@ +diff --git a/src/main/java/org/apache/felix/gogo/runtime/activator/EventAdminListener.java b/src/main/java/org/apache/felix/gogo/runtime/activator/EventAdminListener.java +index 2368ce1..dab9269 100644 +--- a/src/main/java/org/apache/felix/gogo/runtime/activator/EventAdminListener.java ++++ b/src/main/java/org/apache/felix/gogo/runtime/activator/EventAdminListener.java +@@ -19,6 +19,7 @@ + package org.apache.felix.gogo.runtime.activator; + + import java.util.Properties; ++import java.util.Dictionary; + + import org.apache.felix.gogo.api.CommandSessionListener; + import org.apache.felix.service.command.CommandSession; +@@ -45,7 +46,7 @@ public class EventAdminListener implements CommandSessionListener + if (admin != null) { + Properties props = new Properties(); + props.setProperty("command", command.toString()); +- Event event = new Event("org/apache/felix/service/command/EXECUTING", props); ++ Event event = new Event("org/apache/felix/service/command/EXECUTING", (Dictionary)props); + admin.postEvent(event); + } + } diff --git a/SOURCES/felix-gogo-runtime-parent.patch b/SOURCES/felix-gogo-runtime-parent.patch new file mode 100644 index 0000000..f8b0bfd --- /dev/null +++ b/SOURCES/felix-gogo-runtime-parent.patch @@ -0,0 +1,12 @@ +diff --git a/pom.xml b/pom.xml +index d467d41..5dd4bbb 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -21,7 +21,6 @@ + org.apache.felix + gogo-parent + 0.6.0 +- ../gogo-parent/pom.xml + + 4.0.0 + bundle diff --git a/SPECS/felix-gogo-runtime.spec b/SPECS/felix-gogo-runtime.spec new file mode 100644 index 0000000..c5ca6e5 --- /dev/null +++ b/SPECS/felix-gogo-runtime.spec @@ -0,0 +1,121 @@ +%global project felix +%global bundle org.apache.felix.gogo.runtime + +%{!?scl:%global pkg_name %{name}} +%{?scl:%scl_package %{project}-gogo-runtime} +%{!?maven_scl:%global maven_scl_prefix %{nil}} + +Name: %{?scl_prefix}%{project}-gogo-runtime +Version: 0.10.0 +Release: 12%{?dist} +Summary: Community OSGi R4 Service Platform Implementation - Basic Commands +License: ASL 2.0 +URL: http://felix.apache.org/site/apache-felix-gogo.html + +Source0: http://www.mirrorservice.org/sites/ftp.apache.org//felix/org.apache.felix.gogo.runtime-0.10.0-project.tar.gz + +# Typecast an Event constructor call with java.util.Properties to +# java.util.Dictionary because the call to the constructor with Properties +# was ambiguous. +Patch1: %{pkg_name}-dictionary.patch +# Changed path to DEPENDENCIES, LICENSE and NOTICE from META-INF to root dir +Patch2: %{pkg_name}-bundle-resources.patch +# Removed failing thread IO test +Patch3: %{pkg_name}-deleted-io-test.patch +# Removed relativePath to parent pom +Patch4: %{pkg_name}-parent.patch + +BuildArch: noarch + +BuildRequires: %{maven_scl_prefix}maven-local +BuildRequires: %{maven_scl_prefix}felix-osgi-core +BuildRequires: %{maven_scl_prefix}felix-osgi-compendium +BuildRequires: %{?scl_prefix}felix-gogo-parent +BuildRequires: %{maven_scl_prefix}junit + +%{?scl:BuildRequires: %{?scl_prefix}build} + +%{?scl:Requires: %scl_runtime} + +%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 +Summary: Javadoc for %{pkg_name} + +%description javadoc +This package contains the API documentation for %{pkg_name}. + +%prep +%setup -q -n %{bundle}-%{version} +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 + +%{?scl:scl enable %{scl} - << "EOF"} +%mvn_file : %{project}/%{pkg_name} +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - << "EOF"} +%mvn_build +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl} - << "EOF"} +%mvn_install +%{?scl:EOF} + + +%files -f .mfiles +%dir %{_javadir}/%{project} +%doc DEPENDENCIES LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%doc LICENSE NOTICE + +%changelog +* Fri May 16 2014 Roland Grunberg - 0.10.0-12 +- Make changes to build on DTS 3.0. + +* Tue Mar 04 2014 Stanislav Ochotnicky - 0.10.0-11 +- Use Requires: java-headless rebuild (#1067528) + +* Tue Aug 06 2013 Michal Srb - 0.10.0-10 +- Adapt to current guidelines +- Install NOTICE file with javadoc subpackage + +* Sat Aug 03 2013 Fedora Release Engineering - 0.10.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Mar 15 2013 Krzysztof Daniel 0.10.0-8 +- Initial SCLization. + +* Wed Feb 13 2013 Fedora Release Engineering - 0.10.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 0.10.0-6 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Thu Jul 19 2012 Fedora Release Engineering - 0.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jan 18 2012 Tomas Radej - 0.10.0-4 +- Changed jar path + +* Fri Jan 13 2012 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Dec 16 2011 Tomas Radej - 0.10.0-2 +- Repackaged, minor changes + +* Mon Nov 07 2011 Tomas Radej - 0.10.0-1 +- Initial packaging