|
@@ -1,24 +1,21 @@
|
|
-%{?!WITH_SYSV: %define WITH_SYSV 1}
|
|
|
|
-
|
|
|
|
Summary: CDEmu daemon
|
|
Summary: CDEmu daemon
|
|
Summary(ja): CDEmu デーモン
|
|
Summary(ja): CDEmu デーモン
|
|
Name: cdemu-daemon
|
|
Name: cdemu-daemon
|
|
-Version: 1.5.0
|
|
|
|
|
|
+Version: 3.0.5
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
URL: http://cdemu.sourceforge.net
|
|
URL: http://cdemu.sourceforge.net
|
|
Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
|
|
Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
|
|
-Source1: cdemu-daemon.init
|
|
|
|
-Source2: cdemu-daemon.sysconfig
|
|
|
|
# should be fixed upstream?
|
|
# should be fixed upstream?
|
|
#Patch10: %{name}-1.2.0-bigendian-fix.patch
|
|
#Patch10: %{name}-1.2.0-bigendian-fix.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: cmake >= 2.8.5
|
|
|
|
+BuildRequires: pkgconfig >= 0.16
|
|
BuildRequires: dbus-devel >= 0.90
|
|
BuildRequires: dbus-devel >= 0.90
|
|
BuildRequires: dbus-glib-devel >= 0.70
|
|
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: libao-devel >= 0.8.0
|
|
BuildRequires: sysfsutils-devel
|
|
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
|
|
options passed to it) where it exposes an interface that can be used by clients
|
|
to control it.
|
|
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
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-#%patch10 -p1 -b .bigendian
|
|
|
|
-cp -p %{SOURCE1} ./cdemu-daemon.init
|
|
|
|
-cp -p %{SOURCE2} ./cdemu-daemon.sysconfig
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{configure} --sysconfdir=/etc
|
|
|
|
|
|
+%cmake \
|
|
|
|
+ -DSYSTEM_BUS_SERVICE=OFF \
|
|
|
|
+ -DSESSION_BUS_SERVICE=ON \
|
|
|
|
+ .
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__make} install DESTDIR=$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
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
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
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
-%config(noreplace) %{_sysconfdir}/dbus-1/system.d/cdemud-dbus.conf
|
|
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
%{_libexecdir}/%{name}-*.sh
|
|
%{_libexecdir}/%{name}-*.sh
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man8/*
|
|
%{_datadir}/dbus-1/*
|
|
%{_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
|
|
%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
|
|
* Sun May 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- changed atchive type gzip to bzip2
|
|
- changed atchive type gzip to bzip2
|