From 608a0578c2a9108c15bcb2ce8f5e39c408a3e481 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 6 May 2020 21:06:45 +0200 Subject: [PATCH] Install schemata Install schemata to /osbuild/schemas and include a symlink to it in /usr/lib/osbuild/schemas. This is needed otherwise schema validation will not work. --- osbuild.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/osbuild.spec b/osbuild.spec index f4471f6..e375fcf 100644 --- a/osbuild.spec +++ b/osbuild.spec @@ -8,7 +8,7 @@ Version: 14 %global pkgdir %{_prefix}/lib/%{pypi_name} Name: %{pypi_name} -Release: 1%{?dist} +Release: 2%{?dist} License: ASL 2.0 URL: %{forgeurl} @@ -88,6 +88,11 @@ install -p -m 0755 $(find sources -type f) %{buildroot}%{pkgdir}/sources # 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 @@ -124,6 +130,10 @@ exit 0 %{pkgdir}/stages/org.osbuild.rpm-ostree %changelog +* Wed May 6 2020 Christian Kellner - 14-2 +- Install schemata to /osbuild/schemas and include a + symlink to it in /usr/lib/osbuild/schemas + * Wed May 6 2020 Christian Kellner - 14-1 - new upstream release 14 - The directories /usr/lib/osbuild/{assemblers, stages}/osbuild