# # Conditional build: %bcond_without bsf # without BSF support # Summary: BeanShell - Lightweight Scripting for Java Summary(pl): BeanShell - lekkie skrypty dla Javy Name: beanshell Version: 2.0 %define _beta b4 Release: 0.%{_beta}.1 License: Sun Public License or LGPL Group: Development/Languages/Java Source0: http://www.beanshell.org/bsh-%{version}%{_beta}-src.jar # Source0-md5: 49c9cc9872f26d562bffb1e5ec8aa377 URL: http://www.beanshell.org/ %{?with_bsf:BuildRequires: bsf} BuildRequires: ant >= 1.3 BuildRequires: jdk >= 1.3 BuildRequires: jpackage-utils BuildRequires: rpmbuild(macros) >= 1.300 BuildRequires: unzip BuildRequires: servlet Requires: jre >= 1.1 BuildArch: noarch ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript. %description -l pl BeanShell to mały, darmowy, osadzalny interpreter kodu źródłowego Javy z cechami obiektowych języków skryptowych, napisany w Javie. BeanShell dynamicznie wykonuje standardową składnię Javy i rozszerza ją o popularne wygodne elementy skryptowe, takie jak luźne typy, polecenia i dopełnienia metod podobnie jak Perl czy JavaScript. %package javadoc Summary: BeanShell API documentation Summary(pl): Dokumentacja API BeanShell Group: Documentation %description javadoc BeanShell API documentation. %description javadoc -l pl Dokumentacja API BeanShell. %prep %setup -q -n BeanShell-%{version}%{_beta} %build export CLASSPATH="`build-classpath %{?with_bsf:bsf} servlet`" export JAVA_HOME="%{java_home}" ant jarall javadoc \ %{!?with_bsf:-Dexclude-bsf='bsh/util/BeanShellBSFEngine.java,TestBshBSF.java'} cp -R docs/manual/html manual %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}/%{name}-%{version}} install dist/bsh-%{version}%{_beta}.jar $RPM_BUILD_ROOT%{_javadir} ln -sf bsh-%{version}%{_beta}.jar $RPM_BUILD_ROOT%{_javadir}/bsh.jar cp -R javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc asm/README-asm.txt bsf/README src/{*.html,*.txt} %doc docs/{faq/faq.html,images,manual} %{_javadir}/*.jar %files javadoc %defattr(644,root,root,755) %doc %{_javadocdir}/%{name}-%{version}