2025-01-28 14:21:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package joker
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 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 update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
Version: 1.5.0
|
2025-01-28 14:21:42 +00:00
|
|
|
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
|
|
|
|
%autosetup -p1
|
|
|
|
tar -zxf %{SOURCE1}
|
Version update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
%autopatch
|
2025-01-28 14:21:42 +00:00
|
|
|
|
|
|
|
%build
|
Version update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
%ifarch %ix86
|
|
|
|
GO111MODULE=on CGO_ENABLED=1 go generate ./...
|
|
|
|
GO111MODULE=on CGO_ENABLED=1 go build -mod=vendor -o %{name} -buildmode=pie \
|
|
|
|
-ldflags "-s -w"
|
|
|
|
%else
|
2025-01-28 14:21:42 +00:00
|
|
|
GO111MODULE=on CGO_ENABLED=0 go generate ./...
|
|
|
|
GO111MODULE=on CGO_ENABLED=0 go build -mod=vendor -o %{name} -buildmode=pie \
|
|
|
|
-ldflags "-s -w"
|
Version update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
%endif
|
2025-01-28 14:21:42 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%check
|
Version update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
%ifarch x86_64 amd64 aarch64
|
2025-01-28 14:21:42 +00:00
|
|
|
./all-tests.sh
|
Version update to 1.5.0, test change, patch removal
- Update to version 1.5.0
* add NaN?, abs, infinite?, parse-boolean, parse-double,
parse-long, partitionv, partitionv-all, splitv-at, repl to
joker.core.
* Linter improvements:
* add add-tap, remove-tap and tap> to ClojureScript linter
* add seq-to-map-for-destructuring to Clojure linter
* add stream related functions (stream-into!, stream-into!,
stream-seq!, stream-transduce!) to Clojure linter
* Updated vendor archive
- Removal of obsolete reproducible.patch
- Disabling test suite for ix86. Was only written for 64-bit
2025-07-10 16:19:51 +02:00
|
|
|
%endif
|
2025-01-28 14:21:42 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|