From aceb67d69db020578617fbd91a7746f7115fce6c Mon Sep 17 00:00:00 2001 From: unman Date: Mon, 15 Jul 2024 01:24:17 +0000 Subject: [PATCH] Doc - spec file --- qubes-doc.spec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 qubes-doc.spec diff --git a/qubes-doc.spec b/qubes-doc.spec new file mode 100644 index 0000000..d013eb1 --- /dev/null +++ b/qubes-doc.spec @@ -0,0 +1,36 @@ +Name: 3isec-qubes-doc +Version: 1 +Release: 1%{?dist} +Summary: Prepares qube for building Qubes web site and documentation +Requires: 3isec-qubes-common + +License: GPLv3+ +SOURCE0: qubes-doc + +%description +These salt files can be used to set-up a template for building the Qubes website and documentation. +The template is a clone of the fedora-40 template. +A qubes-doc qube is created and configured to use git and split-gpg. + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/srv/salt +cp -rv %{SOURCE0}/ %{buildroot}/srv/salt + +%files +%defattr(-,root,root,-) +/srv/salt/qubes-doc/* + +%post +if [ $1 -eq 1 ]; then + qubesctl state.apply qubes-doc.create + qubesctl --skip-dom0 --targets=template-qubes-doc state.apply qubes-doc.install + qubesctl --skip-dom0 --targets=qubes-doc state.apply qubes-doc.config +fi + +%preun + + +%changelog +* Mon Jul 15 2024 unman +- First Build