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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 330516 - (hide annotations) (download)
Thu Dec 13 21:54:34 2012 UTC (9 years, 5 months ago) by dmorgan
File size: 2279 byte(s)
Use final tarball
1 gil 122527 %global namedreltag .Final
2     %global namedversion %{version}%{?namedreltag}
3 dmorgan 330516
4 gil 122527 Name: hibernate-jpa-2.0-api
5     Version: 1.0.1
6 dmorgan 330516 Release: %mkrel 7
7 gil 122527 Summary: Java Persistence 2.0 (JSR 317) API
8 dmorgan 330516
9 gil 122527 Group: Development/Java
10 dmorgan 330516 License: EPL and BSD
11     URL: http://www.hibernate.org/
12    
13     # 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     # tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final
15     Source0: %{name}-%{namedversion}.tar.gz
16     Patch0: %{name}-%{namedversion}-encoding.patch
17     Patch1: %{name}-%{namedversion}-osgi-manifest.patch
18    
19     BuildArch: noarch
20    
21     Requires: java
22     Requires: jpackage-utils
23    
24     BuildRequires: jpackage-utils
25 gil 122527 BuildRequires: java-devel
26     BuildRequires: maven
27 dmorgan 330516
28     BuildRequires: maven-surefire-provider-junit
29 gil 122527 BuildRequires: maven-compiler-plugin
30     BuildRequires: maven-install-plugin
31     BuildRequires: maven-jar-plugin
32     BuildRequires: maven-javadoc-plugin
33     BuildRequires: maven-release-plugin
34     BuildRequires: maven-resources-plugin
35     BuildRequires: maven-surefire-plugin
36 gil 122466
37     %description
38     Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
39    
40     %package javadoc
41 dmorgan 330516 Summary: Javadocs for %{name}
42     Group: Documentation
43     Requires: jpackage-utils
44 gil 122466
45     %description javadoc
46 dmorgan 330516 This package contains the API documentation for %{name}.
47 gil 122466
48     %prep
49 dmorgan 330516 %setup -q -n %{name}-%{namedversion}
50     %patch0 -p1
51     %patch1 -p1
52 gil 122466
53     %build
54 dmorgan 330516 mvn-rpmbuild install javadoc:aggregate
55 gil 122466
56     %install
57 dmorgan 330516 # Fixing wrong-file-end-of-line-encoding
58     sed -i 's/\r//' target/site/apidocs/jdstyle.css
59 gil 122466
60 dmorgan 330516 mkdir -p $RPM_BUILD_ROOT%{_javadir}
61     cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
62 gil 122466
63 dmorgan 330516 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
64     cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
65 gil 122466
66 dmorgan 330516 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
67     install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
68 gil 122466
69 dmorgan 330516 %add_maven_depmap JPP-%{name}.pom %{name}.jar -a "javax.persistence:persistence-api"
70 gil 122466
71     %files
72     %{_mavenpomdir}/*
73     %{_mavendepmapfragdir}/*
74 dmorgan 330516 %{_javadir}/*
75     %doc license.txt
76 gil 122466
77     %files javadoc
78 dmorgan 330516 %{_javadocdir}/%{name}
79     %doc license.txt
80 gil 122466

  ViewVC Help
Powered by ViewVC 1.1.28