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