[gemini-blueprint] Initial import (#866239).

gil gil at fedoraproject.org
Tue Apr 23 17:51:13 UTC 2013


commit 963f8e7427a2458075ec02c1bcfa5264f8c50ca9
Author: gil <puntogil at libero.it>
Date:   Tue Apr 23 19:51:01 2013 +0200

    Initial import (#866239).

 .gitignore                                         |    1 +
 ...lueprint-1.0.2.RELEASE-add-osgi-manifests.patch |  249 ++++++++++++++++++++
 gemini-blueprint.spec                              |  176 ++++++++++++++
 sources                                            |    1 +
 4 files changed, 427 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3b8c8be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gemini-blueprint-1.0.2.RELEASE-src-git.tar.xz
diff --git a/gemini-blueprint-1.0.2.RELEASE-add-osgi-manifests.patch b/gemini-blueprint-1.0.2.RELEASE-add-osgi-manifests.patch
new file mode 100644
index 0000000..2e9ca55
--- /dev/null
+++ b/gemini-blueprint-1.0.2.RELEASE-add-osgi-manifests.patch
@@ -0,0 +1,249 @@
+diff -Nru gemini-blueprint-1.0.2.RELEASE/core/pom.xml gemini-blueprint-1.0.2.RELEASE-gil/core/pom.xml
+--- gemini-blueprint-1.0.2.RELEASE/core/pom.xml	2012-08-31 11:08:41.000000000 +0200
++++ gemini-blueprint-1.0.2.RELEASE-gil/core/pom.xml	2012-10-14 20:58:18.672283600 +0200
+@@ -81,4 +81,57 @@
+         </dependency>
+     </dependencies>
+ 
++  <build>
++    <plugins>
++      <plugin>
++        <groupId>org.apache.felix</groupId>
++        <artifactId>maven-bundle-plugin</artifactId>
++        <configuration>
++          <instructions>
++            <Bundle-Name>${project.artifactId}</Bundle-Name>
++            <Bundle-Description>${project.description}</Bundle-Description>
++            <Bundle-DocURL>http://www.eclipse.org/gemini/blueprint/</Bundle-DocURL>
++            <Bundle-License>http://www.opensource.org/licenses/eclipse-1.0.php, http://www.opensource.org/licenses/apache2.0.php</Bundle-License>
++            <Bundle-Name>${project.name}</Bundle-Name>
++            <Bundle-SymbolicName>${spring.osgi.symbolic.name}</Bundle-SymbolicName>
++            <Bundle-Vendor>Eclipse Foundation</Bundle-Vendor>
++            <Bundle-Version>${project.version}</Bundle-Version>
++            <Implementation-Title>Eclipse Gemini Blueprint</Implementation-Title>
++            <Implementation-Version>${project.version}</Implementation-Version>
++            <Implementation-Vendor>Eclipse Foundation</Implementation-Vendor>
++            <Implementation-Vendor-Id>org.eclipse.gemini.blueprint</Implementation-Vendor-Id>
++            <Gemini-Blueprint-Version>${project.version}</Gemini-Blueprint-Version>
++            <Spring-Version>${spring.maven.artifact.version}</Spring-Version>
++            <Build-Jdk>${spring.maven.artifact.version}</Build-Jdk>
++            <Build-Plan>${env.buildPlan}</Build-Plan>
++            <Build-Number>${env.buildNumber}</Build-Number>
++            <SVN-Revision>${env.svnRevision}</SVN-Revision>
++            <Unversioned-Imports>*</Unversioned-Imports>
++          </instructions>
++        </configuration>
++        <executions>
++          <execution>
++            <id>bundle-manifest</id>
++            <phase>process-classes</phase>
++            <goals>
++              <goal>manifest</goal>
++            </goals>
++          </execution>
++        </executions>
++      </plugin>
++  
++      <plugin>
++        <groupId>org.apache.maven.plugins</groupId>
++        <artifactId>maven-jar-plugin</artifactId>
++        <configuration>
++          <archive>
++            <!-- add the generated manifest to the archive -->
++            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
++          </archive>
++        </configuration>
++      </plugin>
++
++    </plugins>
++  </build>
++
+ </project>
+\ Manca newline alla fine del file
+diff -Nru gemini-blueprint-1.0.2.RELEASE/extender/pom.xml gemini-blueprint-1.0.2.RELEASE-gil/extender/pom.xml
+--- gemini-blueprint-1.0.2.RELEASE/extender/pom.xml	2012-08-31 11:08:41.000000000 +0200
++++ gemini-blueprint-1.0.2.RELEASE-gil/extender/pom.xml	2012-10-14 20:58:53.432353607 +0200
+@@ -54,4 +54,57 @@
+         </dependency>
+     </dependencies>
+ 
++  <build>
++    <plugins>
++      <plugin>
++        <groupId>org.apache.felix</groupId>
++        <artifactId>maven-bundle-plugin</artifactId>
++        <configuration>
++          <instructions>
++            <Bundle-Name>${project.artifactId}</Bundle-Name>
++            <Bundle-Description>${project.description}</Bundle-Description>
++            <Bundle-DocURL>http://www.eclipse.org/gemini/blueprint/</Bundle-DocURL>
++            <Bundle-License>http://www.opensource.org/licenses/eclipse-1.0.php, http://www.opensource.org/licenses/apache2.0.php</Bundle-License>
++            <Bundle-Name>${project.name}</Bundle-Name>
++            <Bundle-SymbolicName>${spring.osgi.symbolic.name}</Bundle-SymbolicName>
++            <Bundle-Vendor>Eclipse Foundation</Bundle-Vendor>
++            <Bundle-Version>${project.version}</Bundle-Version>
++            <Implementation-Title>Eclipse Gemini Blueprint</Implementation-Title>
++            <Implementation-Version>${project.version}</Implementation-Version>
++            <Implementation-Vendor>Eclipse Foundation</Implementation-Vendor>
++            <Implementation-Vendor-Id>org.eclipse.gemini.blueprint</Implementation-Vendor-Id>
++            <Gemini-Blueprint-Version>${project.version}</Gemini-Blueprint-Version>
++            <Spring-Version>${spring.maven.artifact.version}</Spring-Version>
++            <Build-Jdk>${spring.maven.artifact.version}</Build-Jdk>
++            <Build-Plan>${env.buildPlan}</Build-Plan>
++            <Build-Number>${env.buildNumber}</Build-Number>
++            <SVN-Revision>${env.svnRevision}</SVN-Revision>
++            <Unversioned-Imports>*</Unversioned-Imports>
++          </instructions>
++        </configuration>
++        <executions>
++          <execution>
++            <id>bundle-manifest</id>
++            <phase>process-classes</phase>
++            <goals>
++              <goal>manifest</goal>
++            </goals>
++          </execution>
++        </executions>
++      </plugin>
++  
++      <plugin>
++        <groupId>org.apache.maven.plugins</groupId>
++        <artifactId>maven-jar-plugin</artifactId>
++        <configuration>
++          <archive>
++            <!-- add the generated manifest to the archive -->
++            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
++          </archive>
++        </configuration>
++      </plugin>
++
++    </plugins>
++  </build>
++
+ </project>
+\ Manca newline alla fine del file
+diff -Nru gemini-blueprint-1.0.2.RELEASE/io/pom.xml gemini-blueprint-1.0.2.RELEASE-gil/io/pom.xml
+--- gemini-blueprint-1.0.2.RELEASE/io/pom.xml	2012-08-31 11:08:41.000000000 +0200
++++ gemini-blueprint-1.0.2.RELEASE-gil/io/pom.xml	2012-10-14 21:00:40.632425764 +0200
+@@ -39,4 +39,58 @@
+             <scope>provided</scope>
+         </dependency>
+     </dependencies>
++
++  <build>
++    <plugins>
++      <plugin>
++        <groupId>org.apache.felix</groupId>
++        <artifactId>maven-bundle-plugin</artifactId>
++        <configuration>
++          <instructions>
++            <Bundle-Name>${project.artifactId}</Bundle-Name>
++            <Bundle-Description>${project.description}</Bundle-Description>
++            <Bundle-DocURL>http://www.eclipse.org/gemini/blueprint/</Bundle-DocURL>
++            <Bundle-License>http://www.opensource.org/licenses/eclipse-1.0.php, http://www.opensource.org/licenses/apache2.0.php</Bundle-License>
++            <Bundle-Name>${project.name}</Bundle-Name>
++            <Bundle-SymbolicName>${spring.osgi.symbolic.name}</Bundle-SymbolicName>
++            <Bundle-Vendor>Eclipse Foundation</Bundle-Vendor>
++            <Bundle-Version>${project.version}</Bundle-Version>
++            <Implementation-Title>Eclipse Gemini Blueprint</Implementation-Title>
++            <Implementation-Version>${project.version}</Implementation-Version>
++            <Implementation-Vendor>Eclipse Foundation</Implementation-Vendor>
++            <Implementation-Vendor-Id>org.eclipse.gemini.blueprint</Implementation-Vendor-Id>
++            <Gemini-Blueprint-Version>${project.version}</Gemini-Blueprint-Version>
++            <Spring-Version>${spring.maven.artifact.version}</Spring-Version>
++            <Build-Jdk>${spring.maven.artifact.version}</Build-Jdk>
++            <Build-Plan>${env.buildPlan}</Build-Plan>
++            <Build-Number>${env.buildNumber}</Build-Number>
++            <SVN-Revision>${env.svnRevision}</SVN-Revision>
++            <Unversioned-Imports>*</Unversioned-Imports>
++          </instructions>
++        </configuration>
++        <executions>
++          <execution>
++            <id>bundle-manifest</id>
++            <phase>process-classes</phase>
++            <goals>
++              <goal>manifest</goal>
++            </goals>
++          </execution>
++        </executions>
++      </plugin>
++  
++      <plugin>
++        <groupId>org.apache.maven.plugins</groupId>
++        <artifactId>maven-jar-plugin</artifactId>
++        <configuration>
++          <archive>
++            <!-- add the generated manifest to the archive -->
++            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
++          </archive>
++        </configuration>
++      </plugin>
++
++    </plugins>
++  </build>
++
+ </project>
+diff -Nru gemini-blueprint-1.0.2.RELEASE/mock/pom.xml gemini-blueprint-1.0.2.RELEASE-gil/mock/pom.xml
+--- gemini-blueprint-1.0.2.RELEASE/mock/pom.xml	2012-08-31 11:08:41.000000000 +0200
++++ gemini-blueprint-1.0.2.RELEASE-gil/mock/pom.xml	2012-10-14 21:01:04.841752585 +0200
+@@ -23,4 +23,58 @@
+         <bundlor.enabled>true</bundlor.enabled>
+     </properties>
+ 
++
++  <build>
++    <plugins>
++      <plugin>
++        <groupId>org.apache.felix</groupId>
++        <artifactId>maven-bundle-plugin</artifactId>
++        <configuration>
++          <instructions>
++            <Bundle-Name>${project.artifactId}</Bundle-Name>
++            <Bundle-Description>${project.description}</Bundle-Description>
++            <Bundle-DocURL>http://www.eclipse.org/gemini/blueprint/</Bundle-DocURL>
++            <Bundle-License>http://www.opensource.org/licenses/eclipse-1.0.php, http://www.opensource.org/licenses/apache2.0.php</Bundle-License>
++            <Bundle-Name>${project.name}</Bundle-Name>
++            <Bundle-SymbolicName>${spring.osgi.symbolic.name}</Bundle-SymbolicName>
++            <Bundle-Vendor>Eclipse Foundation</Bundle-Vendor>
++            <Bundle-Version>${project.version}</Bundle-Version>
++            <Implementation-Title>Eclipse Gemini Blueprint</Implementation-Title>
++            <Implementation-Version>${project.version}</Implementation-Version>
++            <Implementation-Vendor>Eclipse Foundation</Implementation-Vendor>
++            <Implementation-Vendor-Id>org.eclipse.gemini.blueprint</Implementation-Vendor-Id>
++            <Gemini-Blueprint-Version>${project.version}</Gemini-Blueprint-Version>
++            <Spring-Version>${spring.maven.artifact.version}</Spring-Version>
++            <Build-Jdk>${spring.maven.artifact.version}</Build-Jdk>
++            <Build-Plan>${env.buildPlan}</Build-Plan>
++            <Build-Number>${env.buildNumber}</Build-Number>
++            <SVN-Revision>${env.svnRevision}</SVN-Revision>
++            <Unversioned-Imports>*</Unversioned-Imports>
++          </instructions>
++        </configuration>
++        <executions>
++          <execution>
++            <id>bundle-manifest</id>
++            <phase>process-classes</phase>
++            <goals>
++              <goal>manifest</goal>
++            </goals>
++          </execution>
++        </executions>
++      </plugin>
++  
++      <plugin>
++        <groupId>org.apache.maven.plugins</groupId>
++        <artifactId>maven-jar-plugin</artifactId>
++        <configuration>
++          <archive>
++            <!-- add the generated manifest to the archive -->
++            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
++          </archive>
++        </configuration>
++      </plugin>
++
++    </plugins>
++  </build>
++
+ </project>
+\ Manca newline alla fine del file
diff --git a/gemini-blueprint.spec b/gemini-blueprint.spec
new file mode 100644
index 0000000..c5f0a84
--- /dev/null
+++ b/gemini-blueprint.spec
@@ -0,0 +1,176 @@
+%global namedreltag .RELEASE
+%global namedversion %{version}%{?namedreltag}
+Name:          gemini-blueprint
+Version:       1.0.2
+Release:       2%{?dist}
+Summary:       Reference Implementation of the OSGi Blueprint Service
+Group:         Development/Libraries
+# BSD file - test-support/src/main/java/org/eclipse/gemini/blueprint/test/internal/util/DependencyVisitor.java,
+License:       ASL 2.0 and BSD and EPL
+URL:           http://www.eclipse.org/gemini/
+# https://github.com/glyn/Gemini-Blueprint
+# git clone git://github.com/eclipse/gemini.blueprint gemini-blueprint-1.0.2.RELEASE
+# (cd gemini-blueprint-1.0.2.RELEASE/ && git archive --format=tar --prefix=gemini-blueprint-1.0.2.RELEASE/ 1.0.2.RELEASE | xz > ../gemini-blueprint-1.0.2.RELEASE-src-git.tar.xz)
+Source0:       %{name}-%{namedversion}-src-git.tar.xz
+# add maven-{bundle,jar}-plugin configuration
+Patch0:        %{name}-%{namedversion}-add-osgi-manifests.patch
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: aopalliance
+BuildRequires: felix-osgi-compendium
+BuildRequires: felix-osgi-core
+BuildRequires: log4j
+BuildRequires: slf4j
+BuildRequires: springframework
+BuildRequires: springframework-aop
+BuildRequires: springframework-beans
+BuildRequires: springframework-context
+BuildRequires: springframework-context-support
+
+BuildRequires: maven-local
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+# test deps
+BuildRequires: easymock
+BuildRequires: junit
+BuildRequires: multithreadedtc
+# BuildRequires: springframework-test
+
+Requires:      aopalliance
+Requires:      felix-osgi-compendium
+Requires:      felix-osgi-core
+Requires:      log4j
+Requires:      slf4j
+Requires:      springframework
+Requires:      springframework-aop
+Requires:      springframework-beans
+Requires:      springframework-context
+Requires:      springframework-context-support
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+Eclipse Gemini Blueprint project makes it
+easy to build Java applications that run
+in an OSGi framework. 
+By using Gemini Blueprint, applications
+benefit from using a better separation of
+modules, the ability to dynamically add,
+remove, and update modules in a running system,
+the ability to deploy multiple versions of a
+module simultaneously (and have clients
+automatically bind to the appropriate one),
+and a dynamic service model.
+
+NOTE: Eclipse Gemini Blueprint can be considered the
+successor of Spring DM (OSGi) 2.x (http://www.springsource.org/osgi).
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+%patch0 -p1
+%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions" "<Bundle-Activator>org.eclipse.gemini.blueprint.extender.internal.boot.ChainActivator</Bundle-Activator>" extender
+
+
+find . -name "*.class" -delete
+find . -name "*.jar" -type f -delete
+
+%pom_remove_plugin com.springsource.bundlor:com.springsource.bundlor.maven
+%pom_remove_plugin :maven-clover2-plugin
+%pom_remove_plugin :maven-antrun-plugin
+%pom_remove_plugin :findbugs-maven-plugin
+%pom_remove_plugin :jdepend-maven-plugin
+
+# remove org.springframework.build.aws.maven
+%pom_xpath_remove pom:extensions
+# remove clover knopflerfish profiles (todo remove also eclipse/equinox and org.apache.felix profiles)
+%pom_xpath_remove pom:profiles
+
+sed -i "s|<groupId>org.aopalliance|<groupId>aopalliance|" pom.xml {core,extender}/pom.xml
+sed -i "s|<artifactId>com.springsource.org.aopalliance|<artifactId>aopalliance|" pom.xml {core,extender}/pom.xml
+
+sed -i "s|<groupId>org.junit</groupId>|<groupId>junit</groupId>|" pom.xml
+sed -i "s|<artifactId>com.springsource.org.junit</artifactId>|<artifactId>junit</artifactId>|" pom.xml
+
+# test deps
+%pom_remove_dep log4j:log4j
+# build deps
+sed -i "s|<groupId>org.apache.log4j</groupId>|<groupId>log4j</groupId>|" pom.xml
+sed -i "s|<artifactId>com.springsource.org.apache.log4j</artifactId>|<artifactId>log4j</artifactId>|" pom.xml
+
+sed -i "s|<groupId>multithreadedtc</groupId>|<groupId>edu.umd.cs.mtc</groupId>|" core/pom.xml
+
+%pom_remove_dep org.springframework:spring-test
+%pom_remove_dep org.springframework:spring-test core
+
+# require org.springframework:org.springframework.test*
+rm -r core/src/test/java/org/eclipse/gemini/blueprint/internal/util/BeanFactoryUtilsTest.java \
+  core/src/test/java/org/eclipse/gemini/blueprint/DictionaryEditorTest.java
+
+# TODO require:
+# org.springframework spring-test
+# org.knopflerfish framework
+# org.apache.felix org.apache.felix.main
+# org.eclipse.osgi org.eclipse.osgi
+%pom_disable_module test-support
+%pom_remove_dep org.eclipse.gemini.blueprint:gemini-blueprint-test
+
+# Fix CRLF
+sed 's/\r//' -i changelog.txt license-apache.txt readme-building.txt readme.txt
+
+%build
+# some test fails for unavailable build deps*
+mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 -Dmaven.test.failure.ignore=true install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml  %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%add_maven_depmap JPP.%{name}-%{name}.pom
+
+mkdir -p %{buildroot}%{_javadir}/%{name}
+# TODO test-support
+for m in core extender mock io; do
+    install -m 644 ${m}/target/%{name}-${m}-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/%{name}-${m}.jar
+    install -pm 644 ${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom
+%add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar
+done
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/%{name}-*.jar
+%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%{_mavenpomdir}/JPP.%{name}-%{name}-*.pom
+%{_mavendepmapfragdir}/%{name}
+%doc about.html changelog.txt epl-v10.html license-apache.txt notice.html readme-building.txt readme.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc epl-v10.html license-apache.txt notice.html
+
+%changelog
+* Tue Apr 23 2013 gil cattaneo <puntogil at libero.it> 1.0.2-2
+- fix License field
+
+* Sun Oct 14 2012 gil cattaneo <puntogil at libero.it> 1.0.2-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..089e775 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0489105eb3afc45ae2ccc2ec55c5312a  gemini-blueprint-1.0.2.RELEASE-src-git.tar.xz


More information about the scm-commits mailing list