diff --git a/_service b/_service
deleted file mode 100644
index 1a45e44..0000000
--- a/_service
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- git
- git://github.com/rakshasa/rtorrent
- c38ec6fdae38e76101214f3b1edb84f17fae492a
- 62cb5a4
- 0.9.6.g@TAG_OFFSET@
-
-
- *.tar
- xz
-
-
-
diff --git a/rtorrent-0.9.6.g116.tar.xz b/rtorrent-0.9.6.g116.tar.xz
deleted file mode 100644
index 1ea116f..0000000
--- a/rtorrent-0.9.6.g116.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:56a9695281ab9fea5e642f59a8e70b140e3e3f9f16eea46a5e75ec69192c9e64
-size 190660
diff --git a/rtorrent-0.9.8.tar.gz b/rtorrent-0.9.8.tar.gz
new file mode 100644
index 0000000..1ab7eed
--- /dev/null
+++ b/rtorrent-0.9.8.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
+size 647523
diff --git a/rtorrent.changes b/rtorrent.changes
index 284a114..82ddfab 100644
--- a/rtorrent.changes
+++ b/rtorrent.changes
@@ -1,3 +1,39 @@
+-------------------------------------------------------------------
+Wed Jul 24 17:52:33 UTC 2019 - hiwatari.seiji@gmail.com
+
+- Update to 0.9.8
+ * Close log files when reusing a name. (pyroscope)
+ * Increased max timeout for tracker requests.
+ * Set max piece size 512mb.
+ * Switch to C++11 MRT RNG for random bytes. (lps-rocks)
+ * Added support for openssl 1.1.
+ * Fix honoring throttle.min_peers* settings in rtorrent. (chros)
+ * Improved failed tracker bencode parsing. (chros)
+ * Added example rtorrent.rc. (g0tmi1k)
+ * Added a temporary name filter. (Toff)
+ * Added 'log.close' command.
+ * Added 'd.tracker_announce.force' command.
+ * Added 'event.system.startup_done/shutdown' commands/events. (chros)
+ * Added 'd.custom.if_z' command. (pyroscope)
+ * Added 'd.multicall.filtered' command. (pyroscope)
+ * Added 'event.view.hide/show' commands. (pyroscope)
+
+- Update to 0.9.7
+ * Fixed ip filter memory usage. (sallyswiss/chros73)
+ * Add space to fmt str in log_gz_file_write. (pastly)
+ * Fix compilation issue with gcc v6.x and empty CXXFLAGS. (chros73)
+ * Fix BEP7 compatibility with IPv6 trackers and IPv4 peers.
+ * Include SCGI/XMLRPC example in rtorrent.rc. (ss23)
+ * Handle SIGHUP like SIGINT. (pyroscope)
+ * Fix Throttle args. (chros73)
+ * Fix missing ranlib - not defined but used. (duraki)
+ * Fix no // are at start of expanded paths. (pyroscope)
+ * Fix ncurses header include. (theirix)
+ * Fix segfault when viewing a magnet download in the leeching view. (slingamn)
+
+- Remove rtorrent-vim package because it was made for the old (now discouraged) config syntax
+ * See: https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
+
-------------------------------------------------------------------
Mon Dec 11 23:27:20 UTC 2017 - jengelh@inai.de
diff --git a/rtorrent.service b/rtorrent.service
new file mode 100644
index 0000000..173fcca
--- /dev/null
+++ b/rtorrent.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=rTorrent daemon
+Requires=network.target local-fs.target
+
+[Service]
+Type=forking
+RemainAfterExit=yes
+KillMode=none
+EnvironmentFile=-/etc/sysconfig/rtorrent
+ExecStart=/usr/bin/screen -d -m -S rtorrentd /usr/bin/rtorrent
+ExecStop=/usr/bin/screen -S rtorrentd -X quit
+User=rtorrent
+Group=rtorrent
+WorkingDirectory=~
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/rtorrent.spec b/rtorrent.spec
index 4513e01..063f2c4 100644
--- a/rtorrent.spec
+++ b/rtorrent.spec
@@ -21,20 +21,18 @@
%endif
Name: rtorrent
-Version: 0.9.6.g116
+Version: 0.9.8
Release: 0
Summary: Console-based BitTorrent Client
License: SUSE-GPL-2.0+-with-openssl-exception
Group: Productivity/Networking/File-Sharing
Url: http://github.com/rakshasa/rtorrent
-#Git-Clone git://github.com/rakshasa/rtorrent
-#Source: https://github.com/rakshasa/rtorrent/archive/%version.tar.gz
-Source: %name-%version.tar.xz
+
+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_syntax.vim
-Source5: rtorrent_ftdetect.vim
+Source4: rtorrent.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with xmlrpc}
BuildRequires: xmlrpc-c-devel
@@ -47,11 +45,10 @@ BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
# not strictly needed. we only need it for the ownership of the vim data dir
-BuildRequires: vim
-BuildRequires: xz
+BuildRequires: gzip
BuildRequires: pkgconfig(cppunit) >= 1.9.6
BuildRequires: pkgconfig(libcurl) >= 7.15.4
-BuildRequires: pkgconfig(libtorrent) >= 0.13.6
+BuildRequires: pkgconfig(libtorrent) >= 0.13.8
%description
rTorrent is a console-based BitTorrent client. It aims to be a
@@ -59,18 +56,6 @@ fully-featured and efficient client with the ability to run in the
background using screen. It supports fast-resume and session
management.
-%package vim
-Summary: Vim syntax file for rTorrent's config file
-Group: Productivity/Text/Editors
-BuildArch: noarch
-Requires: vim
-Supplements: packageand(vim:%{name})
-%{!?vim_data_dir:%global vim_data_dir %(readlink -f %_datadir/vim/current)}
-
-%description vim
-Vim syntax file for rTorrent's config file, .rtorrent.rc
-The files are taken from http://www.vim.org/scripts/script.php?script_id=2234
-
%prep
%setup -q
@@ -89,6 +74,9 @@ autoreconf -fiv
--enable-ipv6
make %{?_smp_mflags}
+%pre
+getent passwd rtorrent >/dev/null || useradd -r rtorrent
+
%install
b="%buildroot"
make install DESTDIR="$b"
@@ -96,8 +84,10 @@ 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/%vim_data_dir/syntax/%name.vim"
-install -Dm0644 "%{S:5}" "$b/%vim_data_dir/ftdetect/%name.vim"
+install -Dm0644 "%{S:4}" "$b/%{_unitdir}/rtorrent.service"
+
+%post
+%service_add_post rtorrent.service
%files
%defattr(-,root,root)
@@ -105,11 +95,6 @@ install -Dm0644 "%{S:5}" "$b/%vim_data_dir/ftdetect/%name.vim"
%_bindir/rtorrent
%_datadir/applications/%name.desktop
%_mandir/man1/rtorrent.1*
-
-%files vim
-%defattr(-,root,root)
-%dir %vim_data_dir/ftdetect
-%vim_data_dir/ftdetect/%name.vim
-%vim_data_dir/syntax/%name.vim
+%{_unitdir}/rtorrent.service
%changelog
diff --git a/rtorrent_ftdetect.vim b/rtorrent_ftdetect.vim
deleted file mode 100644
index 88e5896..0000000
--- a/rtorrent_ftdetect.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufNewFile,BufRead *.rtorrent.rc set filetype=rtorrent
diff --git a/rtorrent_syntax.vim b/rtorrent_syntax.vim
deleted file mode 100644
index c995f70..0000000
--- a/rtorrent_syntax.vim
+++ /dev/null
@@ -1,28 +0,0 @@
-" Vim Syntax file for rtorrent.rc
-" Author: Chris Carpita
-" Version: 0.1
-" Revised: May, 2008
-
-if !exists("main_syntax")
- let main_syntax='rtorrent'
-endif
-
-syn match rtorrentComment "#.*$"
-
-syn keyword rtorrentSetting min_peers max_peers min_peers_seed max_peers_seed max_uploads download_rate upload_rate directory session schedule ip bind port_range port_random check_hash use_udp_trackers encryption dht dht_port peer_exchange hash_read_ahead hash_interval hash_max_tries contained
-
-syn match rtorrentOp "=" contained
-
-syn match rtorrentStatement "\s*\w\+\s*=\s*.*$" contains=rtorrentSettingAttempt,rtorrentOp
-
-syn match rtorrentSettingAttempt "^\s*\w\+" contains=rtorrentSetting contained
-
-if !exists('HiLink')
- command! -nargs=+ HiLink hi link
-endif
-
-HiLink rtorrentSettingAttempt String
-HiLink rtorrentStatement Type
-HiLink rtorrentComment Comment
-HiLink rtorrentSetting Operator
-HiLink rtorrentOp Special