%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