Accepting request 719869 from filesharing

OBS-URL: https://build.opensuse.org/request/show/719869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rtorrent?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2019-07-31 12:31:15 +00:00 committed by Git OBS Bridge
parent 03a8f5436a
commit eeaa0c8fe6
8 changed files with 70 additions and 75 deletions

View File

@ -1,14 +0,0 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">git://github.com/rakshasa/rtorrent</param>
<param name="revision">c38ec6fdae38e76101214f3b1edb84f17fae492a</param>
<param name="parent-tag">62cb5a4</param>
<param name="versionformat">0.9.6.g@TAG_OFFSET@</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56a9695281ab9fea5e642f59a8e70b140e3e3f9f16eea46a5e75ec69192c9e64
size 190660

3
rtorrent-0.9.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
size 647523

View File

@ -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

17
rtorrent.service Normal file
View File

@ -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

View File

@ -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

View File

@ -1 +0,0 @@
au BufNewFile,BufRead *.rtorrent.rc set filetype=rtorrent

View File

@ -1,28 +0,0 @@
" Vim Syntax file for rtorrent.rc
" Author: Chris Carpita <ccarpita@gmail.com>
" 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 <args>
endif
HiLink rtorrentSettingAttempt String
HiLink rtorrentStatement Type
HiLink rtorrentComment Comment
HiLink rtorrentSetting Operator
HiLink rtorrentOp Special