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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48028 - (show annotations) (download)
Sun Feb 6 21:13:52 2011 UTC (13 years, 2 months ago) by spuhler
File size: 7432 byte(s)
removed buildroot definition from .spec

1 # Copyright (c) 2000-2005, JPackage Project
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the
13 # distribution.
14 # 3. Neither the name of the JPackage Project nor the names of its
15 # contributors may be used to endorse or promote products derived
16 # from this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 %define section free
32 %define gcj_support 1
33
34 Summary: JSF Implementation
35 Name: myfaces
36 Version: 1.1.0
37 Release: %mkrel 3.4.5
38 Epoch: 0
39 License: Apache License
40 URL: http://myfaces.apache.org/
41 Group: Development/Java
42 #Vendor: JPackage Project
43 #Distribution: JPackage
44 Source0: myfaces-1.1.0-src.tar.bz2
45 # svn export https://svn.apache.org/repos/asf/myfaces/release/tags/1_1_0
46
47 Patch0: myfaces-1.1.0-build_xml.patch
48 BuildRequires: ant >= 0:1.6, ant-junit >= 0:1.6, ant-trax >= 0:1.6, xalan-j2, java-rpmbuild >= 0:1.5
49 BuildRequires: junit
50 #BuildRequires: asm
51 #BuildRequires: cglib
52 BuildRequires: jakarta-commons-beanutils
53 BuildRequires: jakarta-commons-codec
54 BuildRequires: jakarta-commons-collections
55 BuildRequires: jakarta-commons-digester
56 BuildRequires: jakarta-commons-el
57 BuildRequires: jakarta-commons-fileupload
58 BuildRequires: jakarta-commons-logging
59 BuildRequires: jakarta-commons-validator
60 BuildRequires: jsp
61 #BuildRequires: easymock-classextension
62 #BuildRequires: easymock
63 BuildRequires: oro
64 BuildRequires: jakarta-taglibs-standard
65 BuildRequires: portlet-1.0-api
66 BuildRequires: servletapi5
67 BuildRequires: struts
68 #BuildRequires: tlddoc
69 BuildRequires: xdoclet
70 BuildRequires: xjavadoc
71 BuildRequires: xml-commons-jaxp-1.3-apis
72 Requires: jakarta-commons-beanutils
73 Requires: jakarta-commons-codec
74 Requires: jakarta-commons-collections
75 Requires: jakarta-commons-digester
76 Requires: jakarta-commons-el
77 Requires: jakarta-commons-fileupload
78 Requires: jakarta-commons-logging
79 Requires: jakarta-commons-validator
80 Requires: jsp
81 Requires: portlet-1.0-api
82 Requires: servletapi5
83 Requires: struts
84 Requires: xml-commons-jaxp-1.3-apis
85 %if %{gcj_support}
86 BuildRequires: java-gcj-compat-devel
87 %else
88 BuildArch: noarch
89 %endif
90
91 %description
92 JavaServer(tm) Faces is a new and upcoming web application framework
93 that accomplishes the MVC paradigm. It is comparable to the
94 well-known Struts Framework but has features and concepts that
95 are beyond those of Struts; especially the component orientation.
96 Look at Sun's JavaServer(tm) Page to learn more about the Java
97 Specification Request 127 and to download the specification.
98
99 %package javadoc
100 Summary: Javadoc for %{name}
101 Group: Development/Java
102
103 %description javadoc
104 %{summary}.
105
106 %package demo
107 Summary: Samples for %{name}
108 Group: Development/Java
109
110 %description demo
111 %{summary}.
112
113 %prep
114 %setup -q -n %{name}-%{version}-src
115 %patch0 -b .sav
116 %{__perl} -pi -e 's/<xslt/<style processor="trax"/g' `find . -type f -name build.xml`
117 %{__perl} -pi -e 's|/xslt|/style|g' `find . -type f -name build.xml`
118
119 %build
120 mkdir -p build/dist/temp
121 mkdir lib
122 pushd lib
123 #ln -sf $(build-classpath asm/asm) .
124 #ln -sf $(build-classpath cglib) .
125 ln -sf $(build-classpath commons-beanutils) .
126 ln -sf $(build-classpath commons-codec) .
127 ln -sf $(build-classpath commons-collections) .
128 ln -sf $(build-classpath commons-digester) .
129 ln -sf $(build-classpath commons-el) .
130 ln -sf $(build-classpath commons-fileupload) .
131 ln -sf $(build-classpath commons-logging) .
132 ln -sf $(build-classpath commons-validator) .
133 #ln -sf $(build-classpath easymock-classextension) .
134 #ln -sf $(build-classpath easymock) .
135 ln -sf $(build-classpath oro) jakarta-oro.jar
136 ln -sf $(build-classpath jsp) jsp.jar
137 ln -sf $(build-classpath taglibs-core) jstl.jar
138 ln -sf $(build-classpath junit) .
139 ln -sf $(build-classpath portlet-1.0-api) portlet-api.jar
140 ln -sf $(build-classpath servletapi5) servlet-api.jar
141 ln -sf $(build-classpath struts) .
142 #ln -sf $(build-classpath tlddoc) .
143 ln -sf $(build-classpath xdoclet/xdoclet) .
144 ln -sf $(build-classpath xjavadoc) .
145 popd
146
147 cd build
148 export OPT_JAR_LIST=:
149 export CLASSPATH=$(build-classpath ant/ant-trax xalan-j2 xalan-j2-serializer)
150 %{ant} -Dskip.sandbox=true dist-all
151
152 %install
153 rm -rf $RPM_BUILD_ROOT
154
155 # jars
156 mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
157
158 cp -p api/build/dist/%{name}-api.jar \
159 $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-jsf-api-%{version}.jar
160 cp -p build/dist/%{name}-all.jar \
161 $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-all-%{version}.jar
162 cp -p impl/build/dist/%{name}-impl.jar \
163 $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-impl-%{version}.jar
164 cp -p tomahawk/build/dist/tomahawk.jar \
165 $RPM_BUILD_ROOT%{_javadir}/%{name}/tomahawk-%{version}.jar
166 (cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
167
168 # javadoc
169 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
170 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/impl
171 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/tomahawk
172 cp -pr api/build/temp/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
173 cp -pr impl/build/temp/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/impl
174 cp -pr tomahawk/build/temp/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/tomahawk
175 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
176
177 # manual
178 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
179 cp -p api/build/LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
180
181 # demo
182 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
183 cp -pr examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
184 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/{build,temp}
185
186 %if %{gcj_support}
187 %{_bindir}/aot-compile-rpm
188 %endif
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %if %{gcj_support}
194 %post
195 %{update_gcjdb}
196
197 %postun
198 %{clean_gcjdb}
199 %endif
200
201 %files
202 %defattr(0644,root,root,0755)
203 %{_docdir}/%{name}-%{version}/LICENSE.txt
204 %{_javadir}/%{name}/*.jar
205 %if %{gcj_support}
206 %dir %{_libdir}/gcj/%{name}
207 %{_libdir}/gcj/%{name}/*.jar.*
208 %endif
209
210 %files javadoc
211 %defattr(0644,root,root,0755)
212 %{_javadocdir}/%{name}-%{version}
213 %{_javadocdir}/%{name}
214
215 %files demo
216 %defattr(0644,root,root,0755)
217 %{_datadir}/%{name}-%{version}
218
219

  ViewVC Help
Powered by ViewVC 1.1.30