1 Summary: A C++ BitTorrent library
2 Summary(hu.UTF-8): C++ BitTorrent könyvtár
3 Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++
4 Name: libtorrent-rasterbar
9 Source0: http://dl.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz
10 # Source0-md5: 6ce3148f8fbddbdfa472ef3c4c4cae61
11 URL: http://www.rasterbar.com/products/libtorrent/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: boost-devel >= 1.35.0
15 BuildRequires: libstdc++-devel
16 BuildRequires: libtool
17 BuildRequires: openssl-devel
18 BuildRequires: sed >= 4.0
19 BuildRequires: util-linux-ng
21 BuildRequires: zlib-devel
22 Obsoletes: rb_libtorrent
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 libtorrent-rasterbar is a C++ library that aims to be a good
27 alternative to all the other BitTorrent implementations around. It is
28 a library and not a full featured client, although it comes with a
29 working example client.
31 Its main goals are to be very efficient (in terms of CPU and memory
32 usage) as well as being very easy to use both as a user and developer.
34 %description -l hu.UTF-8
35 libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája
36 kíván lenni az összes többi BitTorrent implementációjának. Ez "csak"
37 egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy
40 A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és
41 könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek.
43 %description -l pl.UTF-8
44 libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do
45 bycia dobrą alternatywą dla wszystkich innych implementacji
46 BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek
47 pakiet zawiera działającego przykładowego klienta.
49 Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu
50 wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno
51 dla użytkownika, jak i programisty.
54 Summary: Header files for %{name} library
55 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
56 License: BSD, zlib/libpng License, Boost Software License
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
60 Requires: openssl-devel
61 Obsoletes: rb_libtorrent-devel
64 The libtorrent-rasterbar-devel package contains libraries and header
65 files for developing applications that use libtorrent-rasterbar.
67 The various source and header files included in this package are
68 licensed under the revised BSD, zlib/libpng, and Boost Public
71 %description devel -l hu.UTF-8
72 A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
73 fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
74 alkalmazásokat fejleszthetsz.
76 %description devel -l pl.UTF-8
77 Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
78 rozwijania aplikacji używających libtorrent-rasterbar.
80 Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są
81 licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public
85 Summary: Static %{name} library
86 Summary(pl.UTF-8): Statyczna biblioteka %{name}
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
89 Obsoletes: rb_libtorrent-static
92 Static libtorrent-rasterbar library.
94 %description static -l hu.UTF-8
95 Statikus libtorrent-rasterbar könyvtár.
97 %description static -l pl.UTF-8
98 Statyczna biblioteka libtorrent-rasterbar.
102 %{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am
104 ## Some of the sources and docs are executable, which makes rpmlint against
105 ## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
106 find src docs -type f | xargs chmod a-x
107 find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
108 ## The RST files are the sources used to create the final HTML files; and are
118 --with-boost-system=boost_system \
119 --with-boost-filesystem=boost_filesystem \
120 --with-boost-thread=boost_thread \
121 --with-boost-regex=boost_regex \
122 --with-boost-program-options=boost_program_options \
123 --with-{asio,zlib}=system \
126 %{__make} LDFLAGS="-L%{_libdir}64 %{rpmldflags}"
129 rm -rf $RPM_BUILD_ROOT
130 ## Ensure that we preserve our timestamps properly.
131 #export CPPROG="%{__cp} -p"
132 #make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p"
134 DESTDIR=$RPM_BUILD_ROOT
136 ## Do the renaming due to the somewhat limited %{_bindir} namespace.
137 rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
140 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
146 %defattr(644,root,root,755)
147 %doc AUTHORS ChangeLog COPYING README
148 %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so*
151 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
154 %{_libdir}/libtorrent-rasterbar.la
155 %{_pkgconfigdir}/libtorrent-rasterbar.pc
156 %{_includedir}/libtorrent
159 %defattr(644,root,root,755)
160 %{_libdir}/libtorrent-rasterbar.a