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