Hello community,

here is the log from the commit of package nxtvepg for openSUSE:Factory checked 
in at 2020-11-13 18:59:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nxtvepg (Old)
 and      /work/SRC/openSUSE:Factory/.nxtvepg.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nxtvepg"

Fri Nov 13 18:59:55 2020 rev:22 rq:848308 version:2.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/nxtvepg/nxtvepg.changes  2018-03-20 
22:01:04.224147485 +0100
+++ /work/SRC/openSUSE:Factory/.nxtvepg.new.24930/nxtvepg.changes       
2020-11-13 19:00:29.262207992 +0100
@@ -1,0 +2,14 @@
+Thu Nov 12 11:15:47 UTC 2020 - Franck Bui <[email protected]>
+
+- Properly use the systemd rpm macros with nxtvepg.service.
+
+  Also drop the initscript since it's no more used since the
+  introduction of nxtvepg.service.
+
+-------------------------------------------------------------------
+Mon Feb 18 15:38:51 UTC 2019 - [email protected]
+
+- Added support for systemd
+  [bsc#1116025, nxtvepg.service]
+
+-------------------------------------------------------------------

Old:
----
  rc.nxtvepg

New:
----
  nxtvepg.service

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

Other differences:
------------------
++++++ nxtvepg.spec ++++++
--- /var/tmp/diff_new_pack.Ys4qBF/_old  2020-11-13 19:00:32.438211893 +0100
+++ /var/tmp/diff_new_pack.Ys4qBF/_new  2020-11-13 19:00:32.442211899 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nxtvepg
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -22,16 +22,16 @@
 Summary:        Nextview EPG Decoder and Browser
 License:        GPL-2.0-or-later
 Group:          Hardware/TV
-Url:            http://nxtvepg.sourceforge.net/
+URL:            http://nxtvepg.sourceforge.net/
 Source0:        
http://prdownloads.sourceforge.net/nxtvepg/%{name}-%{version}.tar.gz
-Source1:        rc.nxtvepg
+Source2:        nxtvepg.service
 Patch1:         nxtvepg-Makefile.patch
 Patch2:         nxtvepg-no-hardcoded-tcl-dir.patch
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  tcl-devel
 BuildRequires:  tk-devel
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xmu)
-Requires(pre):  %insserv_prereq
 
 %description
 In this software package, find a decoder for Nextview--an electronic TV
@@ -70,22 +70,24 @@
 # remove the daemon-only binary - /usr/bin/nxtvepg is capable of running as
 # daemon too, so packaging nxtvepgd would mean duplication for most use cases
 rm %{buildroot}%{_bindir}/nxtvepgd %{buildroot}%{_mandir}/man1/nxtvepgd.1*
-# init script
-mkdir -p %{buildroot}%{_initddir} %{buildroot}%{_prefix}/sbin
-install -m 755 %{SOURCE1} %{buildroot}%{_initddir}/nxtvepg
-ln -s ../..%{_initddir}/nxtvepg %{buildroot}%{_sbindir}/rcnxtvepg
+# systemd service file
+install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/nxtvepg.service
+
+%pre
+%service_add_pre nxtvepg.service
+
+%post
+%service_add_post nxtvepg.service
 
 %preun
-%stop_on_removal nxtvepg
+%service_del_preun nxtvepg.service
 
 %postun
-%restart_on_update nxtvepg
-%insserv_cleanup
+%service_del_postun nxtvepg.service
 
 %files
 %defattr(-,root,root)
-%config %{_initddir}/nxtvepg
-%{_sbindir}/rcnxtvepg
+%{_unitdir}/nxtvepg.service
 %{_bindir}/nxtvepg
 %{_datadir}/nxtvepg
 %{_mandir}/man1/nxtvepg.1*

++++++ nxtvepg.service ++++++
[unit]
Type=forking
Description=Nextview EPG Decoder and Browser
After=syslog.target remote-fs.target
ConditionPathExists=/etc/nxtvepgrc

[Service]
ExecStart=/usr/bin/nxtvepg -daemon -rcfile /etc/nxtvepgrc

[Install]
WantedBy=multi-user.target
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to