2018-02-15 13:23:04 +01:00
|
|
|
#
|
|
|
|
# spec file for package libcontainers-common
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-05 13:46:19 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-15 13:23:04 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libcontainers-common
|
|
|
|
Version: 0.0.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Configuration files common to github.com/containers
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Management
|
2018-09-05 13:46:19 +02:00
|
|
|
URL: https://github.com/containers
|
|
|
|
Source0: image.tar.xz
|
|
|
|
Source1: storage.tar.xz
|
|
|
|
Source2: LICENSE
|
|
|
|
Source3: policy.json
|
|
|
|
Source4: storage.conf
|
|
|
|
Source5: mounts.conf
|
|
|
|
Source6: registries.conf
|
|
|
|
Source7: seccomp.json
|
|
|
|
BuildRequires: go-go-md2man
|
|
|
|
Provides: libcontainers-image
|
|
|
|
Provides: libcontainers-storage
|
|
|
|
Obsoletes: libcontainers-image
|
|
|
|
Obsoletes: libcontainers-storage
|
|
|
|
BuildArch: noarch
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%description
|
2018-09-05 13:46:19 +02:00
|
|
|
Configuration files and manpages shared by tools that are based on the
|
|
|
|
github.com/containers libraries, such as Buildah, CRI-O, Podman and Skopeo.
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%prep
|
2018-09-05 13:46:19 +02:00
|
|
|
%setup -q -T -D -b 0 -n image
|
|
|
|
%setup -q -T -D -b 1 -n storage
|
|
|
|
# copy the LICENSE file in the build root
|
|
|
|
cd ..
|
|
|
|
cp %{SOURCE2} .
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%build
|
2018-09-05 13:46:19 +02:00
|
|
|
cd ..
|
|
|
|
pwd
|
|
|
|
# compile containers/image manpages
|
|
|
|
cd image
|
|
|
|
for md in docs/*.md
|
|
|
|
do
|
|
|
|
go-md2man -in $md -out $md
|
|
|
|
done
|
|
|
|
rename '.5.md' '.5' docs/*
|
|
|
|
rename '.md' '.1' docs/*
|
|
|
|
cd ..
|
|
|
|
# compile containers/storage manpages
|
|
|
|
cd storage
|
|
|
|
for md in docs/*.5.md
|
|
|
|
do
|
|
|
|
go-md2man -in $md -out $md
|
|
|
|
done
|
|
|
|
rename '.5.md' '.5' docs/*
|
|
|
|
cd ..
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%install
|
2018-09-05 13:46:19 +02:00
|
|
|
cd ..
|
2018-02-15 13:23:04 +01:00
|
|
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/containers
|
2018-04-17 11:09:20 +02:00
|
|
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/containers/oci/hooks.d
|
2018-09-05 13:46:19 +02:00
|
|
|
install -d -m 0755 %{buildroot}/%{_datadir}/containers/oci/hooks.d
|
|
|
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/containers/registries.d
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/containers/policy.json
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/containers/storage.conf
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_datadir}/containers/mounts.conf
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/containers/mounts.conf
|
|
|
|
install -D -m 0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/containers/registries.conf
|
|
|
|
install -D -m 0644 %{SOURCE7} %{buildroot}/%{_datadir}/containers/seccomp.json
|
|
|
|
install -D -m 0644 %{SOURCE7} %{buildroot}/%{_sysconfdir}/containers/seccomp.json
|
|
|
|
|
|
|
|
install -d %{buildroot}/%{_mandir}/man1
|
|
|
|
install -d %{buildroot}/%{_mandir}/man5
|
|
|
|
install -D -m 0644 image/docs/*.1 %{buildroot}/%{_mandir}/man1/
|
|
|
|
install -D -m 0644 storage/docs/*.5 %{buildroot}/%{_mandir}/man5/
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_sysconfdir}/containers
|
2018-04-17 11:09:20 +02:00
|
|
|
%dir %{_sysconfdir}/containers/oci
|
|
|
|
%dir %{_sysconfdir}/containers/oci/hooks.d
|
2018-09-05 13:46:19 +02:00
|
|
|
%dir %{_sysconfdir}/containers/registries.d
|
|
|
|
%dir %{_datadir}/containers
|
|
|
|
%dir %{_datadir}/containers/oci
|
|
|
|
%dir %{_datadir}/containers/oci/hooks.d
|
|
|
|
|
2018-03-24 16:05:27 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
2018-09-05 13:46:19 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/mounts.conf
|
|
|
|
%{_datadir}/containers/mounts.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/seccomp.json
|
|
|
|
%{_datadir}/containers/seccomp.json
|
|
|
|
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/*.5%{?ext_man}
|
|
|
|
%license LICENSE
|
2018-02-15 13:23:04 +01:00
|
|
|
|
|
|
|
%changelog
|