a4b4e7
%global git0 https://github.com/projectatomic/%{name}
a4b4e7
%global commit0 299e781918c053d72b3d5fed8c6c149366d20ab0
a4b4e7
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
a4b4e7
a4b4e7
Name: oci-umount
a4b4e7
Epoch: 2
a4b4e7
Version: 2.0.0
a4b4e7
Release: 1.git%{shortcommit0}%{?dist}
a4b4e7
# no go-md2man for ppc64
a4b4e7
ExcludeArch: ppc64
a4b4e7
URL: %{git0}
a4b4e7
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
a4b4e7
License: GPLv3+
a4b4e7
Summary: OCI umount hook for container runtimes
a4b4e7
BuildRequires: autoconf
a4b4e7
BuildRequires: automake
a4b4e7
BuildRequires: git
a4b4e7
BuildRequires: go-md2man
a4b4e7
BuildRequires: pkgconfig(yajl)
a4b4e7
BuildRequires: pkgconfig(libselinux)
a4b4e7
BuildRequires: pkgconfig(mount)
a4b4e7
BuildRequires: pcre-devel
a4b4e7
Obsoletes: docker-%{name} <= 2:1.13.1-22
a4b4e7
Provides: docker-%{name} = %{epoch}:%{version}-%{release}
a4b4e7
a4b4e7
%description
a4b4e7
OCI umount hooks unmount potential leaked mount points in a containers
a4b4e7
mount namespaces.
a4b4e7
a4b4e7
%prep
a4b4e7
%autosetup -Sgit -n %{name}-%{commit0}
a4b4e7
a4b4e7
%build
a4b4e7
autoreconf -i
a4b4e7
%configure --libexecdir=%{_libexecdir}/oci/hooks.d/
a4b4e7
make %{?_smp_mflags}
a4b4e7
a4b4e7
%install
a4b4e7
%make_install
a4b4e7
a4b4e7
%check
a4b4e7
a4b4e7
#define license tag if not already defined
a4b4e7
%{!?_licensedir:%global license %doc}
a4b4e7
a4b4e7
%files
a4b4e7
%license LICENSE
a4b4e7
%doc README.md
a4b4e7
%config(noreplace) %{_sysconfdir}/%{name}.conf
a4b4e7
%dir %{_libexecdir}/oci
a4b4e7
%dir %{_libexecdir}/oci/hooks.d
a4b4e7
%{_libexecdir}/oci/hooks.d/%{name}
a4b4e7
%{_mandir}/man1/%{name}.1*
a4b4e7
a4b4e7
%changelog
a4b4e7
* Mon Aug 14 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-1.git299e781
a4b4e7
- initial build as independent package
a4b4e7
- obsoletes docker-oci-umount