- fix deps
[packages/rtorrent.git] / rtorrent.spec
1 # TODO:
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)
4 #
5 # Conditional build:
6 %bcond_without  xmlrpc          # build xmlrpc-c support
7 %bcond_with     colors          # without color version
8 %bcond_without  ipv6            # without IPv6 support
9 #
10 Summary:        rTorrent - a console-based BitTorrent client
11 Summary(pl.UTF-8):      rTorrent - konsolowy klient BitTorrenta
12 Name:           rtorrent
13 # keep stable line, see URL below
14 Version:        0.9.8
15 Release:        2
16 Epoch:          5
17 License:        GPL v2+
18 Group:          Applications/Networking
19 Source0:        http://rtorrent.net/downloads/%{name}-%{version}.tar.gz
20 # Source0-md5:  cbdf499faa0882e20d60fcb85a8f51d3
21 Patch0:         %{name}-colors.patch
22 Patch1:         %{name}-ssl-no-verify.patch
23 Patch2:         %{name}-ip_filter.patch
24 Patch3:         %{name}-build.patch
25 URL:            https://github.com/rakshasa/rtorrent/wiki
26 BuildRequires:  autoconf >= 2.50
27 BuildRequires:  automake
28 BuildRequires:  boost-devel >= 1.35.0
29 BuildRequires:  cppunit-devel >= 1.9.6
30 BuildRequires:  curl-devel >= 7.15.4
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool
33 BuildRequires:  libtorrent-devel >= 1:0.13.8
34 BuildRequires:  ncurses-devel
35 BuildRequires:  pkgconfig
36 BuildRequires:  sqlite3-devel
37 %if %{with xmlrpc}
38 BuildRequires:  xmlrpc-c-server-devel >= 1.14.2
39 %endif
40 BuildRequires:  zlib-devel
41 Requires:       curl-libs >= 7.15.4
42 Requires:       libtorrent >= 1:0.13.8
43 Suggests:       tmux
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
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
50 management.
51
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.
56
57 %prep
58 %setup -q
59 %if %{with colors}
60 %patch0 -p1
61 %endif
62 %patch1 -p1
63 # broke, see TODO
64 #%patch2 -p1
65 %patch3 -p1
66
67 %build
68 %{__libtoolize}
69 %{__aclocal} -I scripts
70 %{__autoconf}
71 %{__autoheader}
72 %{__automake}
73 %configure \
74         CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
75         --%{?debug:en}%{!?debug:dis}able-debug \
76         --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
77         --with%{!?with_xmlrpc:out}-xmlrpc-c
78
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc AUTHORS README doc/rtorrent.rc
93 %attr(755,root,root) %{_bindir}/rtorrent