From ec3ad585da879e12a59f19336f779a70f8e8c2df Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Jun 07 2012 18:28:50 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore index e69de29..7d7a312 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/clojure-clojure-1.2.1-0-g612fba9.tar.gz diff --git a/clojure-compat.sh b/clojure-compat.sh new file mode 100644 index 0000000..759db15 --- /dev/null +++ b/clojure-compat.sh @@ -0,0 +1,2 @@ +#!/bin/bash +exec java ${JAVA_OPTS} -jar /usr/share/java/clojure-compat.jar "$@" diff --git a/clojure-compat.spec b/clojure-compat.spec new file mode 100644 index 0000000..9af8fc2 --- /dev/null +++ b/clojure-compat.spec @@ -0,0 +1,97 @@ +%global project clojure +%global groupId org.clojure +%global artifactId clojure +%global archivename %{project}-%{artifactId} +%global commit_hash 612fba9 + +Name: clojure-compat +Version: 1.2.1 +Release: 2%{?dist} +Summary: A dynamic programming language that targets the Java Virtual Machine + +Group: Development/Languages +License: EPL +URL: http://clojure.org/ +# wget --content-disposition \ +# https://github.com/clojure/clojure/tarball/%{version} +Source0: %{archivename}-%{version}-0-g%{commit_hash}.tar.gz + +Source1: clojure-compat.sh + +BuildArch: noarch + +BuildRequires: ant >= 1.6 +BuildRequires: jpackage-utils >= 1.5 +BuildRequires: objectweb-asm +BuildRequires: java-devel >= 1:1.6.0 + +Requires: java >= 1:1.6 +Requires: objectweb-asm + +%description +Clojure is a dynamic programming language that targets the Java +Virtual Machine. It is designed to be a general-purpose language, +combining the approachability and interactive development of a +scripting language with an efficient and robust infrastructure for +multithreaded programming. Clojure is a compiled language - it +compiles directly to JVM bytecode, yet remains completely +dynamic. Every feature supported by Clojure is supported at +runtime. Clojure provides easy access to the Java frameworks, with +optional type hints and type inference, to ensure that calls to Java +can avoid reflection. + +%prep +%setup -q -n %{archivename}-%{commit_hash} +#To remove Java7 test issue +%if 0%{?fedora} +cp -f test/clojure/test_clojure/annotations/java_{5,6_and_later}.clj +%endif + +%build +ant + +%install +# jar - link to prefix'd jar so that java stuff knows where to look +install -d -m 755 %{buildroot}%{_javadir} +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 clojure.jar %{buildroot}%{_javadir}/%{name}.jar +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + +# startup script +install -d -m 755 %{buildroot}%{_bindir} +install -pm 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name} + +%if 0%{?add_maven_depmap:1} +%add_maven_depmap JPP-%{name}.pom %{name}.jar +%else +# some systems like RHEL do not have add_maven_depmap defined +# - probably don't need JPP/%{name} -- do we? +%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{name} +%endif + +%clean +rm -rf %{buildroot} + +%if 0%{?rhel} +%post +%update_maven_depmap + +%postun +%update_maven_depmap +%endif + +%files +%doc epl-v10.html changes.txt readme.txt +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* +%{_javadir}/%{name}.jar +%{_bindir}/%{name} +#{_datadir}/%{name} + +%changelog +* Thu Jun 7 2012 Kushal Das - 1.2.1-2 +- Disable failing annotation test on Fedora + +* Thu Jun 7 2012 Kushal Das - 1.2.1-1 +- Compat package, based on clojure-1:1.4.0-2 + diff --git a/sources b/sources index e69de29..74a61c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +73c00e56fd6541c638e915d8cc19707c clojure-clojure-1.2.1-0-g612fba9.tar.gz