Browse Source

cdemu-daemon 3.0.5-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10944 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 7 years ago
parent
commit
1755976352
1 changed files with 14 additions and 58 deletions
  1. 14 58
      c/cdemu-daemon/cdemu-daemon-vl.spec

+ 14 - 58
c/cdemu-daemon/cdemu-daemon-vl.spec

@@ -1,24 +1,21 @@
-%{?!WITH_SYSV: %define WITH_SYSV 1}
-
 Summary: CDEmu daemon
 Summary(ja): CDEmu デーモン
 Name: cdemu-daemon
-Version: 1.5.0
+Version: 3.0.5
 Release: 1%{?_dist_release}
 License: GPLv2+
 Group: System Environment/Daemons
 URL: http://cdemu.sourceforge.net
 Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
-Source1: cdemu-daemon.init
-Source2: cdemu-daemon.sysconfig
 # should be fixed upstream?
 #Patch10: %{name}-1.2.0-bigendian-fix.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake >= 2.8.5
+BuildRequires: pkgconfig >= 0.16
 BuildRequires: dbus-devel >= 0.90
 BuildRequires: dbus-glib-devel >= 0.70
-BuildRequires: libdaemon-devel >= 0.11
-BuildRequires: glib2-devel >= 2.6
-BuildRequires: libmirage-devel >= 1.5.0
+BuildRequires: glib2-devel >= 2.24
+BuildRequires: libmirage-devel >= %{version}
 BuildRequires: libao-devel >= 0.8.0
 BuildRequires: sysfsutils-devel
 
@@ -38,79 +35,38 @@ 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/Daemon
-Requires: %{name} = %{version}
-Requires(post): initscripts, chkconfig
-
-%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
-#%patch10 -p1 -b .bigendian
-cp -p %{SOURCE1} ./cdemu-daemon.init
-cp -p %{SOURCE2} ./cdemu-daemon.sysconfig
 
 %build
-%{configure} --sysconfdir=/etc
+%cmake \
+  -DSYSTEM_BUS_SERVICE=OFF \
+  -DSESSION_BUS_SERVICE=ON \
+  .
 %{__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}/rc.d/init.d
-%{__install} -Dpm 644 cdemu-daemon.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cdemu-daemon
-%{__install} -Dpm 755 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 || :
-/sbin/chkconfig cdemu-daemon on
-
-%preun sysv
-if [ "$1" -eq 0 ]; then
-    /sbin/service cdemu-daemon stop > /dev/null 2>&1 || :
-    /sbin/chkconfig --del cdemu-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}/*
 %{_libexecdir}/%{name}-*.sh
 %{_mandir}/man8/*
 %{_datadir}/dbus-1/*
 
-%if %{WITH_SYSV}
-%files sysv
-%defattr(-,root,root,-)
-%config(noreplace) %{_sysconfdir}/sysconfig/cdemu-daemon
-%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/cdemu-daemon
-%endif
-
 %changelog
+* Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> - 3.0.5-1
+- update to 3.0.5
+- update BuildRequires
+- disable sysv subpackage
+
 * Sun May 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
 - new upstream release
 - changed atchive type gzip to bzip2