[hibernate] fix manifest entries
gil
gil at fedoraproject.org
Mon Nov 11 10:44:56 UTC 2013
commit 4fa07d4ea02b3a0a48f400442d10f0d29eae25bf
Author: gil <puntogil at libero.it>
Date: Mon Nov 11 11:45:09 2013 +0100
fix manifest entries
hibernate.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 76 insertions(+), 7 deletions(-)
---
diff --git a/hibernate.spec b/hibernate.spec
index ae5ed40..82ddb0a 100644
--- a/hibernate.spec
+++ b/hibernate.spec
@@ -3,7 +3,7 @@
Name: hibernate
Version: 4.3.0
-Release: 0.3%{namedreltag}%{?dist}
+Release: 0.4%{namedreltag}%{?dist}
Summary: Relational persistence and query service
Group: Development/Libraries
License: LGPLv2+ and ASL 2.0
@@ -279,10 +279,47 @@ pushd hibernate-core
</configuration>
<inherited>true</inherited>"
+%pom_add_plugin org.apache.felix:maven-bundle-plugin . "
+<extensions>true</extensions>
+<configuration>
+ <instructions>
+ <Bundle-Description>hibernate core</Bundle-Description>
+ <Bundle-SymbolicName>org.hibernate.core</Bundle-SymbolicName>
+ <Bundle-Name>hibernate-core</Bundle-Name>
+ <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
+ <Bundle-Version>\${project.version}</Bundle-Version>
+ </instructions>
+</configuration>
+<executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+</executions>"
+
+%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . "
+<configuration>
+ <archive>
+ <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ <manifest>
+ <addClasspath>false</addClasspath>
+ <mainClass>org.hibernate.Version</mainClass>
+ </manifest>
+ <manifestEntries>
+ <Implementation-Url>http://hibernate.org</Implementation-Url>
+ <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
+ <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
+ <Implementation-Version>\${project.version}</Implementation-Version>
+ </manifestEntries>
+ </archive>
+</configuration>"
+
popd
-#osgi maven-plugin
-for m in core c3p0 ehcache entitymanager envers infinispan proxool testing; do
+for m in c3p0 ehcache entitymanager envers infinispan osgi proxool testing; do
%pom_add_plugin org.apache.felix:maven-bundle-plugin hibernate-${m} "
<extensions>true</extensions>
<configuration>
@@ -308,10 +345,6 @@ for m in core c3p0 ehcache entitymanager envers infinispan proxool testing; do
<configuration>
<archive>
<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- <manifest>
- <addClasspath>false</addClasspath>
- <mainClass>org.hibernate.Version</mainClass>
- </manifest>
<manifestEntries>
<Implementation-Url>http://hibernate.org</Implementation-Url>
<Implementation-Vendor>Hibernate.org</Implementation-Vendor>
@@ -323,6 +356,39 @@ for m in core c3p0 ehcache entitymanager envers infinispan proxool testing; do
done
+%pom_add_plugin org.apache.felix:maven-bundle-plugin hibernate-maven-plugin "
+<extensions>true</extensions>
+<configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.hibernate.maven-plugin</Bundle-SymbolicName>
+ <Bundle-Name>hibernate-maven-plugin</Bundle-Name>
+ <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
+ <Bundle-Version>\${project.version}</Bundle-Version>
+ </instructions>
+</configuration>
+<executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+</executions>"
+
+%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin hibernate-maven-plugin "
+<configuration>
+ <archive>
+ <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ <manifestEntries>
+ <Implementation-Url>http://hibernate.org</Implementation-Url>
+ <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
+ <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
+ <Implementation-Version>\${project.version}</Implementation-Version>
+ </manifestEntries>
+ </archive>
+</configuration>"
+
# Add missing deps
%pom_add_dep "com.fasterxml:classmate" hibernate-core/pom.xml
%pom_add_dep "org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec" hibernate-core/pom.xml
@@ -384,6 +450,9 @@ sed -i "s|org.infinispan.util.FileLookupFactory|org.infinispan.commons.util.File
%doc lgpl.txt LICENSE-2.0.txt
%changelog
+* Mon Nov 11 2013 gil cattaneo <puntogil at libero.it> 4.3.0-0.4.Beta4
+- fix manifest entries
+
* Mon Nov 11 2013 Stanislav Ochotnicky <sochotnicky at redhat.com> - 4.3.0-0.3.Beta4
- Expand variables in manifest properly (#1028931)
More information about the scm-commits
mailing list