3 %bcond_without static_libs # don't build static library
4 %bcond_without ipv6 # disable IPv6 support
6 Summary: LibTorrent - a BitTorrent library written in C++ for Unix
7 Summary(pl.UTF-8): LibTorrent - biblioteka BitTorrenta napisana w C++ dla Uniksa
9 # keep stable line, see URL below
15 Source0: http://rtorrent.net/downloads/%{name}-%{version}.tar.gz
16 # Source0-md5: 66f18044432a62c006c75f6d0bb4d7dc
17 Patch0: %{name}-client_list.patch
18 Patch1: %{name}-build.patch
19 Patch2: libtorrent-bencoded-error.patch
20 URL: https://github.com/rakshasa/rtorrent/wiki
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake
23 BuildRequires: cppunit-devel >= 1.9.6
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtool >= 2:2
26 BuildRequires: openssl-devel >= 0.9.7d
27 BuildRequires: pkgconfig
28 BuildRequires: zlib-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 LibTorrent is a BitTorrent library written in C++ for *nix, with a
33 focus on high performance and good code. The library differentiates
34 itself from other implementations by transfering directly from file
35 pages to the network stack. On high-bandwidth connections it is able
36 to seed at 3 times the speed of the official client.
38 %description -l pl.UTF-8
39 LibTorrent to biblioteka BitTorrenta napisana w C++ dla Uniksa. Jest
40 zaprojektowana aby uniknąć nadmiarowego kopiowania buforów i danych,
41 będącego wadą większości (wszystkich?) innych implementacji
42 BitTorrenta. Biblioteka jest jednowątkowa, klient obsługuje pętlę
46 Summary: Development files for libtorrent
47 Summary(pl.UTF-8): Pliki programistyczne libtorrent
48 Group: Development/Libraries
49 Requires: %{name} = %{epoch}:%{version}-%{release}
50 Requires: libstdc++-devel
51 Requires: openssl-devel >= 0.9.7d
55 Development files for libtorrent.
57 %description devel -l pl.UTF-8
58 Pliki programistyczne libtorrent.
61 Summary: Static libtorrent library
62 Summary(pl.UTF-8): Statyczna biblioteka libtorrent
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
67 Static libtorrent library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libtorrent.
73 v=%{version}; IFS=.; set -- $v
74 if [ $(($2 % 2)) = 0 ]; then
75 echo "WARNING Version %{version} is probably unstable, check it first!"
84 %{__rm} scripts/{libtool,lt*}.m4
88 %{__aclocal} -I scripts
94 --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
95 --%{?debug:en}%{!?debug:dis}able-debug \
96 %{?with_static_libs:--enable-static} \
98 --disable-instrumentation
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libtorrent.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libtorrent.so.19
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libtorrent.so
124 %{_libdir}/libtorrent.la
125 %{_includedir}/torrent
126 %{_pkgconfigdir}/libtorrent.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)
131 %{_libdir}/libtorrent.a