7
0
forked from pool/leiningen
Files
leiningen/leiningen.spec
Michael Vetter 90488299fe - Update to 2.9.1:
* Fix a bug where provided namespace compilation order was overridden. (Phil Hagelberg)
  * Don't emit namespaced maps when merging data readers for uberjar. (Joel Kaasinen)
- Install to correct bash completions path
- Remove suse macros
- Use standalone leiningen
- Add files from upstream:
  * bash_completion.bash
  * zsh_completion.bash
  * lein.1 manpage
  * lein-pkg script

- Remove PKGBUILD

OBS-URL: https://build.opensuse.org/package/show/devel:languages:clojure/leiningen?expand=0&rev=2
2019-07-16 15:03:27 +00:00

68 lines
2.3 KiB
RPMSpec

#
# spec file for package leiningen
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: leiningen
Version: 2.9.1
Release: 0
Summary: Automating Clojure projects without setting your hair on fire
License: EPL-1.0
Group: Development/Tools/Building
URL: http://leiningen.org/
Source0: https://github.com/technomancy/leiningen/releases/download/%{version}/leiningen-%{version}-standalone.zip
# Following files are taken from the upstream repo in the `doc` and `bin` subfolders:
Source1: lein-pkg
Source2: bash_completion.bash
Source3: zsh_completion.zsh
Source4: lein.1
BuildRequires: fdupes
BuildRequires: unzip
Requires: clojure >= 1.10.0
Requires: java >= 1.8.0
BuildArch: noarch
%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.
%prep
%build
%install
#LEIN_JAR=
mkdir -p %{buildroot}%{_datadir}/java/
install -m 0644 -D %{SOURCE0} %{buildroot}%{_datadir}/java/leiningen-%{version}-standalone.jar
install -m 0755 -D %{SOURCE1} %{buildroot}%{_bindir}/lein
install -m 0644 -D %{SOURCE2} %{buildroot}%{_datadir}/bash-completion/completions/lein
install -m 0644 -D %{SOURCE3} %{buildroot}%{_sysconfdir}/zsh_completion.d/_lein
install -m 0644 -D %{SOURCE4} %{buildroot}%{_mandir}/man1/lein.1
%fdupes %{buildroot}
%files
%{_bindir}/lein
%{_mandir}/man1/lein*
%{_datadir}/bash-completion/completions/lein
%{_sysconfdir}/zsh_completion.d
%{_datadir}/java/leiningen-2.9.1-standalone.jar
%changelog