Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
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 3)
Currently displaying revision
3
,
show latest
%{?!WITH_SYSV: %define WITH_SYSV 1} Summary: CDEmu daemon Name: cdemu-daemon Version: 1.1.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 Patch0: cdemu-daemon-1.1.0-fix1.diff 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. %if %{WITH_SYSV} %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. %endif %prep %setup -q %patch0 -p2 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 %if %{WITH_SYSV} %{__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 %{__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 -s %{_sysconfdir}/init.d/cdemu-daemon %{_sbindir}/rccdemu-daemon %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/* %if %{WITH_SYSV} %files sysv %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/sysconfig/cdemu-daemon %attr(0755,root,root) %{_sysconfdir}/init.d/cdemu-daemon %endif %changelog * 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.