Hello community,

here is the log from the commit of package runvdr-extreme-systemd for 
openSUSE:Factory checked in at 2014-08-03 15:36:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/runvdr-extreme-systemd (Old)
 and      /work/SRC/openSUSE:Factory/.runvdr-extreme-systemd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "runvdr-extreme-systemd"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/runvdr-extreme-systemd/runvdr-extreme-systemd.changes
    2014-04-22 17:09:13.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.runvdr-extreme-systemd.new/runvdr-extreme-systemd.changes
       2014-08-03 15:36:57.000000000 +0200
@@ -1,0 +2,10 @@
+Fri Jul 25 12:31:45 UTC 2014 - p.drou...@gmail.com
+
+- Add a requirement to systemd
+- Add needed macros to install correctly the service file
+- Add BuildRequires: systemd-rpm-macros 
+- Use %{_unitdir}
+- Add backward symlink
+- Provide and obsolete vdr-runvdr; the transition should be easier
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ runvdr-extreme-systemd.spec ++++++
--- /var/tmp/diff_new_pack.JZWltw/_old  2014-08-03 15:36:58.000000000 +0200
+++ /var/tmp/diff_new_pack.JZWltw/_new  2014-08-03 15:36:58.000000000 +0200
@@ -17,13 +17,6 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# yes, there are packages that define this, but we don't need the lots of 
dependencies
-%if 0%{?suse_version} > 1220
-%define _systemd %{_libexecdir}/systemd
-%else
-%define _systemd /lib/systemd
-%endif
-
 Name:           runvdr-extreme-systemd
 Version:        0.5.0
 Release:        0
@@ -38,7 +31,11 @@
 Patch2:         runvdr-extreme-exitcode.patch
 # PATCH-FIX-OPENSUSE runvdr-extreme-systemlanguage.patch -- use 
/etc/sysconfig/language -- seife+...@b1-systems.com
 Patch3:         runvdr-extreme-systemlanguage.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  systemd-rpm-macros
+%{?systemd_requires}
+# As vdr-runvdr won't be provided from 2.0.6, just provide the v+1 to obsolete 
it 
+Provides:       vdr-runvdr = 2.0.7
+Obsoletes:      vdr-runvdr < 2.0.7
 BuildArch:      noarch
 
 %description
@@ -56,14 +53,29 @@
 %install
 install -m 0755 -D runvdr %{buildroot}%{_bindir}/runvdr.extreme
 install -m 0644 -D runvdr.conf.example %{buildroot}%{_sysconfdir}/runvdr.conf
-install -m 0644 -D %{SOURCE1} %{buildroot}/%{_systemd}/system/vdr.service
+install -m 0644 -D %{SOURCE1} %{buildroot}/%{_unitdir}/vdr.service
+mkdir -p %{buildroot}%{_sbindir}
+ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcvdr
 install -m 0644 -D runvdr.conf.5 %{buildroot}/%{_mandir}/man5/runvdr.5
 
+%pre
+%service_add_pre vdr.service
+
+%post
+%service_add_post vdr.service
+
+%preun
+%service_del_preun vdr.service
+
+%postun
+%service_del_postun vdr.service
+
 %files
 %defattr(-,root,root)
 %{_bindir}/runvdr.extreme
 %config(noreplace) %{_sysconfdir}/runvdr.conf
-%{_systemd}
+%{_sbindir}/rcvdr
+%{_unitdir}/vdr.service
 %doc COPYING HISTORY README README.de
 %doc %{_mandir}/man5/runvdr.*
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to