1
0
forked from pool/cdemu-daemon

Accepting request 915122 from filesystems

- Add systemd and D-Bus .service files
- Fix .spec file warning

OBS-URL: https://build.opensuse.org/request/show/915122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cdemu-daemon?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2021-08-31 17:55:24 +00:00 committed by Git OBS Bridge
commit 272b65d30e
3 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 29 18:28:48 UTC 2021 - Yaroslav Kurlaev <yaroslav.kurlaev@gmail.com>
- Add systemd and D-Bus .service files
- Fix .spec file warning
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 20 09:59:59 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Tue Apr 20 09:59:59 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

9
cdemu-daemon.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=CDEmu daemon
[Service]
Type=dbus
EnvironmentFile=-/etc/sysconfig/cdemu-daemon
BusName=net.sf.cdemu.CDEmuDaemon
ExecStart=/usr/bin/cdemu-daemon -n $DEVICES -c $CTL_DEVICE -a $AUDIO_BACKEND
Restart=no

View File

@ -33,6 +33,7 @@ URL: https://cdemu.sourceforge.io/about/daemon/
Source: https://downloads.sf.net/cdemu/%name-%version.tar.xz Source: https://downloads.sf.net/cdemu/%name-%version.tar.xz
Source2: 60-vhba.rules Source2: 60-vhba.rules
Source3: cdemu-daemon.sysconfig Source3: cdemu-daemon.sysconfig
Source4: cdemu-daemon.service
BuildRequires: cmake >= 2.8.5 BuildRequires: cmake >= 2.8.5
BuildRequires: intltool >= 0.21 BuildRequires: intltool >= 0.21
BuildRequires: pkg-config >= 0.16 BuildRequires: pkg-config >= 0.16
@ -74,16 +75,23 @@ mkdir -p "$b/%_sbindir" "$b/%_fillupdir" \
"$b/%_prefix/lib/udev/rules.d" "$b/%_prefix/lib/udev/rules.d"
install -pm0644 "%{S:2}" "$b/%_prefix/lib/udev/rules.d/60-vhba.rules" install -pm0644 "%{S:2}" "$b/%_prefix/lib/udev/rules.d/60-vhba.rules"
install -pm0644 "%{S:3}" "$b/%_fillupdir/sysconfig.cdemu-daemon" install -pm0644 "%{S:3}" "$b/%_fillupdir/sysconfig.cdemu-daemon"
mkdir -p "$b/%_userunitdir"
install -pm0644 "%{S:4}" "$b/%_userunitdir/cdemu-daemon.service"
mkdir -p "$b/%_datadir/dbus-1/services"
install -pm0644 "service-example/net.sf.cdemu.CDEmuDaemon.service" "$b/%_datadir/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service"
%find_lang %name %find_lang %name
%post %post
%fillup_only %fillup_only
%files -f %name.lang %files -f %name.lang
%doc AUTHORS COPYING README %doc AUTHORS README
%license COPYING
%_bindir/cdemu-daemon %_bindir/cdemu-daemon
%_mandir/man8/cdemu-daemon.8* %_mandir/man8/cdemu-daemon.8*
%_fillupdir/sysconfig.cdemu-daemon %_fillupdir/sysconfig.cdemu-daemon
%_prefix/lib/udev/ %_prefix/lib/udev/
%_userunitdir/cdemu-daemon.service
%_datadir/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
%changelog %changelog