2012-05-21 19:31:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package cdemu-daemon
|
|
|
|
#
|
2021-04-20 14:47:01 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-05-21 19:31:50 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-03 13:46:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-21 19:31:50 +02:00
|
|
|
#
|
2012-11-15 01:06:42 +01:00
|
|
|
|
|
|
|
|
2017-11-23 21:36:23 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2012-05-21 19:31:50 +02:00
|
|
|
Name: cdemu-daemon
|
2021-04-20 14:47:01 +02:00
|
|
|
Version: 3.2.5
|
2012-05-21 19:31:50 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Device daemon for cdemu, a virtual CD-ROM device emulator
|
2018-04-30 16:01:48 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-05-21 19:31:50 +02:00
|
|
|
Group: System/Daemons
|
2020-05-01 23:16:25 +02:00
|
|
|
URL: https://cdemu.sourceforge.io/about/daemon/
|
2012-05-21 19:31:50 +02:00
|
|
|
|
2021-04-20 14:47:01 +02:00
|
|
|
#Git-Clone: https://github.com/cdemu/cdemu
|
|
|
|
Source: https://downloads.sf.net/cdemu/%name-%version.tar.xz
|
2014-07-14 16:22:16 +02:00
|
|
|
Source2: 60-vhba.rules
|
2014-07-14 16:31:03 +02:00
|
|
|
Source3: cdemu-daemon.sysconfig
|
2012-12-22 18:08:21 +01:00
|
|
|
BuildRequires: cmake >= 2.8.5
|
2017-08-07 21:36:17 +02:00
|
|
|
BuildRequires: intltool >= 0.21
|
|
|
|
BuildRequires: pkg-config >= 0.16
|
2012-11-15 01:06:42 +01:00
|
|
|
BuildRequires: pkgconfig(ao) >= 0.8.0
|
2019-07-03 13:46:04 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.30
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.30
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.30
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.30
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.30
|
|
|
|
BuildRequires: pkgconfig(libmirage) >= 3.2.0
|
2015-11-23 23:31:58 +01:00
|
|
|
Requires(pre): %fillup_prereq
|
2018-04-30 16:01:30 +02:00
|
|
|
Requires: vhba-kmp
|
2017-08-07 21:36:17 +02:00
|
|
|
Recommends: %name-lang
|
2012-05-21 19:31:50 +02:00
|
|
|
|
2017-08-07 21:36:17 +02:00
|
|
|
%lang_package
|
|
|
|
|
2012-05-21 19:31:50 +02:00
|
|
|
%description
|
|
|
|
cdemu-daemon receives SCSI commands from kernel module thorugh the
|
|
|
|
VHBA module and processes them, passing the requested data back to
|
|
|
|
the kernel. The daemon implements the actual virtual device; one
|
|
|
|
instance per each device registered by kernel module. It uses
|
|
|
|
libmirage for the image access (e.g. sector reading).
|
|
|
|
|
|
|
|
The daemon registers itself on D-BUS's system or session bus
|
|
|
|
(depending on the options passed to it) where it exposes an interface
|
|
|
|
that can be used by clients to control it.
|
|
|
|
|
|
|
|
%prep
|
2021-04-20 14:47:01 +02:00
|
|
|
%autosetup -p1
|
2012-05-21 19:31:50 +02:00
|
|
|
|
|
|
|
%build
|
2015-11-23 23:31:58 +01:00
|
|
|
%cmake -DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir"
|
2021-04-20 14:47:01 +02:00
|
|
|
%cmake_build
|
2012-05-21 19:31:50 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-14 16:25:18 +02:00
|
|
|
b="%buildroot"
|
2015-11-23 23:31:58 +01:00
|
|
|
%cmake_install
|
2019-07-03 13:46:04 +02:00
|
|
|
mkdir -p "$b/%_sbindir" "$b/%_fillupdir" \
|
2014-07-14 16:31:59 +02:00
|
|
|
"$b/%_prefix/lib/udev/rules.d"
|
2014-07-14 16:31:03 +02:00
|
|
|
install -pm0644 "%{S:2}" "$b/%_prefix/lib/udev/rules.d/60-vhba.rules"
|
2019-07-03 13:46:04 +02:00
|
|
|
install -pm0644 "%{S:3}" "$b/%_fillupdir/sysconfig.cdemu-daemon"
|
2014-07-14 16:25:18 +02:00
|
|
|
# Not desired for security; it would permit a user to start a system service.
|
2021-04-20 14:47:01 +02:00
|
|
|
#rm -rf "$b/%_datadir/dbus-1/system-services" "$b/%_sysconfdir/dbus-1/system.d/"
|
2017-08-07 21:36:17 +02:00
|
|
|
%find_lang %name
|
2012-05-21 19:31:50 +02:00
|
|
|
|
2015-11-23 23:31:58 +01:00
|
|
|
%post
|
|
|
|
%fillup_only
|
|
|
|
|
2017-08-07 21:36:17 +02:00
|
|
|
%files -f %name.lang
|
2014-07-14 16:22:16 +02:00
|
|
|
%doc AUTHORS COPYING README
|
2014-07-14 16:25:18 +02:00
|
|
|
%_bindir/cdemu-daemon
|
2014-07-14 16:31:03 +02:00
|
|
|
%_mandir/man8/cdemu-daemon.8*
|
2019-07-03 13:46:04 +02:00
|
|
|
%_fillupdir/sysconfig.cdemu-daemon
|
2014-07-14 16:22:16 +02:00
|
|
|
%_prefix/lib/udev/
|
2012-05-21 19:31:50 +02:00
|
|
|
|
|
|
|
%changelog
|