Johannes Kastl 2024-10-11 07:06:45 +00:00 committed by Git OBS Bridge
commit b9a95debb9
10 changed files with 237 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/updatecli/updatecli</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.85.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="go_modules" mode="manual">
</service>
<!-- services below are running at buildtime -->
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/updatecli/updatecli</param>
<param name="changesrevision">691db5c2ffd7550131270217ccdaee51d08b36e8</param></service></servicedata>

3
updatecli-0.84.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:830c6262f129abb907f121716b5398eeb69530a8ee47c32a32422bd8acc86b8a
size 2915340

3
updatecli-0.85.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2fe648d0280d54fbcfac6720364482c7fbdcb9814e244b5448b05c9f16b2b5cc
size 2950668

54
updatecli.changes Normal file
View File

@ -0,0 +1,54 @@
-------------------------------------------------------------------
Fri Oct 11 06:54:58 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.85.0:
* deps(go): bump module github.com/getsops/sops/v3 (#2787)
* chore(deps): Bump sigstore/cosign-installer from 3.6.0 to 3.7.0
(#2771)
* feat(autodiscovery/precommit): initial implementation (#2773)
* feat: dockerfile autodiscovery should ignore stage name and
scratch (#2752)
* deps(go): bump module golang.org/x/text (#2772)
* Disable spellcheck (#2765)
* chore(gha): update check-spelling to 0.0.22 (#2759)
* deps: Bump Golang version to 1.23.2 (#2753)
* deps: bump updatecli version to v0.84.1 (#2746)
-------------------------------------------------------------------
Wed Oct 02 06:22:27 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.84.1:
* Fix prerelease semver filtering when current version is stable
(#2736)
* fix(prow/e2e): ignore broken image and use updatecli-test
(#2737)
* deps(go): bump module github.com/fluxcd/source-controller/api
(#2729)
* chore: deps(go): bump module github.com/drone/go-scm to v1.38.7
(#2724)
* deps(go): bump module helm.sh/helm/v3 (#2719)
* deps(go): bump module helm.sh/helm/v3 (#2713)
* chore: deps(go): bump module github.com/drone/go-scm to v1.38.6
(#2706)
* deps(go): bump module github.com/beevik/etree (#2702)
* deps(go): bump module github.com/aws/aws-sdk-go (#2691)
* chore: update golang patch one at a time (#2689)
* deps(go): bump module github.com/getsops/sops/v3 (#2684)
* deps: Bump Golang version to 1.23.1 (#2672)
* deps(go): bump module
github.com/testcontainers/testcontainers-go (#2677)
* deps: bump docker dependencies (#2671)
* deps(go): bump module golang.org/x/mod (#2669)
* deps(go): bump module golang.org/x/text (#2664)
* deps(go): bump module golang.org/x/oauth2 (#2658)
* chore(deps): Bump github.com/opencontainers/runc from 1.1.12 to
1.1.14 (#2647)
* chore(text): switch to httpclient (#2622)
* chore(spelling): add end of line new line (#2632)
* fix spelling warning (#2629)
* deps: bump updatecli version to v0.84.0 (#2623)
-------------------------------------------------------------------
Tue Sep 24 05:20:02 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package updatecli: a declarative dependency management tool

4
updatecli.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: updatecli
version: 0.85.0
mtime: 1728145826
commit: 691db5c2ffd7550131270217ccdaee51d08b36e8

120
updatecli.spec Normal file
View File

@ -0,0 +1,120 @@
#
# spec file for package updatecli
#
# 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: updatecli
Version: 0.85.0
Release: 0
Summary: A Declarative Dependency Management tool
License: Apache-2.0
URL: https://github.com/updatecli/updatecli
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.23.1
%description
Updatecli is a tool used to apply file update strategies. Designed to be used
from everywhere, each application "run" detects if a value needs to be updated
using a custom strategy then apply changes according to the strategy.
You describe your update strategy in a file then you run updatecli to it.
Updatecli reads a yaml or a go template configuration file, then works into
three stages.
%package -n %{name}-bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description -n %{name}-bash-completion
Bash command line completion support for %{name}.
%package -n %{name}-fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description -n %{name}-fish-completion
Fish command line completion support for %{name}.
%package -n %{name}-zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description -n %{name}-zsh-completion
zsh command line completion support for %{name}.
%prep
%autosetup -p 1 -a 1
%build
GO_VERSION="$(go version)"
DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}")
go build \
-mod=vendor \
-buildmode=pie \
-ldflags=" \
-X \"github.com/updatecli/updatecli/pkg/core/version.GoVersion=${GO_VERSION}\" \
-X github.com/updatecli/updatecli/pkg/core/version.Version=v%{version} \
-X github.com/updatecli/updatecli/pkg/core/version.BuildTime=${BUILD_DATE}" \
-o bin/%{name} ./main.go
%install
# Install the binary.
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
# create the bash completion file
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
%{buildroot}/%{_bindir}/%{name} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
# create the fish completion file
mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/
%{buildroot}/%{_bindir}/%{name} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
# create the zsh completion file
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d/
%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
%files
%doc README.adoc
%license LICENSE
%{_bindir}/%{name}
%files -n %{name}-bash-completion
%dir %{_datarootdir}/bash-completion/completions/
%{_datarootdir}/bash-completion/completions/%{name}
%files -n %{name}-fish-completion
%dir %{_datarootdir}/fish
%dir %{_datarootdir}/fish/vendor_completions.d
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%files -n %{name}-zsh-completion
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6cadc2b2d3b7ba447cc31aac1fd631c99a2ba58f37e0bf291a3b1f9ddc6f3a0b
size 23264539