SHA256
7
0
forked from pool/joker
Files
joker/joker.spec
Jochen Breuer 1fbf09bd61 Accepting request 1134552 from home:brejoc:branches:devel:languages:clojure
- Update to version 1.3.3
  * Updated vendor archive
  * Create a_data.go in a reproducible way (thanks @bmwiedemann !)
  * add abs to cljs (thanks @harold !)
  * Bump golang.org/x/crypto from 0.14.0 to 0.17.0

OBS-URL: https://build.opensuse.org/request/show/1134552
OBS-URL: https://build.opensuse.org/package/show/devel:languages:clojure/joker?expand=0&rev=5
2023-12-21 20:37:03 +00:00

54 lines
1.6 KiB
RPMSpec

#
# spec file for package joker
#
# Copyright (c) 2023 SUSE LLC
#
# 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: joker
Version: 1.3.3
Release: 0
Summary: Small Clojure interpreter, linter and formatter written in Go
License: EPL-1.0
URL: https://joker-lang.org
Source0: https://github.com/candid82/joker/archive/refs/tags/v%{version}.tar.gz#/joker-%{version}.tar.gz
Source1: vendor.tar.gz
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mageia}
BuildRequires: go-rpm-macros
%else
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.18
%endif
%description
Joker is a small Clojure interpreter, linter and formatter written in Go.
%prep
%setup -q
tar -zxf %{SOURCE1}
%build
GO111MODULE=on CGO_ENABLED=0 go generate ./...
GO111MODULE=on CGO_ENABLED=0 go build -mod=vendor -o %{name} -buildmode=pie \
-ldflags "-s -w"
%install
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%{_bindir}/%{name}
%changelog