ad1cb5
%global provider        github
ad1cb5
%global provider_tld    com
ad1cb5
%global project         projectatomic
ad1cb5
%global repo            oci-umount
ad1cb5
# https://github.com/projectatomic/oci-umount
ad1cb5
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
ad1cb5
%global import_path     %{provider_prefix}
ad1cb5
%global commit          87f9237e1de6e0bb6aedec9165db0ffe214df004
ad1cb5
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
ad1cb5
ad1cb5
Name:           oci-umount
ad1cb5
Epoch:          2
ad1cb5
Version:        2.3.4
ad1cb5
Release:        2.git%{shortcommit}%{?dist}
ad1cb5
Summary:        OCI umount hook for docker
ad1cb5
Group:          Applications/Text
ad1cb5
License:        GPLv3+
ad1cb5
URL:            https://%{provider_prefix}
ad1cb5
Source0:        https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
ad1cb5
ExclusiveArch: x86_64 aarch64 ppc64le s390x
ad1cb5
Obsoletes: docker-oci-umount < 2:1.13.1-13
ad1cb5
BuildRequires:  gcc
ad1cb5
BuildRequires:  autoconf
ad1cb5
BuildRequires:  automake
ad1cb5
BuildRequires:  pkgconfig(yajl)
ad1cb5
BuildRequires:  pkgconfig(libselinux)
ad1cb5
BuildRequires:  pkgconfig(mount)
ad1cb5
BuildRequires:  golang-github-cpuguy83-go-md2man
ad1cb5
BuildRequires:  pcre-devel
ad1cb5
ad1cb5
%description
ad1cb5
OCI umount hooks umount potential leaked mount points in a containers
ad1cb5
mount name-spaces
ad1cb5
ad1cb5
%prep
ad1cb5
%setup -q -n %{name}-%{commit}
ad1cb5
ad1cb5
%build
ad1cb5
autoreconf -i
ad1cb5
%configure --libexecdir=%{_libexecdir}/oci/hooks.d/
ad1cb5
%make_build
ad1cb5
ad1cb5
%install
ad1cb5
%make_install
ad1cb5
install -d %{buildroot}%{_datadir}/%{name}/%{name}.d
ad1cb5
ad1cb5
%files
ad1cb5
%{_libexecdir}/oci/hooks.d/%{name}
ad1cb5
%{_mandir}/man1/%{name}.1*
ad1cb5
%doc README.md
ad1cb5
%license LICENSE
ad1cb5
%config(noreplace) %{_sysconfdir}/%{name}.conf
ad1cb5
%dir %{_libexecdir}/oci
ad1cb5
%dir %{_libexecdir}/oci/hooks.d
ad1cb5
%dir %{_datadir}/containers/oci/hooks.d
ad1cb5
%dir %{_datadir}/%{name}
ad1cb5
%dir %{_datadir}/%{name}/%{name}.d
ad1cb5
%{_datadir}/%{name}/oci-umount-options.conf
ad1cb5
%{_datadir}/containers/oci/hooks.d/%{name}.json
ad1cb5
%ghost %{_sysconfdir}/%{name}/%{name}.d
ad1cb5
%ghost /etc/oci-umount/oci-umount-options.conf
ad1cb5
ad1cb5
%changelog
ad1cb5
* Wed Aug 08 2018 Lokesh Mandvekar <lsm5@redhat.com> - 2:2.3.4-2.git87f9237
ad1cb5
- Resolves: #1614019 - disable i686 (and also ppc64)
ad1cb5
ad1cb5
* Wed Feb 28 2018 Dan Walsh <dwalsh@redhat.com> - 2:2.3.4-1.git
ad1cb5
- Add new paths for CRI-O
ad1cb5
ad1cb5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.3.3-2.gite3c9055
ad1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ad1cb5
ad1cb5
* Mon Jan 22 2018 Dan Walsh <dwalsh@redhat.com> - 2:2.3.3-1.git
ad1cb5
- Support passing of stage via stage environment variable.
ad1cb5
ad1cb5
* Thu Dec 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.3.2-1.git
ad1cb5
- Fix oci-umount.json to run in stages to support CRI-O
ad1cb5
ad1cb5
* Tue Nov 7 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.3.1-1.git51e7c505
ad1cb5
-  Provide a knob log_level to control verbosity of messages
ad1cb5
ad1cb5
* Thu Sep 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.2.0-2.git0a4dcd6
ad1cb5
* Thu Sep 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.2.0-2.git0a4dcd6
ad1cb5
- Add support for multiple configuration files.
ad1cb5
  oci-umount will still read config file /etc/oci-umount.conf if it
ad1cb5
  exists, but will also read config files in /usr/share/oci-umount/oci-umount.d
ad1cb5
  and config files in /etc/oci-umount/oci-umount.d.  If the same file name exists
ad1cb5
  in both directories, then oci-umount will only use the content in /ect/oci-umount/oci-umount.d.
ad1cb5
- Make Logs less noisy
ad1cb5
- Improve logs output, adding containier id, and needed file information
ad1cb5
- Add support for specifying submounts PATH/* will unmount all mountpoints 
ad1cb5
  under PATH in a container
ad1cb5
- Support for oci configuration files to specify when to run the plugin
ad1cb5
ad1cb5
* Thu Sep 21 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.2.0-1.git0a4dcd6
ad1cb5
- bump to v2.2.0
ad1cb5
ad1cb5
* Thu Aug 17 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 2:2.0.0-2.gitf90b64c
ad1cb5
- rebased to f90b64c144ff1a126f7c57b32396e8990ca696fd
ad1cb5
ad1cb5
* Thu Jul 27 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 2:1.13-103.git7623f6a
ad1cb5
- obsolete with epoch
ad1cb5
ad1cb5
* Thu Jul 20 2017 fkluknav <fkluknav@redhat.com> - 2:1.13-102.git7623f6a
ad1cb5
- fixes according to package review
ad1cb5
ad1cb5
* Mon Jul 17 2017 fkluknav <fkluknav@redhat.com> - 2:1.13-101.git7623f6a
ad1cb5
- adapted for Fedora, versioning continues from the current docker version
ad1cb5
ad1cb5
* Wed May 17 2017 Dan Walsh <dwalsh@redhat.com> - 0.1.1
ad1cb5
- Initial RPM release