Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
cdemu-daemon
> cdemu-daemon.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cdemu-daemon.spec of Package cdemu-daemon (Revision 6)
Currently displaying revision
6
,
show latest
Summary: CDEmu daemon Name: cdemu-daemon Version: 1.5.0 Release: 1 License: GPLv2+ Group: System Environment/Base URL: http://cdemu.sourceforge.net Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2 Source1: cdemu-daemon.init.suse Source2: cdemu-daemon.sysconfig Source3: cdemu-daemon-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: dbus-1-devel >= 0.90 BuildRequires: dbus-1-glib-devel >= 0.70 BuildRequires: libdaemon-devel >= 0.11 BuildRequires: glib2-devel BuildRequires: libmirage-devel BuildRequires: libao-devel BuildRequires: libsysfs %description This is CDEmu daemon, the userspace daemon part of the userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux. It receives SCSI commands from kernel module and processes them, passing the requested data back to the kernel. Daemon implements the actual virtual device; one instance per each device registered by kernel module. It uses libMirage, an image access library that is part of userspace-cdemu suite, for the image access (e.g. sector reading). The daemon registers itself on D-BUS' 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. %package sysv Summary: SysV initscripts for cdemu-daemon Group: System Environment/Base Requires: %{name} = %{version} %description sysv This is CDEmu daemon, the userspace daemon part of the userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux. This package provides SysV initscripts for running CDEmu daemon in daemon mode. %prep %setup -q cp -p %{SOURCE1} ./cdemu-daemon.init cp -p %{SOURCE2} ./cdemu-daemon.sysconfig %build %{configure} %{__make} %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/init.d %{__install} -Dpm 755 cdemu-daemon.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/cdemu-daemon %if 0%{?suse_version} %{__install} -Dpm 644 cdemu-daemon.sysconfig $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.cdemu-daemon %else %{__install} -Dpm 644 cdemu-daemon.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/cdemu-daemon %endif %clean rm -rf $RPM_BUILD_ROOT %post sysv # Run cdemu-daemon by default: /sbin/chkconfig --add cdemu-daemon >/dev/null 2>&1 || : ln -sf %{_sysconfdir}/init.d/cdemu-daemon %{_sbindir}/rccdemu-daemon %if 0%{?suse_version} %fillup_and_insserv %endif %preun sysv if [ "$1" -eq 0 ]; then /sbin/service cdemu-daemon stop > /dev/null 2>&1 || : /sbin/chkconfig --del cdemu-daemon rm -f %{_sbindir}/rccdemu-daemon fi %postun sysv if [ "$1" -ge "1" ]; then /sbin/service cdemu-daemon condrestart >/dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %config(noreplace) %{_sysconfdir}/dbus-1/system.d/cdemud-dbus.conf %{_bindir}/* %{_mandir}/man8/* %{_datadir}/dbus-1/services/net.sf.cdemu.CDEMUD_Daemon.service %{_datadir}/dbus-1/system-services/net.sf.cdemu.CDEMUD_Daemon.service %files sysv %defattr(-,root,root,-) %if 0%{?suse_version} /var/adm/fillup-templates/sysconfig.cdemu-daemon %else %config(noreplace) %{_sysconfdir}/sysconfig/cdemu-daemon %endif %attr(0755,root,root) %{_sysconfdir}/init.d/cdemu-daemon %changelog * Tue Sep 27 2011 Carsten Schoene <cs@linux-administrator.com> - 1.4.0-1 - update to release 1.4.0 * Sat Jul 19 2008 Carsten Schoene <cs@linux-administrator.com> - 1.1.0-2 - import to buildservices - modifications for SuSE builds * Sat Jun 28 2008 Rok Mandeljc <rok.mandeljc@email.si> - 1.1.0-1 - Updated to 1.1.0 * Thu Dec 20 2007 Rok Mandeljc <rok.mandeljc@email.si> - 1.0.0-1 - Initial RPM release.