Name: sleep Version: 2.1 Release: 3%{?dist} Summary: Multi-paradigm scripting language for Java Group: Development/Libraries License: LGPLv2+ and BSD URL: http://sleep.dashnine.org/ Source0: http://sleep.dashnine.org/download/sleep21-lgpl.tgz # Patch to allow bootstrapping sleep.jar without sleep-engine.jar Patch0: sleep-bootstrap.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: ant-contrib Requires: jpackage-utils Requires: java %description Sleep ... - is a multi-paradigm scripting language for the Java Platform - easy to learn with Perl and Objective-C inspired syntax - executes scripts fast with a small package size (~250KB) - excels at data manipulation, component integration, and distributed communication - seamlessly uses Java objects and 3rd party libraries %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name} %patch0 -p1 -b .bootstrap find -name \*.jar -delete sed -i -e 's/\r//' *.txt %build # Build without sleep-engine components ant -Dbootstrap=true # Build sleep-engine.jar ant -f jsr223/build.xml # Build in the sleep-engine components ant # Build the test data jars ant -f tests/data/build.xml ant -f tests/data2/build.xml ant -f tests/data3/build.xml # Build docs ant docs %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p sleep.jar $RPM_BUILD_ROOT%{_javadir} mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name} %check java -jar sleep.jar runtests.sl %files %doc *.txt docs %{_javadir}/%{name}.jar %files javadoc %{_javadocdir}/%{name} %changelog * Wed Mar 14 2012 Orion Poplawski 2.1-3 - Updated license source * Wed Nov 23 2011 Orion Poplawski 2.1-2 - Drop BuildRoot, clean, defattr - Add BR/R on jpackage-utils - Build docs * Wed Nov 2 2011 Orion Poplawski 2.1-1 - Initial package