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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 130981 - (show annotations) (download)
Sun Jul 31 17:26:40 2011 UTC (10 years, 9 months ago) by gil
File size: 2208 byte(s)
imported package jboss-interceptors-1.1-api
1 %global namedreltag .Final
2 %global namedversion %{version}%{?namedreltag}
3 Name: jboss-interceptors-1.1-api
4 Version: 1.0.0
5 Release: %mkrel 0
6 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 Group: Documentation
33 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 %install
44 [ %{buildroot} != / ] && rm -rf %{buildroot}
45 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/jboss
46 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
47
48 # JAR
49 install -pm 644 target/jboss-interceptors-api_1.1_spec-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/jboss/%{name}.jar
50
51 # POM
52 install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.jboss-%{name}.pom
53 %add_maven_depmap JPP.jboss-%{name}.pom jboss/%{name}.jar
54
55 # APIDOCS
56 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
57 cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}
58
59 %clean
60 [ %{buildroot} != / ] && rm -rf %{buildroot}
61
62 %post
63 %update_maven_depmap
64
65 %postun
66 %update_maven_depmap
67
68 %files
69 %{_javadir}/jboss/%{name}.jar
70 %{_mavenpomdir}/*
71 %{_mavendepmapfragdir}/*
72
73 %files javadoc
74 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28