2014-08-06 15:31:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtorrent
|
|
|
|
#
|
2017-08-24 18:29:44 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-08-06 15:31:58 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-08-24 18:29:44 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%bcond_without xmlrpc
|
|
|
|
%endif
|
|
|
|
|
2014-08-06 15:31:58 +02:00
|
|
|
Name: rtorrent
|
2017-12-12 21:23:14 +01:00
|
|
|
Version: 0.9.6.g116
|
2014-08-06 15:31:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Console-based BitTorrent Client
|
|
|
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
|
|
|
Group: Productivity/Networking/File-Sharing
|
2015-11-18 22:34:37 +01:00
|
|
|
Url: http://github.com/rakshasa/rtorrent
|
|
|
|
#Git-Clone git://github.com/rakshasa/rtorrent
|
2017-08-24 18:29:44 +02:00
|
|
|
#Source: https://github.com/rakshasa/rtorrent/archive/%version.tar.gz
|
|
|
|
Source: %name-%version.tar.xz
|
2014-08-06 15:31:58 +02:00
|
|
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if %{with xmlrpc}
|
2017-08-24 18:29:44 +02:00
|
|
|
BuildRequires: xmlrpc-c-devel
|
2014-08-06 15:31:58 +02:00
|
|
|
%endif
|
2015-11-18 22:34:37 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2014-08-06 15:31:58 +02:00
|
|
|
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
|
2017-08-24 18:29:44 +02:00
|
|
|
BuildRequires: xz
|
2015-11-18 22:34:37 +01:00
|
|
|
BuildRequires: pkgconfig(cppunit) >= 1.9.6
|
|
|
|
BuildRequires: pkgconfig(libcurl) >= 7.15.4
|
|
|
|
BuildRequires: pkgconfig(libtorrent) >= 0.13.6
|
2014-08-06 15:31:58 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
rTorrent is a console-based BitTorrent client. It aims to be a
|
|
|
|
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
|
2015-11-18 22:34:37 +01:00
|
|
|
Requires: vim
|
2014-08-06 15:31:58 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
%build
|
|
|
|
# It's full of type pun violations
|
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
%if 0%{?suse_version} >= 1220
|
|
|
|
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
|
|
|
%endif
|
2015-11-18 22:34:37 +01:00
|
|
|
autoreconf -fiv
|
2014-08-06 15:31:58 +02:00
|
|
|
%configure \
|
|
|
|
%if %{with xmlrpc}
|
|
|
|
--with-xmlrpc-c="%_bindir/xmlrpc-c-config" \
|
|
|
|
%endif
|
|
|
|
--enable-ipv6
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
make install DESTDIR="$b"
|
|
|
|
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"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/rtorrent.rc COPYING
|
|
|
|
%_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
|
|
|
|
|
|
|
|
%changelog
|