Name: leiningen Version: 2.9.1 Release: 1%{?dist} Summary: Clojure project automation tool License: EPL URL: https://github.com/technomancy/leiningen Source0: https://github.com/technomancy/leiningen/releases/download/%{version}/leiningen-%{version}-standalone.zip Source1: https://github.com/technomancy/leiningen/raw/%{version}/bin/lein Source2: https://github.com/technomancy/leiningen/raw/%{version}/resources/leiningen.png Source3: https://raw.githubusercontent.com/technomancy/leiningen/%{version}/bash_completion.bash Source4: https://raw.githubusercontent.com/technomancy/leiningen/%{version}/zsh_completion.zsh BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: maven BuildRequires: clojure BuildRequires: wget BuildRequires: sed Requires: java %description Working on Clojure projects with tools designed for Java can be an exercise in frustration. With Leiningen, you describe your build with Clojure. Leiningen handles fetching dependencies, running tests, packaging your projects and can be easily extended with a number of plugins. %build chmod +x %{SOURCE1} %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT/%{_javadir}/%{name}-%{version}-standalone.jar install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/lein install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps/ install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/lein install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions install -pm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_lein sed -i -e "/LEIN_JAR=/d" $RPM_BUILD_ROOT%{_bindir}/lein sed -i -e "6iLEIN_JAR=/usr/share/java/leiningen-%{version}-standalone.jar" $RPM_BUILD_ROOT%{_bindir}/lein sed -i -e "7iCLASSPATH=" $RPM_BUILD_ROOT%{_bindir}/lein %files %{_javadir}/* %{_bindir}/lein %dir %{_sysconfdir}/bash_completion.d %{_sysconfdir}/bash_completion.d/lein %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_lein %{_datadir}/pixmaps/%{name}.png %changelog * Wed Nov 13 2019 Yann Collette - 2.9.1-1 - update to 2.9.1-1 * Wed Feb 13 2019 Yann Collette - 2.8.3-1 - Update to 2.8.3 * Sat Jun 07 2014 Fedora Release Engineering - 1.7.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 1.7.1-5 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Tue Oct 16 2012 Michel Salim - 1.7.1-4 - Revert to packaging uncompiled Leiningen sources; need to find out why we can't compile against RPM-packaged JARs * Sun Aug 19 2012 Michel Salim - 1.7.1-3 - Use package's own launcher script to build the JAR (from Debian) * Tue Jun 12 2012 Michel Salim - 1.7.1-2 - Package launcher script - Update dependencies * Mon Jun 11 2012 Michel Salim - 1.7.1-1 - Initial package