2024-08-16 18:21:27 +00:00
committed by Git OBS Bridge
commit 664634ca67
11 changed files with 250 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

20
_service Normal file
View File

@@ -0,0 +1,20 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/goreleaser/nfpm</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v2.39.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="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
</service>
</services>

4
_servicedata Normal file
View File

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

3
nfpm-2.37.1.obscpio Normal file
View File

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

3
nfpm-2.38.0.obscpio Normal file
View File

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

3
nfpm-2.39.0.obscpio Normal file
View File

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

66
nfpm.changes Normal file
View File

@@ -0,0 +1,66 @@
-------------------------------------------------------------------
Fri Aug 16 18:11:13 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 2.39.0:
* build: fix packagers shell on darwin
* feat: env var substitution in description (#848)
* build: update flake.nix
* chore(deps): bump anchore/sbom-action from 0.17.0 to 0.17.1
(#846)
* chore(deps): bump sigstore/cosign-installer from 3.5.0 to 3.6.0
(#845)
* chore(deps): bump benc-uk/workflow-dispatch from 1.2.3 to 1.2.4
(#844)
* chore(deps): bump anchore/sbom-action from 0.16.1 to 0.17.0
(#843)
* chore(deps): bump anchore/sbom-action from 0.16.0 to 0.16.1
(#842)
* fix(deb): dpkg-sig format (#841)
* docs: update cmd docs
-------------------------------------------------------------------
Wed Jul 10 08:37:36 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 2.38.0:
* docs: clarify trailing slash in dst
* fix: system fs paths on windows (#838)
* test: centos8 mirrorlist has been down for a long time (#837)
* fix: rpm doesnt allow dashes in prerelease (#836)
* fix: better handle files owned by the fs (#834)
* chore: cleanup
* docs: update
* docs: update
* feat(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
(#832)
* feat(deps): bump github.com/klauspost/compress from 1.17.8 to
1.17.9 (#831)
* ci: update goreleaser config
* chore(deps): bump goreleaser/goreleaser-action from 5 to 6
(#827)
* chore(deps): bump cachix/install-nix-action from 26 to 27
(#823)
* docs: update cmd docs
-------------------------------------------------------------------
Mon Jun 17 18:48:05 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 2.37.1:
* fix: move mod back to go 1.21
* docs: update cmd docs
* test: test enumarate
* chore(deps): update go-rpmutils (#814)
* docs: update cmd docs
* feat: support for ipk packages (#818)
* chore(deps): update go-rpmutils
* chore(deps): bump golangci/golangci-lint-action from 5 to 6
(#819)
* chore(deps): bump anchore/sbom-action from 0.15.10 to 0.15.11
(#817)
* chore(deps): bump golangci/golangci-lint-action from 4 to 5
(#816)
-------------------------------------------------------------------
Mon Jun 17 18:47:53 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package nfpm: a simple deb, rpm, apk and arch linux packager
written in Go

4
nfpm.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: nfpm
version: 2.39.0
mtime: 1723686312
commit: abdde689ee5b84b2b0ac5ae58495b723a719d06a

120
nfpm.spec Normal file
View File

@@ -0,0 +1,120 @@
#
# spec file for package nfpm
#
# 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/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: nfpm
Version: 2.39.0
Release: 0
Summary: Simple deb, rpm, apk and arch linux packager written in Go
License: MIT
URL: https://github.com/goreleaser/nfpm
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.22
%description
nFPM is a simple and 0-dependencies deb, rpm, apk and arch linux packager
written in Go
%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
COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo)"
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 main.version=%{version} \
-X main.commit=${COMMIT_HASH} \
-X main.date=${BUILD_DATE} \
-X main.builtBy=OBS \
-X main.treeState=false" \
-o bin/%{name} ./cmd/%{name}
%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.md
%license LICENSE.md
%{_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
%defattr(-,root,root)
%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:d635d527cf9d39c359c8f807f1ac7388d5e96e73f6f2bc5b6a35abc460be0d59
size 4776007