diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..265d908 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/proxy-6553b83.tar.gz diff --git a/kata-proxy.spec b/kata-proxy.spec new file mode 100644 index 0000000..f9917c3 --- /dev/null +++ b/kata-proxy.spec @@ -0,0 +1,89 @@ +%global with_debug 1 + +%global provider github +%global provider_tld com +%global project kata-containers +%global repo proxy +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global git0 https://%{import_path} +%global commit0 6553b8382e7f17e7ae7ecb5d8801ec9bf6ffc00e +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +%if 0%{with_debug} +%global _find_debuginfo_dwz_opts %{nil} +%global _dwz_low_mem_die_limit 0 +%else +%global debug_package %{nil} +%endif # with_debug + +Name: kata-%{repo} +Version: 1.4.1 +Release: 1.git%{shortcommit0}%{?dist} +URL: %{git0} +Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz +BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} +BuildRequires: git +Summary: Kata proxy +License: ASL 2.0 + +Provides: bundled(golang(github.com/davecgh/go-spew)) = v1.1.0 +Provides: bundled(golang(github.com/hashicorp/yamux)) = f5742cb6 +Provides: bundled(golang(github.com/pmezard/go-difflib)) = v1.0.0 +Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.0.4 +Provides: bundled(golang(github.com/stretchr/testify)) = v1.2.1 +Provides: bundled(golang(golang.org/x/crypto)) = 13931e22f9e72ea58bb73048bc752b48c6d4d4ac +Provides: bundled(golang(golang.org/x/sys)) = 810d7000345868fc619eb81f46307107118f4ae1 + +%description +%{summary} + +%prep +%autosetup -Sgit -n %{repo}-%{commit0} + +%build +mkdir _build +pushd _build +mkdir -p src/%{provider}.%{provider_tld}/%{project} +ln -s $(dirs +1 -l) src/%{import_path} +popd + +mv vendor src +export GOPATH=$(pwd)/_build:$(pwd) +%gobuild -o bin/%{name} %{import_path} + +%install +# install binaries +install -dp %{buildroot}%{_libexecdir}/kata-containers +install -p -m 755 bin/%{name} %{buildroot}%{_libexecdir}/kata-containers + +%clean + +%files +%license LICENSE +%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md +%dir %{_libexecdir}/kata-containers +%{_libexecdir}/kata-containers/%{name} + +%changelog +* Thu Dec 13 2018 Lokesh Mandvekar - 1.4.1-1.git6553b83 +- Resolves: #1590423 - first build for Fedora +- bump to v1.4.1 + +* Wed Nov 21 2018 Lokesh Mandvekar - 1.3.1-5.gitd364b2e +- build for all arches + +* Wed Nov 21 2018 Lokesh Mandvekar - 1.3.1-4.gitd364b2e +- no need to specify systemd as BR + +* Wed Nov 21 2018 Lokesh Mandvekar - 1.3.1-3.gitd364b2e +- no need to specify make as BR + +* Mon Nov 12 2018 Lokesh Mandvekar - 1.3.1-2.gitd364b2e +- bundled Provides + +* Sat Nov 10 2018 Lokesh Mandvekar - 1.3.1-1.gitd364b2e +- bump to v1.3.1 +- built commit d364b2e + +* Thu Jun 14 2018 Lokesh Mandvekar - 1.0.0-1.gita69326b +- first build (ready for Fedora review) diff --git a/sources b/sources new file mode 100644 index 0000000..62c5697 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (proxy-6553b83.tar.gz) = b5512d64c37b9ad835c52b6179eef5e390855323c69458c8e49800a3c3c079ff914d211fd5160a46f6db417f90bfa63cc58773c6c94167efbc064b673051617b