[java-sleep] Initial commit

Orion Poplawski orion at fedoraproject.org
Wed Apr 17 15:29:47 UTC 2013


commit 5a40fc27fbdf3b1118e5950edd9af714381e50b0
Author: Orion Poplawski <orion at nwra.com>
Date:   Wed Apr 17 09:29:43 2013 -0600

    Initial commit

 .gitignore            |    1 +
 java-sleep.spec       |  109 +++++++++++++++++++++++++++++++++++++++++++++++++
 sleep-bootstrap.patch |   32 ++++++++++++++
 sources               |    1 +
 4 files changed, 143 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c7d690f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sleep21-lgpl.tgz
diff --git a/java-sleep.spec b/java-sleep.spec
new file mode 100644
index 0000000..32940ea
--- /dev/null
+++ b/java-sleep.spec
@@ -0,0 +1,109 @@
+Name:		java-sleep
+Version:	2.1
+Release:	6%{?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 sleep
+%patch0 -p1 -b .bootstrap
+find -name \*.jar -delete
+sed -i -e 's/\r//' *.txt
+# Fix FSF address
+sed -i -e 's/59 Temple Place, Suite 330/51 Franklin Street, Fifth Floor/' \
+       -e 's/MA  02111-1307/MA  02110-1301/' license.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
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p sleep.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/sleep.jar
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+mv docs/api docs_api
+cp -rp docs_api $RPM_BUILD_ROOT%{_javadocdir}/%{name}/api
+
+
+%check
+java -jar sleep.jar runtests.sl
+
+
+%files
+%doc *.txt docs
+%{_javadir}/%{name}.jar
+%{_javadir}/sleep.jar
+
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Wed Apr 17 2013 Orion Poplawski <orion at cora.nwra.com> 2.1-6
+- Fully fix FSF address
+- Remove javadoc api from main package docs
+
+* Mon Apr 15 2013 Orion Poplawski <orion at cora.nwra.com> 2.1-5
+- Rename to java-sleep
+
+* Thu Apr 11 2013 Orion Poplawski <orion at cora.nwra.com> 2.1-4
+- No buildroot cleanup in %%install
+- Fix FSF address
+
+* Wed Mar 14 2012 Orion Poplawski <orion at cora.nwra.com> 2.1-3
+- Updated license source
+
+* Wed Nov 23 2011 Orion Poplawski <orion at cora.nwra.com> 2.1-2
+- Drop BuildRoot, clean, defattr
+- Add BR/R on jpackage-utils
+- Build docs
+
+* Wed Nov 2 2011 Orion Poplawski <orion at cora.nwra.com> 2.1-1
+- Initial package
diff --git a/sleep-bootstrap.patch b/sleep-bootstrap.patch
new file mode 100644
index 0000000..0a54245
--- /dev/null
+++ b/sleep-bootstrap.patch
@@ -0,0 +1,32 @@
+diff -up sleep/build.xml.bootstrap sleep/build.xml
+--- sleep/build.xml.bootstrap	2009-04-29 21:42:10.000000000 -0600
++++ sleep/build.xml	2011-11-02 10:59:55.932657315 -0600
+@@ -1,4 +1,10 @@
+ <project name="sleep" default="all" basedir=".">
++  <taskdef resource="net/sf/antcontrib/antlib.xml">
++    <classpath>
++      <pathelement location="/usr/share/java/ant/ant-contrib.jar"/>
++    </classpath>
++  </taskdef>
++
+   <property name="project.src"   location="src/sleep" />
+   <property name="project.build" location="bin" />
+ 
+@@ -62,8 +68,15 @@
+   </target>
+ 
+   <target name="jar" depends="compile">
+-     <!-- copy the JSR223 stuff into the Sleep directory -->
+-     <unzip src="jsr223/sleep-engine.jar" dest="bin" />
++     <if>
++        <not>
++           <isset property="bootstrap" />
++        </not>
++           <then>
++              <!-- copy the JSR223 stuff into the Sleep directory -->
++              <unzip src="jsr223/sleep-engine.jar" dest="bin"/>
++           </then> 
++     </if>
+      <jar destfile="sleep.jar"
+           basedir="bin"
+           includes="**/*">
diff --git a/sources b/sources
index e69de29..0c75e3e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9edb5501e43d12887ba7da9a8af1c63b  sleep21-lgpl.tgz


More information about the scm-commits mailing list