Hello community,

here is the log from the commit of package festival for openSUSE:Factory 
checked in at 2018-11-18 23:31:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/festival (Old)
 and      /work/SRC/openSUSE:Factory/.festival.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "festival"

Sun Nov 18 23:31:22 2018 rev:32 rq:649366 version:2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/festival/festival.changes        2017-12-29 
18:50:15.676068321 +0100
+++ /work/SRC/openSUSE:Factory/.festival.new/festival.changes   2018-11-18 
23:31:38.533520957 +0100
@@ -1,0 +2,7 @@
+Thu Nov 15 23:50:36 UTC 2018 - belphe...@belbel.or.jp
+
+- Removed sysvinit support according to the boo#1116010.
+  * Added systemd unit file
+  * Moved rcfestival to /usr/lib/festival/server
+
+-------------------------------------------------------------------

New:
----
  festival.systemd

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ festival.spec ++++++
--- /var/tmp/diff_new_pack.XSOYDw/_old  2018-11-18 23:31:40.053519127 +0100
+++ /var/tmp/diff_new_pack.XSOYDw/_new  2018-11-18 23:31:40.057519122 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package festival
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -36,6 +36,8 @@
 Source5:        sysconfig.%{name}
 Source6:        rc%{name}
 Source7:        
http://www.cstr.ed.ac.uk/downloads/%{name}/2.4/voices/festvox_rablpc16k.tar.gz
+# systemd unit file
+Source8:        %{name}.systemd
 # festival patches
 Patch2:         %{name}-1.95-examples.patch
 Patch3:         %{name}-text2wave-manpage.patch
@@ -161,9 +163,11 @@
 install -Dm 644 ../%{name}/src/lib/libFestival.a  
%{buildroot}/%{_libdir}/libFestival.a
 install -m 644 lib/lib*.a %{buildroot}%{_libdir}
 # install init script
-install -m 755 -D %{SOURCE6} %{buildroot}%{_initddir}/%{name}
+install -m 755 -D %{SOURCE6} %{buildroot}%{_usr}/lib/%{name}/server
 install -d %{buildroot}%{_sbindir}
-ln -sf ../..%{_initddir}/%{name} %{buildroot}%{_sbindir}/rc%{name}
+ln -sf /sbin/service %{buildroot}%{_sbindir}/rc%{name}
+# install systemd unit file
+install -m 644 -D %{SOURCE8} %{buildroot}%{_unitdir}/%{name}.service
 # installl sysconfig file
 install -m 644 -D %{SOURCE5} %{buildroot}%{_fillupdir}/sysconfig.%{name}
 
@@ -173,22 +177,25 @@
 %pre
 %{_sbindir}/groupadd -r %{name} 2> /dev/null || :
 %{_sbindir}/useradd -r -g %{name} -s /bin/false -c "Festival daemon" -d 
%{_datadir}/%{name}/ %{name} 2> /dev/null || :
+%service_add_pre %{name}.service
 
 %post
 %fillup_only
+%service_add_post %{name}.service
 
 %preun
 %stop_on_removal %{name}
+%service_del_preun %{name}.service
 
 %postun
 %restart_on_update %{name}
 %insserv_cleanup
+%service_del_postun %{name}.service
 
 %files
 %defattr(-,root,root)
 %doc COPYING README examples/*.text examples/ex1.* examples/*.scm 
examples/*.dtd
 %config(noreplace) %{_sysconfdir}/%{name}.scm
-%{_sysconfdir}/init.d/%{name}
 %{_bindir}/%{name}
 %{_bindir}/%{name}_client
 %{_bindir}/%{name}_server
@@ -196,6 +203,7 @@
 %{_bindir}/text2wave
 %{_bindir}/saytime
 %{_sbindir}/rc%{name}
+%{_unitdir}/%{name}.service
 %{_libexecdir}/%{name}
 %{_datadir}/%{name}
 %{_mandir}/man1/*

++++++ festival.systemd ++++++
[Unit]
Description=festival daemon providing full text-to-speech system
After=remote-fs.target
After=time-sync.target
Wants=remote-fs.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=/usr/lib/festival/server start
ExecStop=/usr/lib/festival/server stop
ExecReload=/usr/lib/festival/server reload

[Install]
WantedBy=multi-user.target


Reply via email to