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. Redistribution1s 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 cvs_version 1_7R3 |
---|
32 | |
---|
33 | Name: rhino |
---|
34 | Summary: JavaScript for Java |
---|
35 | Version: 1.7 |
---|
36 | Release: 0.r3.1%{?_dist_release} |
---|
37 | |
---|
38 | Group: Development/Libraries |
---|
39 | License: MPLv1.1 or GPLv2+ |
---|
40 | URL: http://www.mozilla.org/rhino/ |
---|
41 | |
---|
42 | Source0: ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino%{cvs_version}.zip |
---|
43 | Source2: %{name}.script |
---|
44 | |
---|
45 | #Patch0: %{name}-build.patch |
---|
46 | ## Patch to try several methods of loading jline library or fail gracefully |
---|
47 | #Patch1: %{name}-457336.diff |
---|
48 | |
---|
49 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
50 | BuildArch: noarch |
---|
51 | #BuildRequires: ant |
---|
52 | #BuildRequires: bea-stax-api |
---|
53 | #BuildRequires: java-1.6.0-openjdk-devel >= 1:1.6.0.0 |
---|
54 | Requires: jpackage-utils |
---|
55 | Requires: jline |
---|
56 | |
---|
57 | # Disable xmlbeans until we can get it into Fedora |
---|
58 | #Requires: xmlbeans |
---|
59 | #BuildRequires: xmlbeans |
---|
60 | |
---|
61 | %description |
---|
62 | Rhino is an open-source implementation of JavaScript written entirely |
---|
63 | in Java. It is typically embedded into Java applications to provide |
---|
64 | scripting to end users. |
---|
65 | |
---|
66 | %description -l ja |
---|
67 | Rhino はすべてが Java で記述された JavaScript のオープンソースな実装です. |
---|
68 | 一般的には Java アプリケーションに組み込まれることで、エンドユーザーによる |
---|
69 | スクリプトの記述が可能になります. |
---|
70 | |
---|
71 | |
---|
72 | %package demo |
---|
73 | Summary: Examples for %{name} |
---|
74 | Group: Development/Libraries |
---|
75 | |
---|
76 | %description demo |
---|
77 | Examples for %{name}. |
---|
78 | |
---|
79 | #%package manual |
---|
80 | #Summary: Manual for %{name} |
---|
81 | #Group: Documentation |
---|
82 | # |
---|
83 | #%description manual |
---|
84 | #Documentation for %{name}. |
---|
85 | |
---|
86 | #%package javadoc |
---|
87 | #Summary: Javadoc for %{name} |
---|
88 | #Group: Development/Documentation |
---|
89 | # |
---|
90 | #%description javadoc |
---|
91 | #Javadoc for %{name}. |
---|
92 | |
---|
93 | %prep |
---|
94 | %setup -q -n %{name}%{cvs_version} |
---|
95 | #patch0 -p1 |
---|
96 | #patch1 -p0 -b .jline |
---|
97 | |
---|
98 | # Fix build |
---|
99 | #{__perl} -pi -e 's|.*<get.*src=.*>\n||' build.xml testsrc/build.xml toolsrc/org/mozilla/javascript/tools/debugger/build.xml xmlimplsrc/build.xml |
---|
100 | |
---|
101 | # Fix manifest |
---|
102 | #{__perl} -pi -e 's|^Class-Path:.*\n||g' src/manifest |
---|
103 | |
---|
104 | # Add jpp release info to version |
---|
105 | #{__perl} -pi -e 's|^implementation.version: Rhino .* release .* \${implementation.date}|implementation.version: Rhino %{version} release %{release} \${implementation.date}|' build.properties |
---|
106 | |
---|
107 | %build |
---|
108 | #export CLASSPATH= |
---|
109 | #export OPT_JAR_LIST=: |
---|
110 | #ant -Dxbean.jar=$(build-classpath xmlbeans/xbean) \ |
---|
111 | # -Djsr173.jar=$(build-classpath bea-stax-api) deepclean jar copy-all javadoc |
---|
112 | |
---|
113 | #pushd examples |
---|
114 | #export CLASSPATH=../build/%{name}%{cvs_version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null) |
---|
115 | #{javac} *.java |
---|
116 | #{jar} cvf ../build/%{name}%{cvs_version}/%{name}-examples-%{version}.jar *.class |
---|
117 | #popd |
---|
118 | |
---|
119 | %install |
---|
120 | rm -rf $RPM_BUILD_ROOT |
---|
121 | |
---|
122 | # jars |
---|
123 | mkdir -p $RPM_BUILD_ROOT%{_javadir} |
---|
124 | install -m 644 js.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar |
---|
125 | #%{__cp} -a build/%{name}%{cvs_version}/%{name}-examples-%{version}.jar %{buildroot}%{_javadir}/%{name}-examples-%{version}.jar |
---|
126 | #(cd %{buildroot}%{_javadir} && %{__ln_s} %{name}-%{version}.jar js-%{version}.jar) |
---|
127 | (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| %{__sed} "s|-%{version}||g"`; done) |
---|
128 | |
---|
129 | # javadoc |
---|
130 | #%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version} |
---|
131 | #%{__cp} -a build/%{name}%{cvs_version}/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version} |
---|
132 | #%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} |
---|
133 | #%{_bindir}/find %{buildroot}%{_javadocdir}/%{name}-%{version} -type f -name '*.html' | %{_bindir}/xargs %{__perl} -pi -e 's/\r$//g' |
---|
134 | |
---|
135 | ## script |
---|
136 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
137 | install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name} |
---|
138 | |
---|
139 | # examples |
---|
140 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
141 | cp -a examples/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
142 | |
---|
143 | %clean |
---|
144 | rm -rf $RPM_BUILD_ROOT |
---|
145 | |
---|
146 | %files |
---|
147 | %defattr(0644,root,root,0755) |
---|
148 | %doc LICENSE.txt |
---|
149 | %attr(0755,root,root) %{_bindir}/* |
---|
150 | %{_javadir}/* |
---|
151 | |
---|
152 | %files demo |
---|
153 | %defattr(0644,root,root,0755) |
---|
154 | %{_datadir}/%{name} |
---|
155 | |
---|
156 | #%files manual |
---|
157 | #%defattr(0644,root,root,0755) |
---|
158 | #%if 0 |
---|
159 | #%doc build/%{name}%{cvs_version}/docs/* |
---|
160 | #%endif |
---|
161 | |
---|
162 | #files javadoc |
---|
163 | #defattr(0644,root,root,0755) |
---|
164 | #doc %{_javadocdir}/* |
---|
165 | |
---|
166 | %changelog |
---|
167 | * Sat Jun 2 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-0.r3.1 |
---|
168 | - new upstream release |
---|
169 | |
---|
170 | * Wed Sep 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-0.r2.1 |
---|
171 | - Initial build for VineLinux |
---|
172 | |
---|
173 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-0.7.r2 |
---|
174 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
175 | |
---|
176 | * Sun May 31 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0:1.7-0.6.r2 |
---|
177 | - Update to rhino1_7R2 |
---|
178 | - Add patch from Steven Elliott to fix exception in the interpreter shell. |
---|
179 | |
---|
180 | * Mon Apr 20 2009 Lillian Angel <langel@redhat.com> - 0:1.7-0.4.r2pre.1.1 |
---|
181 | - Added jpackage-utils requirement. |
---|
182 | - Resolves: rhbz#496435 |
---|
183 | |
---|
184 | * Thu Mar 26 2009 Lillian Angel <langel@redhat.com> - 0:1.7-0.3.r2pre.1.1 |
---|
185 | - Updated rhino-build.patch |
---|
186 | - License for treetable has been fixed. Re-included this code, and removed patch. |
---|
187 | - Resolves: rhbz#457336 |
---|
188 | |
---|
189 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7-0.2.r2pre.1.1 |
---|
190 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
191 | |
---|
192 | * Fri Feb 13 2009 Lillian Angel <langel@redhat.com> - 0:1.7-0.1.r2pre.1.1 |
---|
193 | - Upgraded to 1.7r2pre. |
---|
194 | - Resolves: rhbz#485135 |
---|
195 | |
---|
196 | * Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.6-0.1.r5.1.3 |
---|
197 | - drop repotag |
---|
198 | - fix license tag |
---|
199 | |
---|
200 | * Thu Mar 15 2007 Matt Wringe <mwringe@redhat.com> 0:1.6-0.1.r5.1jpp.2 |
---|
201 | - Remove script from build as the debugging tool is disabled due to it |
---|
202 | containing proprietary code from Sun. |
---|
203 | |
---|
204 | * Wed Mar 07 2007 Deepak Bhole <dbhole@redhat.com> 0:1.6-0.1.r5.1jpp.1 |
---|
205 | - Upgrade to 1.6r5 |
---|
206 | - Change release per Fedora guidelines |
---|
207 | - Disable dependency on xmlbeans (optional component, not in Fedora yet) |
---|
208 | - Disable building of debugger tool, as it needs confidential code from Sun |
---|
209 | - Remove post/postuns for javadoc and add the two dirs as %%doc |
---|
210 | |
---|
211 | * Wed Jun 14 2006 Ralph Apel <r.apel@r-apel.de> 0:1.6-0.r2.2jpp |
---|
212 | - Add bea-stax-api in order to build xmlimpl classes |
---|
213 | |
---|
214 | * Tue May 31 2006 Fernando Nasser <fnasser@redhat.com> 0:1.6-0.r2.1jpp |
---|
215 | - Upgrade to RC2 |
---|
216 | |
---|
217 | * Mon Apr 24 2006 Fernando Nasser <fnasser@redhat.com> 0:1.6-0.r1.2jpp |
---|
218 | - First JPP 1.7 build |
---|
219 | |
---|
220 | * Thu Dec 02 2004 David Walluck <david@jpackage.org> 0:1.6-0.r1.1jpp |
---|
221 | - 1_6R1 |
---|
222 | - add demo subpackage containing example code |
---|
223 | - add jpp release info to implementation version |
---|
224 | - add script to launch js shell |
---|
225 | - build E4X implementation (Requires: xmlbeans) |
---|
226 | - remove `Class-Path' from manifest |
---|
227 | |
---|
228 | * Tue Aug 24 2004 Fernando Nasser <fnasser@redhat.com> - 0:1.5-1.R5.1jpp |
---|
229 | - Update to 1.5R5. |
---|
230 | - Rebuild with Ant 1.6.2 |
---|
231 | |
---|
232 | * Sat Jul 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.5-1.R4.1.1jpp |
---|
233 | - Update to 1.5R4.1. |
---|
234 | - Non-versioned javadoc dir symlink. |
---|
235 | |
---|
236 | * Fri Apr 11 2003 David Walluck <davdi@anti-microsoft.org> 0:1.5-0.R4.2jpp |
---|
237 | - remove build patches in favor of perl |
---|
238 | - add epoch |
---|
239 | |
---|
240 | * Sun Mar 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 1.5-0.r4.1jpp |
---|
241 | - Update to 1.5R4. |
---|
242 | - Rebuild for JPackage 1.5. |
---|
243 | |
---|
244 | * Wed May 08 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5-0.R3.1jpp |
---|
245 | - 1.5R3 |
---|
246 | - versioned dir for javadoc |
---|
247 | |
---|
248 | * Sun Mar 10 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5-0.R2.9jpp |
---|
249 | - versioned compatibility symlink |
---|
250 | |
---|
251 | * Mon Jan 21 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5-0.R2.8jpp |
---|
252 | - section macro |
---|
253 | - new release scheme |
---|
254 | |
---|
255 | * Thu Jan 17 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-7jpp |
---|
256 | - spec cleanup |
---|
257 | - changelog corrections |
---|
258 | |
---|
259 | * Fri Jan 11 2002 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-6jpp |
---|
260 | - backward compatibility js.jar symlink |
---|
261 | - used original swing exemples archive |
---|
262 | - fixed javadoc empty package-list file |
---|
263 | - no dependencies for manual and javadoc packages |
---|
264 | |
---|
265 | * Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-5jpp |
---|
266 | - javadoc in javadoc package |
---|
267 | - fixed offline build |
---|
268 | |
---|
269 | * Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.5R2-4jpp |
---|
270 | - changed extension --> jpp |
---|
271 | |
---|
272 | * Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-3jpp |
---|
273 | - first unified release |
---|
274 | - s/jPackage/JPackage |
---|
275 | - corrected license to MPL |
---|
276 | |
---|
277 | * Sat Sep 15 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-2mdk |
---|
278 | - spec cleanup |
---|
279 | - standardized cvs references |
---|
280 | |
---|
281 | * Thu Aug 31 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.5R2-1mdk |
---|
282 | - first Mandrake release |
---|