From 7d4c19fe23fa59d8624765c2c2f6b054b4761f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 7 Feb 2014 02:10:47 +0100 Subject: [PATCH] rpm: fix rpmbuild warning about ghost files --- rpm_spec/core-vm.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 3bbef49..0534e66 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -99,6 +99,14 @@ adduser --create-home user (cd qrexec; make install DESTDIR=$RPM_BUILD_ROOT) make install-vm DESTDIR=$RPM_BUILD_ROOT +# Create ghost files to silent rpmbuild warnings, those files will NOT be +# included in package +mkdir -p $RPM_BUILD_ROOT/etc/systemd/system +for f in ModemManager.service NetworkManager.service \ + NetworkManager-wait-online.service cups.service cups.socket cups.path; do + cp $RPM_BUILD_ROOT/usr/lib/qubes/init/$f $RPM_BUILD_ROOT/etc/systemd/system/ +done + %triggerin -- initscripts if [ -e /etc/init/serial.conf ]; then cp /usr/share/qubes/serial.conf /etc/init/serial.conf