ec3ad58
%global project     clojure
ec3ad58
%global groupId     org.clojure
ec3ad58
%global artifactId  clojure
ec3ad58
%global archivename %{project}-%{artifactId}
ec3ad58
%global commit_hash 612fba9
ec3ad58
ec3ad58
Name:           clojure-compat
ec3ad58
Version:     	1.2.1
b413ac1
Release:        7%{?dist}
ec3ad58
Summary:        A dynamic programming language that targets the Java Virtual Machine
ec3ad58
ec3ad58
Group:          Development/Languages
ec3ad58
License:        EPL
ec3ad58
URL:            http://clojure.org/
ec3ad58
# wget --content-disposition \
ec3ad58
#        https://github.com/clojure/clojure/tarball/%{version}
ec3ad58
Source0:        %{archivename}-%{version}-0-g%{commit_hash}.tar.gz
ec3ad58
ec3ad58
Source1:        clojure-compat.sh
ec3ad58
ec3ad58
BuildArch:      noarch
ec3ad58
ec3ad58
BuildRequires:  ant >= 1.6
ec3ad58
BuildRequires:  jpackage-utils >= 1.5
ec3ad58
BuildRequires:  objectweb-asm
ec3ad58
BuildRequires:  java-devel >= 1:1.6.0
ec3ad58
c3abd70
Requires:       java-headless >= 1:1.6
ec3ad58
Requires:       objectweb-asm
ec3ad58
ec3ad58
%description 
ec3ad58
Clojure is a dynamic programming language that targets the Java
ec3ad58
Virtual Machine. It is designed to be a general-purpose language,
ec3ad58
combining the approachability and interactive development of a
ec3ad58
scripting language with an efficient and robust infrastructure for
ec3ad58
multithreaded programming. Clojure is a compiled language - it
ec3ad58
compiles directly to JVM bytecode, yet remains completely
ec3ad58
dynamic. Every feature supported by Clojure is supported at
ec3ad58
runtime. Clojure provides easy access to the Java frameworks, with
ec3ad58
optional type hints and type inference, to ensure that calls to Java
ec3ad58
can avoid reflection.
ec3ad58
ec3ad58
%prep
ec3ad58
%setup -q -n %{archivename}-%{commit_hash}
ec3ad58
#To remove Java7 test issue
ec3ad58
%if 0%{?fedora}
ec3ad58
cp -f test/clojure/test_clojure/annotations/java_{5,6_and_later}.clj
ec3ad58
%endif
ec3ad58
ec3ad58
%build
ec3ad58
ant
ec3ad58
ec3ad58
%install
ec3ad58
# jar - link to prefix'd jar so that java stuff knows where to look
ec3ad58
install -d -m 755 %{buildroot}%{_javadir}
ec3ad58
install -d -m 755 %{buildroot}%{_mavenpomdir}
ec3ad58
install -pm 644 clojure.jar %{buildroot}%{_javadir}/%{name}.jar
ec3ad58
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
ec3ad58
ec3ad58
# startup script
ec3ad58
install -d -m 755 %{buildroot}%{_bindir}
ec3ad58
install -pm 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
ec3ad58
ec3ad58
%if 0%{?add_maven_depmap:1}
ec3ad58
%add_maven_depmap JPP-%{name}.pom %{name}.jar
ec3ad58
%else
ec3ad58
# some systems like RHEL do not have add_maven_depmap defined
ec3ad58
# - probably don't need JPP/%{name} -- do we?
ec3ad58
%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{name}
ec3ad58
%endif
ec3ad58
ec3ad58
%clean
ec3ad58
rm -rf %{buildroot}
ec3ad58
ec3ad58
%if 0%{?rhel}
ec3ad58
%post
ec3ad58
%update_maven_depmap
ec3ad58
ec3ad58
%postun
ec3ad58
%update_maven_depmap
ec3ad58
%endif
ec3ad58
ec3ad58
%files
ec3ad58
%doc epl-v10.html changes.txt readme.txt
ec3ad58
%{_mavenpomdir}/*
ec3ad58
%{_mavendepmapfragdir}/*
ec3ad58
%{_javadir}/%{name}.jar
ec3ad58
%{_bindir}/%{name}
ec3ad58
#{_datadir}/%{name}
ec3ad58
ec3ad58
%changelog
b413ac1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-7
b413ac1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b413ac1
c3abd70
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2.1-6
c3abd70
- Use Requires: java-headless rebuild (#1067528)
c3abd70
0f374ee
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
0f374ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0f374ee
921e9e2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
921e9e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
921e9e2
2293e2d
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
2293e2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2293e2d
ec3ad58
* Thu Jun 7 2012 Kushal Das <kushal@fedoraproject.org> - 1.2.1-2
ec3ad58
- Disable failing annotation test on Fedora
ec3ad58
ec3ad58
* Thu Jun 7 2012 Kushal Das <kushal@fedoraproject.org> - 1.2.1-1
ec3ad58
- Compat package, based on clojure-1:1.4.0-2
ec3ad58