File leiningen.spec of Package leiningen
#
# spec file for package leiningen
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: leiningen
Version: 2.12.0
Release: 0
Summary: Automate Clojure projects without setting your hair on fire
License: EPL-1.0
Group: Development/Tools/Building
Url: https://leiningen.org/
Source: https://github.com/technomancy/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
Requires: java >= 1.7.0
Requires: clojure >= 1.5.1
BuildArch: noarch
%description
Leiningen is for automating Clojure projects without setting your hair on fire.
%prep
%autosetup
%build
%install
sed -i 's!/bin/env bash!/bin/bash!' ./bin/lein
install -m 0755 -D ./bin/lein %{buildroot}%{_bindir}/lein
install -m 0644 -D ./doc/lein.1 %{buildroot}%{_mandir}/man1/lein.1
install -m 0644 -D ./zsh_completion.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/_lein
install -m 0644 -D ./bash_completion.bash %{buildroot}%{_datadir}/bash-completion/completions/lein.sh
%fdupes %{buildroot}
%files
%defattr(-,root,root)
%license COPYING
%doc CONTRIBUTING.md README.md NEWS.md
%defattr(-,root,root)
%{_bindir}/lein
%dir %{_mandir}/man1/
%{_mandir}/man1/lein*
%{_datadir}/bash-completion/completions/*.sh
%config %{_sysconfdir}/zsh_completion.d
%changelog