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