2 # - ip_filter patch is broken (doesn't handle ipv6 addresses. Also causes
3 # "rtorrent: CommandMap::insert(...) tried to insert an already existing key." error)
6 %bcond_without xmlrpc # build xmlrpc-c support
7 %bcond_without colors # without color version
8 %bcond_without ipv6 # without IPv6 support
10 Summary: rTorrent - a console-based BitTorrent client
11 Summary(pl.UTF-8): rTorrent - konsolowy klient BitTorrenta
13 # keep stable line, see URL below
18 Group: Applications/Networking
19 Source0: http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz
20 # Source0-md5: 72c3e9ab859bda7cc8aa96c0b508b09f
21 Source1: rtorrent-tmux@.service
22 Patch0: %{name}-colors.patch
23 Patch1: %{name}-ssl-no-verify.patch
24 Patch2: %{name}-ip_filter.patch
25 Patch3: %{name}-build.patch
27 URL: http://libtorrent.rakshasa.no/
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: boost-devel >= 1.35.0
31 BuildRequires: cppunit-devel >= 1.9.6
32 BuildRequires: curl-devel >= 7.12
33 BuildRequires: libstdc++-devel
34 BuildRequires: libtool
35 BuildRequires: libtorrent-devel = 1:0.13.2
36 BuildRequires: ncurses-devel
37 BuildRequires: pkgconfig
38 BuildRequires: sqlite3-devel
40 BuildRequires: xmlrpc-c-server-devel >= 1.14.2
42 BuildRequires: zlib-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 rTorrent is a console-based BitTorrent client. It aims to be a
48 fully-featured and efficient client with the ability to run in the
49 background using screen. It supports fast-resume and session
52 %description -l pl.UTF-8
53 rTorrent to konsolowy klient BitTorrenta. Jego celem jest być pełnym i
54 wydajnym klientem, z możliwością uruchamiania go w tle przy użyciu
55 screena. Obsługuje szybkie wznawianie i zarządzanie sesjami.
70 %{__aclocal} -I scripts
75 CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
76 --%{?debug:en}%{!?debug:dis}able-debug \
77 --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
78 --with%{!?with_xmlrpc:out}-xmlrpc-c
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{systemdunitdir}}
87 DESTDIR=$RPM_BUILD_ROOT
89 install -p doc/rtorrent.1 $RPM_BUILD_ROOT%{_mandir}/man1
90 install -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc AUTHORS README doc/rtorrent.rc
98 %attr(755,root,root) %{_bindir}/*
99 %{_mandir}/man1/rtorrent.1*
100 %{systemdunitdir}/*.service