From a4b4e7044fa39bc1517aa32f67f22551cc55cad5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 19 2017 14:33:27 +0000 Subject: import oci-umount-2.0.0-1.git299e781.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3beca0e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/oci-umount-299e781.tar.gz diff --git a/.oci-umount.metadata b/.oci-umount.metadata new file mode 100644 index 0000000..8ae9056 --- /dev/null +++ b/.oci-umount.metadata @@ -0,0 +1 @@ +a959d8a2d5b6bc5dfd2f5b5a16faa0f9edfeaf8e SOURCES/oci-umount-299e781.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/oci-umount.spec b/SPECS/oci-umount.spec new file mode 100644 index 0000000..b54a968 --- /dev/null +++ b/SPECS/oci-umount.spec @@ -0,0 +1,58 @@ +%global git0 https://github.com/projectatomic/%{name} +%global commit0 299e781918c053d72b3d5fed8c6c149366d20ab0 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: oci-umount +Epoch: 2 +Version: 2.0.0 +Release: 1.git%{shortcommit0}%{?dist} +# no go-md2man for ppc64 +ExcludeArch: ppc64 +URL: %{git0} +Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz +License: GPLv3+ +Summary: OCI umount hook for container runtimes +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: git +BuildRequires: go-md2man +BuildRequires: pkgconfig(yajl) +BuildRequires: pkgconfig(libselinux) +BuildRequires: pkgconfig(mount) +BuildRequires: pcre-devel +Obsoletes: docker-%{name} <= 2:1.13.1-22 +Provides: docker-%{name} = %{epoch}:%{version}-%{release} + +%description +OCI umount hooks unmount potential leaked mount points in a containers +mount namespaces. + +%prep +%autosetup -Sgit -n %{name}-%{commit0} + +%build +autoreconf -i +%configure --libexecdir=%{_libexecdir}/oci/hooks.d/ +make %{?_smp_mflags} + +%install +%make_install + +%check + +#define license tag if not already defined +%{!?_licensedir:%global license %doc} + +%files +%license LICENSE +%doc README.md +%config(noreplace) %{_sysconfdir}/%{name}.conf +%dir %{_libexecdir}/oci +%dir %{_libexecdir}/oci/hooks.d +%{_libexecdir}/oci/hooks.d/%{name} +%{_mandir}/man1/%{name}.1* + +%changelog +* Mon Aug 14 2017 Lokesh Mandvekar - 2:2.0.0-1.git299e781 +- initial build as independent package +- obsoletes docker-oci-umount