2012-05-21 19:31:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package cdemu-daemon
|
|
|
|
#
|
2013-03-15 23:48:08 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-11-15 01:06:42 +01:00
|
|
|
|
|
|
|
|
2012-05-21 19:31:50 +02:00
|
|
|
Name: cdemu-daemon
|
2012-12-22 18:08:21 +01:00
|
|
|
Version: 2.0.0
|
2012-05-21 19:31:50 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Device daemon for cdemu, a virtual CD-ROM device emulator
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
Url: http://cdemu.sf.net/
|
|
|
|
|
2012-11-15 01:06:42 +01:00
|
|
|
#Freecode-URL: https://freecode.com/projects/cdemu-for-linux
|
2012-12-22 18:08:21 +01:00
|
|
|
#Git-Clone: git://git.code.sf.net/p/cdemu/code
|
2013-03-15 23:55:31 +01:00
|
|
|
#DL-URL: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
|
|
|
Source: %name-%version.tar.xz
|
2012-11-15 01:06:42 +01:00
|
|
|
Source3: cdemu-daemon.sysconfig
|
|
|
|
Patch1: logfile.diff
|
2012-05-21 19:31:50 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-22 18:08:21 +01:00
|
|
|
BuildRequires: cmake >= 2.8.5
|
2012-11-15 01:06:42 +01:00
|
|
|
BuildRequires: pkgconfig
|
2013-03-15 23:55:31 +01:00
|
|
|
BuildRequires: xz
|
2012-11-15 01:06:42 +01:00
|
|
|
BuildRequires: pkgconfig(ao) >= 0.8.0
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.28
|
2012-12-22 18:08:21 +01:00
|
|
|
BuildRequires: pkgconfig(libmirage) >= 2.0.0
|
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
|
2012-12-22 18:08:21 +01:00
|
|
|
%setup -Tcqa0
|
2012-05-29 10:50:16 +02:00
|
|
|
%patch -P 1 -p1
|
2012-05-21 19:31:50 +02:00
|
|
|
|
|
|
|
%build
|
2012-12-22 18:08:21 +01:00
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
|
|
|
|
-DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%optflags";
|
2012-05-21 19:31:50 +02:00
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
mkdir -p "$b/%_sbindir";
|
|
|
|
mkdir -p "$b/%_localstatedir/adm/fillup-templates";
|
|
|
|
install -pm0644 "%{S:3}" "$b/%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon";
|
2012-05-29 10:50:16 +02:00
|
|
|
# Not desired
|
2012-06-05 10:28:03 +02:00
|
|
|
rm -Rf "$b/%_datadir/dbus-1/system-services" "$b/%_sysconfdir/dbus-1/system.d";
|
2012-05-21 19:31:50 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-12-22 18:08:21 +01:00
|
|
|
%_bindir/cdemu-daemon
|
|
|
|
%_libexecdir/cdemu-daemon-session.sh
|
2012-05-21 19:31:50 +02:00
|
|
|
%_datadir/dbus-1
|
2012-12-22 18:08:21 +01:00
|
|
|
%_mandir/man8/cdemu-daemon.8*
|
2012-05-21 19:31:50 +02:00
|
|
|
%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon
|
|
|
|
|
|
|
|
%changelog
|