From 907caf3bbe99c6cb554931cabca0ab05d6e04a7463a83593f49d5bb569318741 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 24 Nov 2021 22:54:28 +0000 Subject: [PATCH] Accepting request 933419 from devel:kubic OBS-URL: https://build.opensuse.org/request/show/933419 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/buildkit?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 18 ++++++++++ _servicedata | 6 ++++ buildkit-0.9.3.tar.gz | 3 ++ buildkit.changes | 4 +++ buildkit.service | 11 +++++++ buildkit.spec | 77 +++++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 9 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 buildkit-0.9.3.tar.gz create mode 100644 buildkit.changes create mode 100644 buildkit.service create mode 100644 buildkit.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..399d44f --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + https://github.com/moby/buildkit.git + git + .git + v0.9.3 + @PARENT_TAG@ + enable + v(.*) + + + + *.tar + gz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..8a6035b --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + https://github.com/rootless-containers/rootlesskit.git + b25a0bad15d664c4ee8885ba622569425e918a68 + https://github.com/moby/buildkit.git + 6d53896d28a0b1b1670617ebcdd0582bcab14b90 \ No newline at end of file diff --git a/buildkit-0.9.3.tar.gz b/buildkit-0.9.3.tar.gz new file mode 100644 index 0000000..b64244f --- /dev/null +++ b/buildkit-0.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f57fb818637e28697d05439726cc906e1219351fe0b6945214a61cb63b4ce58 +size 6743818 diff --git a/buildkit.changes b/buildkit.changes new file mode 100644 index 0000000..3a104eb --- /dev/null +++ b/buildkit.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 24 09:43:06 UTC 2021 - Richard Brown + +- Initial Packaging diff --git a/buildkit.service b/buildkit.service new file mode 100644 index 0000000..e68811c --- /dev/null +++ b/buildkit.service @@ -0,0 +1,11 @@ +[Unit] +Description=BuildKit +Requires=buildkit.socket +After=buildkit.socket +Documentation=https://github.com/moby/buildkit + +[Service] +ExecStart=/usr/bin/buildkitd --addr fd:// + +[Install] +WantedBy=multi-user.target diff --git a/buildkit.spec b/buildkit.spec new file mode 100644 index 0000000..8995a04 --- /dev/null +++ b/buildkit.spec @@ -0,0 +1,77 @@ +# +# spec file for package rootlesskit +# +# Copyright (c) 2021 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/ +# + +%global provider github +%global provider_tld com +%global project moby +%global repo buildkit +%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} +%global import_path %{provider_prefix} + +Name: buildkit +Version: 0.9.3 +Release: 0 +Summary: Toolkit for converting source code to build artifacts +License: Apache-2.0 +URL: https://github.com/moby/buildkit +Source: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +Source2: buildkit.service +BuildRequires: golang(API) >= 1.13 +BuildRequires: containerd +BuildRequires: runc +Requires: containerd +Requires: runc +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. + +%prep +%setup -qa1 + +%build +go build -mod=vendor -buildmode=pie -o _output/buildkitd %{provider_prefix}/cmd/buildkitd +go build -mod=vendor -buildmode=pie -o _output/buildctl %{provider_prefix}/cmd/buildctl + + +%install +mkdir -p %{buildroot}%{_bindir}/ +mkdir -p %{buildroot}%{_unitdir}/ +install -m 0755 _output/buildkitd %{buildroot}%{_bindir}/buildkitd +install -m 0755 _output/buildctl %{buildroot}%{_bindir}/buildctl +install -m 0755 %{SOURCE2} %{buildroot}%{_unitdir}/buildkit.service +install -m 0755 examples/systemd/buildkit.socket %{buildroot}%{_unitdir}/buildkit.socket + +%post +%systemd_post buildkit.socket buildkit.service + +%preun +%systemd_preun buildkit.socket buildkit.service + +%postun +%systemd_postun_with_restart buildkit.socket buildkit.service + +%files +%license LICENSE +%doc README.md docs/*.md +%{_bindir}/buildkitd +%{_bindir}/buildctl +%{_unitdir}/buildkit.socket +%{_unitdir}/buildkit.service + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..4c6ec8f --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5868e3cf3191b00cf2013207a6936f2e658e17564b3e6ec86087bd6092e37909 +size 5956400