diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31c4a18 --- /dev/null +++ b/.gitignore @@ -0,0 +1,83 @@ +/slirp4netns-c4e1bc5.tar.gz +/slirp4netns-0037042.tar.gz +/slirp4netns-30883b5.tar.gz +/slirp4netns-4992082.tar.gz +/slirp4netns-4889f52.tar.gz +/slirp4netns-5c690f7.tar.gz +/slirp4netns-f34ad90.tar.gz +/slirp4netns-6612517.tar.gz +/slirp4netns-d34e916.tar.gz +/slirp4netns-2f857ec.tar.gz +/slirp4netns-bf199bb.tar.gz +/slirp4netns-62cbdd3.tar.gz +/slirp4netns-4f5a083.tar.gz +/slirp4netns-85efff0.tar.gz +/slirp4netns-87a4bf7.tar.gz +/slirp4netns-10c0ee5.tar.gz +/slirp4netns-d23723e.tar.gz +/slirp4netns-b911c9a.tar.gz +/slirp4netns-96ff33c.tar.gz +/slirp4netns-1dfc6f6.tar.gz +/slirp4netns-aacef69.tar.gz +/slirp4netns-ed51817.tar.gz +/slirp4netns-bbd6f25.tar.gz +/slirp4netns-56c8370.tar.gz +/slirp4netns-4e51172.tar.gz +/slirp4netns-29db6bd.tar.gz +/slirp4netns-1a96e26.tar.gz +/slirp4netns-d2e449b.tar.gz +/slirp4netns-f9503fe.tar.gz +/slirp4netns-e8759b9.tar.gz +/slirp4netns-3527c98.tar.gz +/slirp4netns-0186bac.tar.gz +/slirp4netns-21fdece.tar.gz +/slirp4netns-1fea75f.tar.gz +/slirp4netns-e14da48.tar.gz +/slirp4netns-dad442a.tar.gz +/slirp4netns-e6b31fe.tar.gz +/slirp4netns-a8414d1.tar.gz +/slirp4netns-7ba0c6f.tar.gz +/slirp4netns-7560ba4.tar.gz +/slirp4netns-735fcd7.tar.gz +/slirp4netns-38334c4.tar.gz +/slirp4netns-b797921.tar.gz +/slirp4netns-4353fab.tar.gz +/slirp4netns-cac9a34.tar.gz +/slirp4netns-c0fef8d.tar.gz +/slirp4netns-bdcd9a7.tar.gz +/slirp4netns-c48f4d7.tar.gz +/slirp4netns-4367de7.tar.gz +/slirp4netns-ce56e0c.tar.gz +/slirp4netns-3caa737.tar.gz +/slirp4netns-56941dd.tar.gz +/slirp4netns-c2c87b9.tar.gz +/slirp4netns-94bd97d.tar.gz +/slirp4netns-483e855.tar.gz +/slirp4netns-fcda5d9.tar.gz +/slirp4netns-a32a0d0.tar.gz +/slirp4netns-99e1516.tar.gz +/slirp4netns-dd4af4f.tar.gz +/slirp4netns-4a30e56.tar.gz +/slirp4netns-8bf8338.tar.gz +/slirp4netns-23ce219.tar.gz +/slirp4netns-4c6befe.tar.gz +/slirp4netns-6d002ad.tar.gz +/slirp4netns-eecccdb.tar.gz +/slirp4netns-6767922.tar.gz +/slirp4netns-13ac4c2.tar.gz +/slirp4netns-4bce8d8.tar.gz +/slirp4netns-e2e4eea.tar.gz +/slirp4netns-7ed048f.tar.gz +/slirp4netns-d0a8cf1.tar.gz +/slirp4netns-f266258.tar.gz +/slirp4netns-0bac994.tar.gz +/slirp4netns-6dc0186.tar.gz +/slirp4netns-b156cc5.tar.gz +/slirp4netns-fc25b9e.tar.gz +/slirp4netns-ad49d7f.tar.gz +/slirp4netns-0a9773c.tar.gz +/slirp4netns-33eb5f7.tar.gz +/slirp4netns-df67b2f.tar.gz +/v1.1.12.tar.gz +/v1.2.0-beta.0.tar.gz +/v1.2.0.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..817070b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# slirp4netns + +The slirp4netns package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index b3ac7d5..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -slirp4netns package is retired on branch c10s for BAKERY-412 \ No newline at end of file diff --git a/slirp4netns.spec b/slirp4netns.spec new file mode 100644 index 0000000..00443e6 --- /dev/null +++ b/slirp4netns.spec @@ -0,0 +1,62 @@ +%global built_tag v1.2.0 +%global built_tag_strip %(b=%{built_tag}; echo ${b:1}) +%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"}) + +Name: slirp4netns +Version: %{gen_version} +Release: %autorelease +License: GPL-2.0-only +Summary: slirp for network namespaces +URL: https://github.com/rootless-containers/%{name} +# Tarball fetched from upstream +Source0: %{url}/archive/%{built_tag}.tar.gz +ExclusiveArch: %{golang_arches_future} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: go-md2man +BuildRequires: gcc +BuildRequires: glib2-devel +BuildRequires: git-core +BuildRequires: libcap-devel +BuildRequires: libseccomp-devel +BuildRequires: libslirp-devel +BuildRequires: make + +%description +slirp for network namespaces, without copying buffers across the namespaces. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{summary} + +This package contains library source intended for +building other packages which use import path with +%{import_path} prefix. + +%prep +%autosetup -Sgit %{name}-%{built_tag_strip} + +%build +./autogen.sh +./configure --prefix=%{_usr} --libdir=%{_libdir} +%{__make} generate-man + +%install +make DESTDIR=%{buildroot} install install-man + +%check + +#define license tag if not already defined +%{!?_licensedir:%global license %doc} + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..1cd7bed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v1.2.0.tar.gz) = 4ede7323aab92d0ad0026bc5e1aefc07898a5b50c4ff57c13eb9d8e75d73a4bb5ac992f021404053fcba2b05c56dcafcbfefbc4bbc47f72a0797ab62bd76a60a