[RPM (6.0)] [DIST generic] hibernate-search-3.1.0-2.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : hibernate-search             Relocations: (not relocatable)
Version     : 3.1.0                             Vendor: JPackage Project
Release     : 2.jpp6                        Build Date: Sat 07 Jul 2012 07:30:25 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Database                      Source RPM: (none)
Size        : 26614601                         License: LGPLv2+
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://annotations.hibernate.org/
Summary     : Relational persistence and query service
Description :
Hibernate Search.

---------------
Ralph Apel <[email protected]>  0:3.1.0-2
- add pom and depmap frag
---------------
hibernate-search.src: W: source-or-patch-not-bzipped hibernate-search-common-build.patch
hibernate-search.src: W: source-or-patch-not-bzipped hibernate-search-build.patch
hibernate-search.src: W: no-signature
hibernate-search.src: W: mixed-use-of-spaces-and-tabs (spaces: line 33, tab: line 35)
hibernate-search.src: W: invalid-license LGPLv2+
1 packages and 0 specfiles checked; 0 errors, 5 warnings.

---------------
Index: hibernate-search.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/hibernate-search/hibernate-search.spec,v
retrieving revision 1.1
diff -u -r1.1 hibernate-search.spec
--- hibernate-search.spec	7 Jul 2012 17:09:54 -0000	1.1
+++ hibernate-search.spec	7 Jul 2012 17:43:02 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2009, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,7 @@
 
 Name:           hibernate-search
 Version:        3.1.0
-Release:	1%{?dist}
+Release:	2%{?dist}
 Epoch:          0
 Summary:        Relational persistence and query service
 License:        LGPLv2+
@@ -40,13 +40,13 @@
 Group:          Database
 Source0:        hibernate-search-3.1.0.tar.gz
 # svn export http://anonsvn.jboss.org/repos/hibernate/search/tags/v3_1_0_GA/ hibernate-search-3.1.0
-
+Source1:        http://repo1.maven.org/maven2/org/hibernate/hibernate-search/3.1.0.GA/hibernate-search-3.1.0.GA.pom
 Patch0:         hibernate-search-build.patch
 Patch1:         hibernate-search-common-build.patch
 
-BuildRequires:  jpackage-utils >= 0:1.7.3
-BuildRequires:  java-devel >= 0:1.5.0
-BuildRequires:  ant >= 0:1.6
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
 BuildRequires:  ant-contrib
 BuildRequires:  ant-junit
 BuildRequires:  antlr
@@ -64,7 +64,7 @@
 BuildRequires:  hsqldb
 BuildRequires:  lucene24
 
-Requires:  java >= 0:1.5.0
+Requires:  java >= 0:1.6.0
 Requires:  hibernate3 >= 0:3.2
 Requires:  hibernate3-annotations
 Requires:  hibernate3-ejb-persistence-3.0-api >= 0:3.2.1
@@ -93,26 +93,6 @@
 %patch1 -b .sav1
 
 %build
-#build-jar-repository -s -p . \
-#hibernate3
-
-#build-jar-repository -s -p lib \
-#antlr \
-#cglib-nodep \
-#commons-collections \
-#commons-logging \
-#dom4j \
-#hibernate3 \
-#hibernate3-ejb-persistence-3.0-api \
-#javassist \
-#jta \
-#lucene \
-
-#mkdir jdbc
-#build-jar-repository -s -p jdbc hsqldb
-
-#failed to compile junit on jdk6
-
 export CLASSPATH=$(build-classpath \
 annotation_1_0_api \
 apache-solr-core \
@@ -138,6 +118,11 @@
   $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
 
+# poms
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-hibernate-search.pom
+%add_to_maven_depmap org.hibernate %{name} %{version}.GA JPP %{name} 
+
 # javadoc
 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr target/hibernate-search/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -146,11 +131,19 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
 %files
 %defattr(0644,root,root,0755)
 %doc lgpl.txt
 %{_javadir}/%{name}.jar
 %{_javadir}/%{name}-%{version}.jar
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(0644,root,root,0755)
@@ -158,6 +151,9 @@
 %{_javadocdir}/%{name}
 
 %changelog
+* Sat Jul 07 2012 Ralph Apel <[email protected]>  0:3.1.0-2
+- add pom and depmap frag
+
 * Sat Jul 07 2012 Ralph Apel <[email protected]>  0:3.1.0-1
 - First JPP-6 release
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.