/[packages]/cauldron/jboss-interceptors-1.1-api/current/SPECS/jboss-interceptors-1.1-api.spec
ViewVC logotype

Annotation of /cauldron/jboss-interceptors-1.1-api/current/SPECS/jboss-interceptors-1.1-api.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 131998 - (hide annotations) (download)
Fri Aug 5 21:42:05 2011 UTC (10 years, 9 months ago) by dmorgan
File size: 2160 byte(s)
Clean spec file
1 gil 130981 %global namedreltag .Final
2     %global namedversion %{version}%{?namedreltag}
3     Name: jboss-interceptors-1.1-api
4     Version: 1.0.0
5 dmorgan 131998 Release: %mkrel 1
6 gil 130981 Summary: Interceptors 1.1 API
7     Group: Development/Java
8     License: LGPLv2+
9     Url: http://www.jboss.org/
10     # svn export http://anonsvn.jboss.org/repos/jbossas/projects/specs/tags/jboss-interceptors-api_1.1_spec-1.0.0.Final
11     # tar czf jboss-interceptors-api_1.1_spec-1.0.0.Final-src-svn.tar.gz jboss-interceptors-api_1.1_spec-1.0.0.Final
12     Source0: jboss-interceptors-api_1.1_spec-1.0.0.Final-src-svn.tar.gz
13     BuildRequires: java-devel
14     BuildRequires: jboss-specs-parent
15     BuildRequires: jpackage-utils
16     BuildRequires: maven
17     BuildRequires: maven-compiler-plugin
18     BuildRequires: maven-install-plugin
19     BuildRequires: maven-jar-plugin
20     BuildRequires: maven-javadoc-plugin
21     Requires: jpackage-utils
22     Requires(post): jpackage-utils
23     Requires(postun): jpackage-utils
24     Requires: java
25     BuildArch: noarch
26    
27     %description
28     The JavaEE Interceptors 1.1 API classes from JSR 318.
29    
30     %package javadoc
31     Summary: Javadocs for %{name}
32 dmorgan 131998 Group: Development/Java
33 gil 130981 Requires: jpackage-utils
34    
35     %description javadoc
36     This package contains the API documentation for %{name}.
37    
38     %prep
39     %setup -q -n jboss-interceptors-api_1.1_spec-%{namedversion}
40    
41     %build
42     mvn-rpmbuild install javadoc:aggregate
43 dmorgan 131998
44 gil 130981 %install
45     [ %{buildroot} != / ] && rm -rf %{buildroot}
46     install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/jboss
47     install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
48    
49     # JAR
50     install -pm 644 target/jboss-interceptors-api_1.1_spec-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/jboss/%{name}.jar
51    
52     # POM
53     install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.jboss-%{name}.pom
54     %add_maven_depmap JPP.jboss-%{name}.pom jboss/%{name}.jar
55    
56     # APIDOCS
57     install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
58     cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}
59    
60     %post
61     %update_maven_depmap
62    
63     %postun
64     %update_maven_depmap
65    
66     %files
67     %{_javadir}/jboss/%{name}.jar
68     %{_mavenpomdir}/*
69     %{_mavendepmapfragdir}/*
70    
71     %files javadoc
72 dmorgan 131998 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28