]> git.pld-linux.org Git - packages/rtorrent.git/blame - rtorrent.spec
- up to 0.9.4
[packages/rtorrent.git] / rtorrent.spec
CommitLineData
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 10Summary: rTorrent - a console-based BitTorrent client
7ea6faa5 11Summary(pl.UTF-8): rTorrent - konsolowy klient BitTorrenta
cabbcf03 12Name: rtorrent
474e66de 13# keep stable line, see URL below
fbee6e1f
AM
14Version: 0.9.4
15Release: 1
bc6f79ce 16Epoch: 5
191205cd 17License: GPL v2+
48dd346c 18Group: Applications/Networking
cabbcf03 19Source0: http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz
fbee6e1f 20# Source0-md5: fd9490a2ac67d0fa2a567c6267845876
824ecbeb 21Source1: rtorrent-tmux@.service
bce4bd38 22Patch0: %{name}-colors.patch
740d76a0 23Patch1: %{name}-ssl-no-verify.patch
fb8a2787 24Patch2: %{name}-ip_filter.patch
4b01ba5e 25Patch3: %{name}-build.patch
fbee6e1f 26URL: https://github.com/rakshasa/rtorrent/wiki
4a73f924 27BuildRequires: autoconf
2f39620b 28BuildRequires: automake
68703b42 29BuildRequires: boost-devel >= 1.35.0
b27efe97 30BuildRequires: cppunit-devel >= 1.9.6
cabbcf03
KK
31BuildRequires: curl-devel >= 7.12
32BuildRequires: libstdc++-devel
4a73f924 33BuildRequires: libtool
fbee6e1f 34BuildRequires: libtorrent-devel = 1:0.13.4
cabbcf03
KK
35BuildRequires: ncurses-devel
36BuildRequires: pkgconfig
acf63573 37BuildRequires: sqlite3-devel
90e2908e 38%if %{with xmlrpc}
ddeeedbc 39BuildRequires: xmlrpc-c-server-devel >= 1.14.2
f9fd3085 40%endif
81b2276a 41BuildRequires: zlib-devel
824ecbeb 42Suggests: tmux
cabbcf03
KK
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46rTorrent is a console-based BitTorrent client. It aims to be a
47fully-featured and efficient client with the ability to run in the
48background using screen. It supports fast-resume and session
49management.
50
cd3947b3
JR
51%description -l pl.UTF-8
52rTorrent to konsolowy klient BitTorrenta. Jego celem jest być pełnym i
53wydajnym klientem, z możliwością uruchamiania go w tle przy użyciu
54screena. 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
81rm -rf $RPM_BUILD_ROOT
fbee6e1f 82install -d $RPM_BUILD_ROOT%{systemdunitdir}
cabbcf03
KK
83
84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
86
824ecbeb 87install -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}
8e8c7a6a 88
cabbcf03
KK
89%clean
90rm -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
This page took 0.073803 seconds and 4 git commands to generate.