/[packages]/cauldron/xbean/current/SPECS/xbean.spec
ViewVC logotype

Contents of /cauldron/xbean/current/SPECS/xbean.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91598 - (show annotations) (download)
Tue Apr 26 06:36:26 2011 UTC (13 years ago) by dmorgan
File size: 3952 byte(s)
imported package xbean
1 Name: xbean
2 Version: 3.7
3 BuildArch: noarch
4
5 Release: %mkrel 6
6 Summary: Java plugin based web server
7
8 Group: Development/Java
9 License: ASL 2.0
10 URL: http://geronimo.apache.org/xbean/
11
12 # unfortunately no source/binary releases are being made lately, just
13 # tags in repos and binary releases in maven repositories
14 # svn export http://svn.apache.org/repos/asf/geronimo/xbean/tags/xbean-3.7
15 # tar caf xbean-3.7.tar.xz xbean-3.7
16 Source0: xbean-%{version}.tar.xz
17 Source1: xbean.depmap
18
19 Patch0: pom-%{version}.patch
20
21 BuildRequires: java-devel
22 BuildRequires: apache-commons-beanutils
23 BuildRequires: apache-commons-logging
24 BuildRequires: mx4j
25 BuildRequires: objectweb-asm
26 BuildRequires: ant
27 BuildRequires: qdox
28 BuildRequires: slf4j
29 BuildRequires: felix-osgi-core >= 1.4.0
30 BuildRequires: maven-plugin-bundle
31 BuildRequires: maven-antrun-plugin
32 BuildRequires: maven-compiler-plugin
33 BuildRequires: maven-idea-plugin
34 BuildRequires: maven-install-plugin
35 BuildRequires: maven-javadoc-plugin
36 BuildRequires: maven-resources-plugin
37 BuildRequires: maven-surefire-maven-plugin
38 BuildRequires: maven-site-plugin
39 BuildRequires: maven-shade-plugin
40
41 Requires: java
42 Requires: objectweb-asm
43 Requires: apache-commons-logging
44
45
46 %description
47 The goal of XBean project is to create a plugin based server
48 analogous to Eclipse being a plugin based IDE. XBean will be able to
49 discover, download and install server plugins from an Internet based
50 repository. In addition, we include support for multiple IoC systems,
51 support for running with no IoC system, JMX without JMX code,
52 lifecycle and class loader management, and a rock solid Spring
53 integration.
54
55 %package javadoc
56 Summary: API documentation for %{name}
57 Group: Development/Java
58 Requires: jpackage-utils
59
60 %description javadoc
61 %{summary}.
62
63 %prep
64 %setup -q
65 # build failing on this due to doxia-sitetools problems
66 rm src/site/site.xml
67
68 # removes dependency on springframework and prevents building of
69 # modules depending on it. If other modules are required,
70 # springframework will have to be brought in first
71 %patch0 -p1
72
73 # Fix dependency on xbean-asm-shaded to original objectweb-asm
74 sed -i 's/org.apache.xbean.asm/org.objectweb.asm/' \
75 xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
76
77 %build
78 export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
79 mvn-jpp -e \
80 -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
81 -Dmaven2.jpp.depmap.file="%{SOURCE1}" \
82 install javadoc:aggregate
83
84
85 %install
86 # for every module we want to be built
87 for sub in reflect naming classpath; do
88 # install jar
89 install -Dpm 644 %{name}-${sub}/target/%{name}-${sub}-%{version}.jar \
90 $RPM_BUILD_ROOT/%{_javadir}/xbean/%{name}-${sub}.jar;
91
92 # intall pom
93 install -Dpm 644 %{name}-${sub}/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-%{name}-${sub}.pom
94
95 # maven depmap
96 %add_to_maven_depmap org.apache.xbean %{name}-${sub} %{version} JPP/%{name} %{name}-${sub}
97 done
98
99 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
100 cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
101
102 # parent pom
103 install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-main.pom
104 %add_to_maven_depmap org.apache.xbean %{name} %{version} JPP/%{name} main
105
106 # UGLY hack to fix maven without 2 rebuilds
107 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/maven/lib/ext
108
109
110 %pre javadoc
111 # workaround for rpm bug, can be removed in F-17
112 [ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
113 rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
114
115 %post
116 %update_maven_depmap
117
118 %postun
119 %update_maven_depmap
120
121 %files
122 %defattr(-,root,root,-)
123 %doc LICENSE NOTICE
124 %{_mavenpomdir}/*.pom
125 %{_mavendepmapfragdir}/%{name}
126 %{_javadir}/%{name}
127 %{_datadir}/maven/lib/ext
128
129 %files javadoc
130 %defattr(-,root,root,-)
131 %doc LICENSE
132 %{_javadocdir}/%{name}
133

  ViewVC Help
Powered by ViewVC 1.1.30