/[packages]/cauldron/hibernate-jpa-2.0-api/current/SPECS/hibernate-jpa-2.0-api.spec
ViewVC logotype

Diff of /cauldron/hibernate-jpa-2.0-api/current/SPECS/hibernate-jpa-2.0-api.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 330515 by dmorgan, Fri Aug 5 18:12:53 2011 UTC revision 330516 by dmorgan, Thu Dec 13 21:54:34 2012 UTC
# Line 1  Line 1 
1  %global namedreltag .Final  %global namedreltag .Final
2  %global namedversion %{version}%{?namedreltag}  %global namedversion %{version}%{?namedreltag}
3    
4  Name:             hibernate-jpa-2.0-api  Name:             hibernate-jpa-2.0-api
5  Version:          1.0.1  Version:          1.0.1
6  Release:          %mkrel 1  Release:          %mkrel 7
7  Summary:          Java Persistence 2.0 (JSR 317) API  Summary:          Java Persistence 2.0 (JSR 317) API
8    
9  Group:            Development/Java  Group:            Development/Java
10  License:          BSD  License:          EPL and BSD
11  Url:              http://www.hibernate.org/  URL:              http://www.hibernate.org/
12  # svn export http://anonsvn.jboss.org/repos/hibernate/jpa-api/tags/hibernate-jpa-2.0-api-1.0.1.Final  
13  # tar czf hibernate-jpa-2.0-api-1.0.1.Final-src-svn.tar.gz hibernate-jpa-2.0-api-1.0.1.Final  # svn export http://anonsvn.jboss.org/repos/hibernate/jpa-api/tags/hibernate-jpa-2.0-api-1.0.1.Final/ hibernate-jpa-2.0-api-1.0.1.Final
14  Source0:          hibernate-jpa-2.0-api-1.0.1.Final-src-svn.tar.gz  # tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final
15  # remove wagon-webdav extension  Source0:          %{name}-%{namedversion}.tar.gz
16  Patch0:           hibernate-jpa-2.0-api-1.0.1.Final-pom_xml.patch  Patch0:           %{name}-%{namedversion}-encoding.patch
17  BuildRequires:    java-devel  Patch1:           %{name}-%{namedversion}-osgi-manifest.patch
18    
19    BuildArch:        noarch
20    
21    Requires:         java
22    Requires:         jpackage-utils
23    
24  BuildRequires:    jpackage-utils  BuildRequires:    jpackage-utils
25    BuildRequires:    java-devel
26  BuildRequires:    maven  BuildRequires:    maven
27    
28    BuildRequires:    maven-surefire-provider-junit
29  BuildRequires:    maven-compiler-plugin  BuildRequires:    maven-compiler-plugin
30  BuildRequires:    maven-install-plugin  BuildRequires:    maven-install-plugin
31  BuildRequires:    maven-jar-plugin  BuildRequires:    maven-jar-plugin
# Line 22  BuildRequires:    maven-javadoc-plugin Line 33  BuildRequires:    maven-javadoc-plugin
33  BuildRequires:    maven-release-plugin  BuildRequires:    maven-release-plugin
34  BuildRequires:    maven-resources-plugin  BuildRequires:    maven-resources-plugin
35  BuildRequires:    maven-surefire-plugin  BuildRequires:    maven-surefire-plugin
 Requires:         java  
 Requires:         jpackage-utils  
 Requires(post):   jpackage-utils  
 Requires(postun): jpackage-utils  
 BuildArch:        noarch  
36    
37  %description  %description
38  Hibernate definition of the Java Persistence 2.0 (JSR 317) API.  Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
39    
40  %package javadoc  %package javadoc
41  Group:         Development/Java  Summary:        Javadocs for %{name}
42  Summary:       Javadoc for %{name}  Group:          Documentation
43  Requires:      jpackage-utils  Requires:       jpackage-utils
44    
45  %description javadoc  %description javadoc
46  Hibernate JPA 2.0 API.  This package contains the API documentation for %{name}.
   
 This package contains javadoc for %{name}  
47    
48  %prep  %prep
49  %setup -q -n %setup -q -n %{name}-%{namedversion}  %setup -q -n %{name}-%{namedversion}
50  %patch0 -p0  %patch0 -p1
51    %patch1 -p1
52    
53  %build  %build
54  mvn-rpmbuild -e \  mvn-rpmbuild install javadoc:aggregate
   -Dmaven.test.skip=true \  
   install javadoc:aggregate  
55    
56  %install  %install
57  [ %{buildroot} != / ] && rm -rf %{buildroot}  # Fixing wrong-file-end-of-line-encoding
58    sed -i 's/\r//' target/site/apidocs/jdstyle.css
 mkdir -p %{buildroot}%{_javadir}/hibernate  
 install -pm 644 target/hibernate-jpa-2.0-api-%{namedversion}.jar \  
         %{buildroot}%{_javadir}/hibernate/hibernate-jpa-2.0-api.jar  
59    
60  mkdir -p %{buildroot}%{_mavenpomdir}  mkdir -p $RPM_BUILD_ROOT%{_javadir}
61  install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.hibernate-hibernate-jpa-2.0-api.pom  cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
 %add_to_maven_depmap org.hibernate.javax.persistence hibernate-jpa-2.0-api %{namedversion} JPP/hibernate hibernate-jpa-2.0-api  
62    
63  mkdir -p %{buildroot}%{_javadocdir}/hibernate-jpa-2.0-api  mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
64  cp -r target/site/apidocs/* %{buildroot}%{_javadocdir}/hibernate-jpa-2.0-api  cp -rp  target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
65    
66  %post  install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
67  %update_maven_depmap  install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
68    
69  %postun  %add_maven_depmap JPP-%{name}.pom %{name}.jar -a "javax.persistence:persistence-api"
 %update_maven_depmap  
70    
71  %files  %files
 %{_javadir}/hibernate/hibernate-jpa-2.0-api.jar  
72  %{_mavenpomdir}/*  %{_mavenpomdir}/*
73  %{_mavendepmapfragdir}/*  %{_mavendepmapfragdir}/*
74  %doc license.txt readme.txt  %{_javadir}/*
75    %doc license.txt
76    
77  %files javadoc  %files javadoc
78  %{_javadocdir}/hibernate-jpa-2.0-api  %{_javadocdir}/%{name}
79    %doc license.txt
80    

Legend:
Removed from v.330515  
changed lines
  Added in v.330516

  ViewVC Help
Powered by ViewVC 1.1.28