]>
Commit | Line | Data |
---|---|---|
fb8a2787 | 1 | # TODO: |
5f490dae AM |
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) | |
ea7c9a40 KK |
4 | # |
5 | # Conditional build: | |
df1a4703 | 6 | %bcond_without xmlrpc # build xmlrpc-c support |
a4a4b196 | 7 | %bcond_without colors # without color version |
740d76a0 | 8 | %bcond_without ipv6 # without IPv6 support |
ea7c9a40 | 9 | # |
cabbcf03 | 10 | Summary: rTorrent - a console-based BitTorrent client |
7ea6faa5 | 11 | Summary(pl.UTF-8): rTorrent - konsolowy klient BitTorrenta |
cabbcf03 | 12 | Name: rtorrent |
474e66de | 13 | # keep stable line, see URL below |
fbee6e1f AM |
14 | Version: 0.9.4 |
15 | Release: 1 | |
bc6f79ce | 16 | Epoch: 5 |
191205cd | 17 | License: GPL v2+ |
48dd346c | 18 | Group: Applications/Networking |
cabbcf03 | 19 | Source0: http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz |
fbee6e1f | 20 | # Source0-md5: fd9490a2ac67d0fa2a567c6267845876 |
824ecbeb | 21 | Source1: rtorrent-tmux@.service |
bce4bd38 | 22 | Patch0: %{name}-colors.patch |
740d76a0 | 23 | Patch1: %{name}-ssl-no-verify.patch |
fb8a2787 | 24 | Patch2: %{name}-ip_filter.patch |
4b01ba5e | 25 | Patch3: %{name}-build.patch |
fbee6e1f | 26 | URL: https://github.com/rakshasa/rtorrent/wiki |
4a73f924 | 27 | BuildRequires: autoconf |
2f39620b | 28 | BuildRequires: automake |
68703b42 | 29 | BuildRequires: boost-devel >= 1.35.0 |
b27efe97 | 30 | BuildRequires: cppunit-devel >= 1.9.6 |
cabbcf03 KK |
31 | BuildRequires: curl-devel >= 7.12 |
32 | BuildRequires: libstdc++-devel | |
4a73f924 | 33 | BuildRequires: libtool |
fbee6e1f | 34 | BuildRequires: libtorrent-devel = 1:0.13.4 |
cabbcf03 KK |
35 | BuildRequires: ncurses-devel |
36 | BuildRequires: pkgconfig | |
acf63573 | 37 | BuildRequires: sqlite3-devel |
90e2908e | 38 | %if %{with xmlrpc} |
ddeeedbc | 39 | BuildRequires: xmlrpc-c-server-devel >= 1.14.2 |
f9fd3085 | 40 | %endif |
81b2276a | 41 | BuildRequires: zlib-devel |
824ecbeb | 42 | Suggests: tmux |
cabbcf03 KK |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | rTorrent is a console-based BitTorrent client. It aims to be a | |
47 | fully-featured and efficient client with the ability to run in the | |
48 | background using screen. It supports fast-resume and session | |
49 | management. | |
50 | ||
cd3947b3 JR |
51 | %description -l pl.UTF-8 |
52 | rTorrent to konsolowy klient BitTorrenta. Jego celem jest być pełnym i | |
53 | wydajnym klientem, z możliwością uruchamiania go w tle przy użyciu | |
54 | screena. Obsługuje szybkie wznawianie i zarządzanie sesjami. | |
48dd346c | 55 | |
cabbcf03 KK |
56 | %prep |
57 | %setup -q | |
9ea72452 | 58 | %if %{with colors} |
bce4bd38 | 59 | %patch0 -p1 |
9ea72452 | 60 | %endif |
740d76a0 | 61 | %patch1 -p1 |
5f490dae AM |
62 | # broke, see TODO |
63 | #%patch2 -p1 | |
af3a25de | 64 | %patch3 -p1 |
cabbcf03 KK |
65 | |
66 | %build | |
72be8d87 | 67 | %{__libtoolize} |
68 | %{__aclocal} -I scripts | |
69 | %{__autoconf} | |
70 | %{__autoheader} | |
71 | %{__automake} | |
cabbcf03 | 72 | %configure \ |
e58be5f6 | 73 | CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \ |
23623041 | 74 | --%{?debug:en}%{!?debug:dis}able-debug \ |
6ebf0204 | 75 | --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \ |
bce4bd38 | 76 | --with%{!?with_xmlrpc:out}-xmlrpc-c |
23623041 | 77 | |
cabbcf03 KK |
78 | %{__make} |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
fbee6e1f | 82 | install -d $RPM_BUILD_ROOT%{systemdunitdir} |
cabbcf03 KK |
83 | |
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
824ecbeb | 87 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir} |
8e8c7a6a | 88 | |
cabbcf03 KK |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
4b01ba5e | 94 | %doc AUTHORS README doc/rtorrent.rc |
cabbcf03 | 95 | %attr(755,root,root) %{_bindir}/* |
824ecbeb | 96 | %{systemdunitdir}/*.service |