Hello community, here is the log from the commit of package rtorrent for openSUSE:Factory checked in at 2019-08-19 21:39:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rtorrent (Old) and /work/SRC/openSUSE:Factory/.rtorrent.new.22127 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rtorrent" Mon Aug 19 21:39:04 2019 rev:7 rq:724200 version:0.9.8 Changes: -------- --- /work/SRC/openSUSE:Factory/rtorrent/rtorrent.changes 2019-07-31 14:31:21.829996239 +0200 +++ /work/SRC/openSUSE:Factory/.rtorrent.new.22127/rtorrent.changes 2019-08-19 21:39:09.560317759 +0200 @@ -1,0 +2,5 @@ +Fri Aug 16 15:54:27 UTC 2019 - Jan Engelhardt <[email protected]> + +- Add missing %service_* scriptlets + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rtorrent.spec ++++++ --- /var/tmp/diff_new_pack.XY3bjz/_old 2019-08-19 21:39:12.728316089 +0200 +++ /var/tmp/diff_new_pack.XY3bjz/_new 2019-08-19 21:39:12.760316083 +0200 @@ -28,12 +28,11 @@ Group: Productivity/Networking/File-Sharing Url: http://github.com/rakshasa/rtorrent -Source: https://github.com/rakshasa/rtorrent/releases/download/v%{version}/%{name}-%{version}.tar.gz +Source: https://github.com/rakshasa/rtorrent/releases/download/v%version/%name-%version.tar.gz Source2: rtorrent.desktop # This manpage copied from the 0.9.2 tarball as it was missing in later versions Source3: rtorrent.1 Source4: rtorrent.service -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with xmlrpc} BuildRequires: xmlrpc-c-devel %endif @@ -74,27 +73,34 @@ --enable-ipv6 make %{?_smp_mflags} -%pre -getent passwd rtorrent >/dev/null || useradd -r rtorrent - %install b="%buildroot" -make install DESTDIR="$b" +%make_install install -Dm0644 "%{S:2}" "$b/%_datadir/applications/%name.desktop" mkdir -p "$b/%_mandir/man1" install -pm0644 "%{S:3}" "$b/%_mandir/man1/" %suse_update_desktop_file -r "%name" Network P2P -install -Dm0644 "%{S:4}" "$b/%{_unitdir}/rtorrent.service" +install -Dm0644 "%{S:4}" "$b/%_unitdir/rtorrent.service" + +%pre +getent passwd rtorrent >/dev/null || useradd -r rtorrent +%service_add_pre rtorrent.service %post %service_add_post rtorrent.service +%preun +%service_del_preun rtorrent.service + +%postun +%service_del_postun rtorrent.service + %files %defattr(-,root,root) %doc doc/rtorrent.rc COPYING %_bindir/rtorrent %_datadir/applications/%name.desktop %_mandir/man1/rtorrent.1* -%{_unitdir}/rtorrent.service +%_unitdir/rtorrent.service %changelog
