1 %define tagver %(echo %{version} | tr . _)
2 Summary: A C++ BitTorrent library
3 Summary(hu.UTF-8): C++ BitTorrent könyvtár
4 Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++
5 Name: libtorrent-rasterbar
11 Source0: https://github.com/arvidn/libtorrent/releases/download/libtorrent-%{tagver}/%{name}-%{version}.tar.gz
12 # Source0-md5: e88d7f56fe9384e835b8389cd59e540e
13 URL: http://www.rasterbar.com/products/libtorrent/
14 BuildRequires: GeoIP-devel
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: boost-devel >= 1.36
18 BuildRequires: boost-python-devel >= 1.36
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:2.2.6
21 BuildRequires: openssl-devel
22 BuildRequires: pkgconfig >= 1:0.20
23 BuildRequires: python-devel >= 1:2.4
24 BuildRequires: python-modules >= 1:2.4
25 BuildRequires: rpm-pythonprov
26 BuildRequires: sed >= 4.0
27 BuildRequires: util-linux
29 BuildRequires: zlib-devel
30 Obsoletes: rb_libtorrent
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 libtorrent-rasterbar is a C++ library that aims to be a good
35 alternative to all the other BitTorrent implementations around. It is
36 a library and not a full featured client, although it comes with a
37 working example client.
39 Its main goals are to be very efficient (in terms of CPU and memory
40 usage) as well as being very easy to use both as a user and developer.
42 %description -l hu.UTF-8
43 libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája
44 kíván lenni az összes többi BitTorrent implementációjának. Ez "csak"
45 egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy
48 A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és
49 könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek.
51 %description -l pl.UTF-8
52 libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do
53 bycia dobrą alternatywą dla wszystkich innych implementacji
54 BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek
55 pakiet zawiera działającego przykładowego klienta.
57 Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu
58 wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno
59 dla użytkownika, jak i programisty.
62 Summary: Header files for %{name} library
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
64 License: BSD, zlib/libpng License, Boost Software License
65 Group: Development/Libraries
66 Requires: %{name} = %{epoch}:%{version}-%{release}
68 Requires: openssl-devel
69 Obsoletes: rb_libtorrent-devel
72 The libtorrent-rasterbar-devel package contains libraries and header
73 files for developing applications that use libtorrent-rasterbar.
75 The various source and header files included in this package are
76 licensed under the revised BSD, zlib/libpng, and Boost Public
79 %description devel -l hu.UTF-8
80 A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
81 fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
82 alkalmazásokat fejleszthetsz.
84 %description devel -l pl.UTF-8
85 Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
86 rozwijania aplikacji używających libtorrent-rasterbar.
88 Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są
89 licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public
93 Summary: Static %{name} library
94 Summary(pl.UTF-8): Statyczna biblioteka %{name}
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
97 Obsoletes: rb_libtorrent-static
100 Static libtorrent-rasterbar library.
102 %description static -l hu.UTF-8
103 Statikus libtorrent-rasterbar könyvtár.
105 %description static -l pl.UTF-8
106 Statyczna biblioteka libtorrent-rasterbar.
108 %package -n python-libtorrent-rasterbar
109 Summary: Python bindings for libtorrent-rasterbar
110 Summary(pl.UTF-8): Wiązania Pythona do biblioteki libtorrent-rasterbar
111 Group: Libraries/Python
112 Requires: %{name} = %{epoch}:%{version}-%{release}
114 %description -n python-libtorrent-rasterbar
115 Python bindings for libtorrent-rasterbar.
117 %description -n python-libtorrent-rasterbar -l pl.UTF-8
118 Wiązania Pythona do biblioteki libtorrent-rasterbar.
123 ## Some of the sources and docs are executable, which makes rpmlint against
124 ## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
125 find src docs -type f | xargs chmod a-x
126 find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
127 ## The RST files are the sources used to create the final HTML files; and are
137 LIBS="-lpthread -lrt" \
138 --disable-silent-rules \
139 --enable-python-binding \
140 --with-boost-libdir=%{_libdir} \
141 --with-boost-system=boost_system \
142 --with-boost-filesystem=boost_filesystem \
143 --with-boost-thread=boost_thread \
144 --with-boost-regex=boost_regex \
145 --with-boost-program-options=boost_program_options \
148 --with-libgeoip=system \
154 rm -rf $RPM_BUILD_ROOT
157 DESTDIR=$RPM_BUILD_ROOT
160 rm -rf $RPM_BUILD_ROOT
162 %post -p /sbin/ldconfig
163 %postun -p /sbin/ldconfig
166 %defattr(644,root,root,755)
167 %doc AUTHORS ChangeLog COPYING README
168 %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so.*.*.*
169 %attr(755,root,root) %ghost %{_libdir}/libtorrent-rasterbar.so.8
172 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
175 %{_libdir}/libtorrent-rasterbar.la
176 %{_pkgconfigdir}/libtorrent-rasterbar.pc
177 %{_includedir}/libtorrent
180 %defattr(644,root,root,755)
181 %{_libdir}/libtorrent-rasterbar.a
183 %files -n python-libtorrent-rasterbar
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{py_sitedir}/libtorrent.so
186 %{py_sitedir}/python_libtorrent-*.egg-info