## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 22; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm # https://github.com/google/starlark-go/issues/335 %ifnarch %{arm} %{ix86} %bcond_without check %endif # Avoid noarch package built differently on different architectures %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(golang.org/x/sys/unix\\)$ # https://github.com/google/starlark-go %global goipath go.starlark.net %global forgeurl https://github.com/google/starlark-go %global commit 0d7263928a74a8d4cf6e23b648bace6925b65dbb %gometa %global common_description %{expand: Starlark is a dialect of Python intended for use as a configuration language. Like Python, it is an untyped dynamic language with high-level data types, first-class functions with lexical scope, and garbage collection. Unlike CPython, independent Starlark threads execute in parallel, so Starlark workloads scale well on parallel machines. Starlark is a small and simple language with a familiar and highly readable syntax. You can use it as an expressive notation for structured data, defining functions to eliminate repetition, or you can use it to add scripting capabilities to an existing application.} %global golicenses LICENSE %global godocs *.md %global gosupfiles ${star[@]} Name: %{goname} Version: 0 Release: %autorelease Summary: Dialect of Python intended for use as a configuration language # A couple of test files are under the Apache License 2.0 # Automatically converted from old format: BSD and ASL 2.0 - review is highly recommended. License: LicenseRef-Callaway-BSD AND Apache-2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/chzyer/readline) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/term) BuildRequires: golang(google.golang.org/protobuf/encoding/protojson) BuildRequires: golang(google.golang.org/protobuf/encoding/prototext) BuildRequires: golang(google.golang.org/protobuf/proto) BuildRequires: golang(google.golang.org/protobuf/reflect/protodesc) BuildRequires: golang(google.golang.org/protobuf/reflect/protoreflect) BuildRequires: golang(google.golang.org/protobuf/reflect/protoregistry) BuildRequires: golang(google.golang.org/protobuf/types/descriptorpb) BuildRequires: golang(google.golang.org/protobuf/types/dynamicpb) %description %{common_description} %gopkg %prep %goprep %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install mapfile -t star <<< $(find . -name "*.star" -type f) %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog ## START: Generated by rpmautospec * Mon Sep 02 2024 Miroslav Suchý - 0-22 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 0-20 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 02 2023 Alejandro Sáez - 0-17 - Update to 0d7263928a * Fri Jul 21 2023 Alejandro Sáez - 0-16 - Skip TestExecFile in s390x * Fri Jul 21 2023 Alejandro Sáez - 0-15 - Fix incorrect build tags * Thu Jul 20 2023 Fedora Release Engineering - 0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 17 2023 Alejandro Sáez - 0-13 - New release * Thu Jan 19 2023 Fedora Release Engineering - 0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 20 2022 Alejandro Saez Morollon - 0-10 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec