1
0
forked from pool/cdemu-daemon

Restore style and metadata fields, and add a changelog entry

OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=22
This commit is contained in:
Jan Engelhardt 2014-07-14 14:25:18 +00:00 committed by Git OBS Bridge
parent bef7b6a69c
commit fcc8c06a32
2 changed files with 20 additions and 14 deletions

View File

@ -1,7 +1,12 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 13 08:48:46 UTC 2014 - sor.alexei@meowr.ru Sun Jul 13 08:48:46 UTC 2014 - sor.alexei@meowr.ru
- Update to 3.0.0 - Update to new upstream release 3.0.0
* The CDEmu daemon now has experimental emulation of CD-R and
DVD+R disc recording, and daemon/client protocol was extended
to allow transmission of image writer parameters descriptions
from daemon to client and parameters' values back from client
to daemon.
- Remove logfile.diff patch - Remove logfile.diff patch
- Add /dev/vhba_ctl read-write access udev rule - Add /dev/vhba_ctl read-write access udev rule

View File

@ -26,7 +26,7 @@ Url: http://cdemu.sf.net/about/daemon/
#Git-Clone: git://git.code.sf.net/p/cdemu/code #Git-Clone: git://git.code.sf.net/p/cdemu/code
Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2 Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
Source1: %name.sysconfig Source1: cdemu-daemon.sysconfig
Source2: 60-vhba.rules Source2: 60-vhba.rules
BuildRequires: cmake >= 2.8.5 BuildRequires: cmake >= 2.8.5
@ -55,26 +55,27 @@ that can be used by clients to control it.
%build %build
cmake . \ cmake . \
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \ -DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \
-DCMAKE_C_FLAGS:STRING="%optflags" -DCMAKE_C_FLAGS:STRING="%optflags"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
b="%buildroot"
%make_install %make_install
mkdir -p "%buildroot/%_sbindir" "%buildroot/%_localstatedir/adm/fillup-templates" mkdir -p "$b/%_sbindir" "$b/%_localstatedir/adm/fillup-templates"
install -Dm 0644 "%SOURCE1" "%buildroot/%_localstatedir/adm/fillup-templates/sysconfig.%name" install -Dm 0644 "%SOURCE1" "$b/%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon"
install -Dm 0644 "%SOURCE2" "%buildroot/%_prefix/lib/udev/rules.d/60-vhba.rules" install -Dm 0644 "%SOURCE2" "$b/%_prefix/lib/udev/rules.d/60-vhba.rules"
# Not desired # Not desired for security; it would permit a user to start a system service.
rm -rf "%buildroot/%_datadir/dbus-1/system-services" "%buildroot/%_sysconfdir/dbus-1/system.d/" rm -rf "$b/%_datadir/dbus-1/system-services" "$b/%_sysconfdir/dbus-1/system.d/"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING README %doc AUTHORS COPYING README
%_bindir/%name %_bindir/cdemu-daemon
%_libexecdir/%name-session.sh %_libexecdir/cdemu-daemon-session.sh
%_localstatedir/adm/fillup-templates/sysconfig.%name %_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon
%_mandir/man8/%name.8* %_mandir/man8/cdemu-daemon.8*
%_datadir/dbus-1/ %_datadir/dbus-1/
%_prefix/lib/udev/ %_prefix/lib/udev/