Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 9c1eb063bb09cf0b069f77e94139e451 > files > 3

clojure-1.6.0-1.mga5.src.rpm

%global project     clojure
%global groupId     org.clojure
%global artifactId  clojure
%global archivename %{project}-%{artifactId}
%global full_version %{version}

Name:           clojure
Epoch:          1
Version:        1.6.0
Release:        %mkrel 1
Summary:        A dynamic programming language that targets the Java Virtual Machine

Group:          Development/Java
License:        EPL
URL:            http://clojure.org/
Source0:        https://github.com/%{name}/%{name}/archive/%{name}-%{full_version}.zip

Source1:        clojure.sh

BuildArch:      noarch

BuildRequires:  maven-local
BuildRequires:  ant >= 1.6
BuildRequires:  jpackage-utils >= 1.5
BuildRequires:  objectweb-asm
BuildRequires:  java-devel >= 1:1.6.0

Requires:       jpackage-utils
Requires:       java-headless >= 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}-%{full_version}

%build
ant -Dmaven.test.skip=1

%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 %{name}.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}

%add_maven_depmap JPP-%{name}.pom %{name}.jar

%clean
rm -rf %{buildroot}

%files
%doc epl-v10.html changes.md readme.txt 
%{_mavenpomdir}/*
%{_datadir}/maven-metadata/%{name}.xml
%{_javadir}/%{name}.jar
%{_bindir}/%{name}



%changelog
* Thu Jan 01 2015 pterjan <pterjan> 1:1.6.0-1.mga5
+ Revision: 807915
- Sync with Fedora 21 (update to 1.6.0)
- Restore

  + sander85 <sander85>
    - Leaf package that depends on broken java stack

* Wed Oct 15 2014 umeabot <umeabot> 1:1.5.1-4.mga5
+ Revision: 749256
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1:1.5.1-3.mga5
+ Revision: 678430
- Mageia 5 Mass Rebuild

* Tue Oct 22 2013 umeabot <umeabot> 1:1.5.1-2.mga4
+ Revision: 544833
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 dmorgan <dmorgan> 1:1.5.1-1.mga4
+ Revision: 500337
- New version

* Fri Jan 11 2013 umeabot <umeabot> 1:1.5.0-0.RC1.2.mga3
+ Revision: 347887
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 08 2013 dmorgan <dmorgan> 1:1.5.0-0.RC1.1.mga3
+ Revision: 341849
- New version

* Thu Oct 27 2011 gil <gil> 1.2.1-1.mga2
+ Revision: 158510
- imported package clojure