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