3 %bcond_without bsf # without BSF support
5 Summary: BeanShell - Lightweight Scripting for Java
6 Summary(pl): BeanShell - lekkie skrypty dla Javy
10 License: Sun Public License or LGPL
11 Group: Development/Languages/Java
12 Source0: http://www.beanshell.org/bsh-%{version}b2-src.jar
13 # Source0-md5: f9c938446e5d97b74fd37f3bdbebf84a
14 Patch0: %{name}-jdk1.5.patch
15 URL: http://www.beanshell.org/
16 %{?with_bsf:BuildRequires: bsf}
17 BuildRequires: jakarta-ant >= 1.3
18 BuildRequires: jdk >= 1.3
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 BeanShell is a small, free, embeddable Java source interpreter with
26 object scripting language features, written in Java. BeanShell
27 dynamically executes standard Java syntax and extends it with common
28 scripting conveniences such as loose types, commands, and method
29 closures like those in Perl and JavaScript.
32 BeanShell to ma³y, darmowy, osadzalny interpreter kodu ¼ród³owego Javy
33 z cechami obiektowych jêzyków skryptowych, napisany w Javie. BeanShell
34 dynamicznie wykonuje standardow± sk³adniê Javy i rozszerza j± o
35 popularne wygodne elementy skryptowe, takie jak lu¼ne typy, polecenia
36 i dope³nienia metod podobnie jak Perl czy JavaScript.
45 %{!?with_bsf:-Dexclude-bsf='bsh/util/BeanShellBSFEngine.java,TestBshBSF.java'}
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_javadir}
52 install bsh-*.jar $RPM_BUILD_ROOT%{_javadir}
53 ln -sf bsh-*.jar $RPM_BUILD_ROOT%{_javadir}/bsh.jar
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc BeanShell/{asm/README-asm.txt,bsf/README,docs/faq/faq.html,docs/images,docs/manual,src/{*.html,*.txt}}