329dab
%global provider        github
329dab
%global provider_tld    com
329dab
%global project         projectatomic
329dab
%global repo            oci-systemd-hook
329dab
# https://github.com/projectatomic/oci-systemd-hook
329dab
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
329dab
%global import_path     %{provider_prefix}
329dab
%global commit          2d0b8a328d2e0b22d00a47911a0e6ee16e0ea072
329dab
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
329dab
329dab
Name:           %{repo}
329dab
Epoch:          1
329dab
Version:        0.1.15
329dab
Release:        2.git%{shortcommit}%{?dist}
329dab
# golang / go-md2man not available on ppc64
329dab
ExcludeArch:    ppc64 i686
329dab
Summary:        OCI systemd hook for docker
329dab
Group:          Applications/Text
329dab
License:        GPLv3+
329dab
URL:            https://%{import_path}
329dab
Source0:        https://%{import_path}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
329dab
BuildRequires:  autoconf
329dab
BuildRequires:  automake
329dab
BuildRequires:  pkgconfig(yajl)
329dab
BuildRequires:  pkgconfig(libselinux)
329dab
BuildRequires:  pkgconfig(mount)
329dab
BuildRequires:  pcre-devel
329dab
BuildRequires:  go-md2man
329dab
Obsoletes:      %{name} <= 1.10.3-46
329dab
329dab
%description
329dab
OCI systemd hooks enable running systemd in a OCI runc/docker container.
329dab
329dab
%prep
329dab
%setup -q -n %{name}-%{commit}
329dab
329dab
%build
329dab
aclocal
329dab
autoreconf -i
329dab
%configure --libexecdir=%{_libexecdir}/oci/hooks.d/
329dab
make %{?_smp_mflags}
329dab
329dab
%install
329dab
%make_install
329dab
329dab
#define license tag if not already defined
329dab
%{!?_licensedir:%global license %doc}
329dab
329dab
%files
329dab
%doc README.md
329dab
%license LICENSE
329dab
%{_mandir}/man1/%{name}.1*
329dab
%dir %{_libexecdir}/oci
329dab
%dir %{_libexecdir}/oci/hooks.d
329dab
%{_libexecdir}/oci/hooks.d/%{name}
329dab
%dir %{_usr}/share/containers/oci/hooks.d
329dab
%{_usr}/share/containers/oci/hooks.d/oci-systemd-hook.json
329dab
329dab
%changelog
329dab
* Wed Aug 08 2018 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.15-2.git2d0b8a3
329dab
- Resolves: #1614020 - disable i686 temporarily cause no go-md2man
329dab
329dab
* Thu Dec 21 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.15-1.git
329dab
- Fix issue with oci-systemd-hook running in user namespaces
329dab
- fix json file to run container with proper stage field.
329dab
329dab
* Thu Sep 14 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.14-1.git1ba44c6
329dab
- Add CRI-O configuration file support
329dab
329dab
* Tue Aug 15 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.13-1.gitafe4b4a
329dab
- Allow volume mounting of files under /run directory
329dab
- Specifically docker.sock to fix a bug.
329dab
329dab
* Fri Aug 11 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1:0.1.12-1.git1e84754
329dab
- bump to v0.1.12
329dab
- add BR: pcre-devel
329dab
- ExcludeArch: ppc64 because no golang or go-md2man
329dab
329dab
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.1.11-3.git1ac958a
329dab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
329dab
329dab
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.1.11-2.git1ac958a
329dab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
329dab
329dab
* Thu Jul 13 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.11-1.gitfbf3b42
329dab
- Allow container definitions where rootfs is not an absolute path
329dab
329dab
* Thu Jul 13 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.10-1.gitfbf3b42
329dab
- Use env variable to disable oci-systemd-hook
329dab
329dab
* Thu Jun 29 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.9-1.gitaa42622
329dab
- Cleaned up to work with newer versions of runc and as a cri-o hook
329dab
329dab
* Tue Jun 6 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.8-1.gitd899a8e
329dab
- Fixes for running with user namespace
329dab
329dab
* Wed Mar 29 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.7-1.gitfe22236
329dab
- rh-ulrich-o - Patch to allocate configData dynamically
329dab
329dab
* Mon Mar 6 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.6-1.git16f7c8a
329dab
- Reimplement systemd handling.
329dab
- Remove docker path from systemdhook
329dab
329dab
* Wed Feb 8 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.5-1.git16f7c8a
329dab
- Fix mounting of /var/log/journal inside of the container
329dab
329dab
* Thu Feb 2 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.4-10.git5db667f
329dab
- oci-systemd-hook: do not fail if /run/secrets does not exist
329dab
- Fix compiler -Wall -Wextra issues
329dab
329dab
* Thu Jan 12 2017 Dan Walsh <dwalsh@redhat.com> - 1:0.1.4-9.git671c428
329dab
- Resolves: #1412728
329dab
- built commit 671c428
329dab
329dab
* Tue Dec 20 2016 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.4-8.git45455fe
329dab
- Resolves: #1364237
329dab
- built commit 45455fe
329dab
329dab
* Tue Oct 25 2016 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:0.1.4-7.gita9c551a
329dab
- rebase
329dab
329dab
* Tue Jul 05 2016 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.4-6.git337078c
329dab
- Resolves: #1355905
329dab
- built commit 337078c
329dab
329dab
* Tue Jul 05 2016 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.4-5.git41491a3
329dab
- Obsoletes the subpackage earlier provided by docker
329dab
329dab
* Thu Jun 30 2016 Lokesh Mandvekar <lsm5@redhat.com> - 1:0.1.4-4.git41491a3
329dab
- Bump Epoch to 1 so that it can obsolete subpackage from docker
329dab
329dab
* Tue Jun 28 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.4-3.git41491a3
329dab
- re-add provider_prefix since gofed needs it
329dab
329dab
* Thu Jun 23 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.4-2.git41491a3
329dab
- built commit 41491a3
329dab
- spec file cleanup
329dab
- remove provider_prefix and only use import_path
329dab
329dab
* Thu Feb 18 2016 Dan Walsh <dwalsh@redhat.com> - 0.1.4-1.gitde345df
329dab
- Fix up to prepare for review
329dab
329dab
* Mon Nov 23 2015 Mrunal Patel <mrunalp@gmail.com> - 0.1.3
329dab
- Fix bug in man page installation
329dab
329dab
* Mon Nov 23 2015 Mrunal Patel <mrunalp@gmail.com> - 0.1.2
329dab
- Add man pages
329dab
329dab
* Mon Nov 23 2015 Mrunal Patel <mrunalp@gmail.com> - 0.1.1
329dab
- Initial RPM release