From a52c1dac452cb119ace2439e607926ce91ff96d4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sun, 26 Apr 2020 21:40:29 +0200 Subject: [PATCH] spec: install schemata Install the schema to %{_datadir}/osbuild/schema and provide a link from %{pkgdir}/schema to that location so that the osbuild library can easily access the schemata. --- osbuild.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osbuild.spec b/osbuild.spec index 136e27b0..5e1af788 100644 --- a/osbuild.spec +++ b/osbuild.spec @@ -88,6 +88,11 @@ install -p -m 0755 $(find sources/* -not -path "*/osbuild") %{buildroot}%{pkgdir # mount point for bind mounting the osbuild library mkdir -p %{buildroot}%{pkgdir}/osbuild +# schemata +mkdir -p %{buildroot}%{_datadir}/osbuild/schemas +install -p -m 0755 $(find schemas/*.json) %{buildroot}%{_datadir}/osbuild/schemas +ln -s %{_datadir}/osbuild/schemas %{buildroot}%{pkgdir}/schemas + # documentation mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man5 @@ -104,6 +109,7 @@ exit 0 %{_bindir}/osbuild %{_mandir}/man1/%{name}.1* %{_mandir}/man5/%{name}-manifest.5* +%{_datadir}/osbuild/schemas %{pkgdir} # the following files are in the ostree sub-package %exclude %{pkgdir}/assemblers/org.osbuild.ostree.commit