]>
Commit | Line | Data |
---|---|---|
2e00201e ZU |
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 | |
2ed87f41 | 5 | Version: 0.15.0 |
6 | Release: 1 | |
2e00201e ZU |
7 | License: BSD |
8 | Group: Libraries | |
0f532b6d | 9 | Source0: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz |
2ed87f41 | 10 | # Source0-md5: 3f8253457557a3f4778fa18fa076c5c9 |
2e00201e | 11 | URL: http://www.rasterbar.com/products/libtorrent/ |
6873d9da AF |
12 | Patch0: bashizm.patch |
13 | BuildRequires: GeoIP-devel | |
2e00201e ZU |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
16 | BuildRequires: boost-devel >= 1.35.0 | |
6873d9da | 17 | BuildRequires: boost-python-devel |
2e00201e | 18 | BuildRequires: libstdc++-devel |
d412ac15 ZU |
19 | BuildRequires: libtool |
20 | BuildRequires: openssl-devel | |
6873d9da AF |
21 | BuildRequires: pkgconfig >= 1:0.20 |
22 | BuildRequires: python-devel | |
7f0d431f | 23 | BuildRequires: python-modules |
24 | BuildRequires: rpm-pythonprov | |
2e00201e | 25 | BuildRequires: sed >= 4.0 |
d412ac15 | 26 | BuildRequires: util-linux-ng |
401fe683 | 27 | BuildRequires: which |
2e00201e | 28 | BuildRequires: zlib-devel |
d412ac15 | 29 | Obsoletes: rb_libtorrent |
2e00201e ZU |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | libtorrent-rasterbar is a C++ library that aims to be a good | |
34 | alternative to all the other BitTorrent implementations around. It is | |
35 | a library and not a full featured client, although it comes with a | |
36 | working example client. | |
37 | ||
38 | Its main goals are to be very efficient (in terms of CPU and memory | |
39 | usage) as well as being very easy to use both as a user and developer. | |
40 | ||
41 | %description -l hu.UTF-8 | |
42 | libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája | |
697b38ac JB |
43 | kíván lenni az összes többi BitTorrent implementációjának. Ez "csak" |
44 | egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy | |
45 | működő példa-klienst. | |
2e00201e | 46 | |
697b38ac JB |
47 | A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és |
48 | könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek. | |
2e00201e ZU |
49 | |
50 | %description -l pl.UTF-8 | |
697b38ac JB |
51 | libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do |
52 | bycia dobrą alternatywą dla wszystkich innych implementacji | |
53 | BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek | |
2e00201e ZU |
54 | pakiet zawiera działającego przykładowego klienta. |
55 | ||
56 | Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu | |
697b38ac JB |
57 | wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno |
58 | dla użytkownika, jak i programisty. | |
2e00201e ZU |
59 | |
60 | %package devel | |
61 | Summary: Header files for %{name} library | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
63 | License: BSD, zlib/libpng License, Boost Software License | |
64 | Group: Development/Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: boost-devel | |
67 | Requires: openssl-devel | |
d412ac15 | 68 | Obsoletes: rb_libtorrent-devel |
2e00201e ZU |
69 | |
70 | %description devel | |
71 | The libtorrent-rasterbar-devel package contains libraries and header | |
72 | files for developing applications that use libtorrent-rasterbar. | |
73 | ||
74 | The various source and header files included in this package are | |
75 | licensed under the revised BSD, zlib/libpng, and Boost Public | |
76 | licenses. | |
77 | ||
78 | %description devel -l hu.UTF-8 | |
79 | A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és | |
80 | fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó | |
81 | alkalmazásokat fejleszthetsz. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do | |
85 | rozwijania aplikacji używających libtorrent-rasterbar. | |
86 | ||
697b38ac JB |
87 | Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są |
88 | licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public | |
89 | License. | |
2e00201e ZU |
90 | |
91 | %package static | |
92 | Summary: Static %{name} library | |
93 | Summary(pl.UTF-8): Statyczna biblioteka %{name} | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
d412ac15 | 96 | Obsoletes: rb_libtorrent-static |
2e00201e ZU |
97 | |
98 | %description static | |
99 | Static libtorrent-rasterbar library. | |
100 | ||
101 | %description static -l hu.UTF-8 | |
102 | Statikus libtorrent-rasterbar könyvtár. | |
103 | ||
104 | %description static -l pl.UTF-8 | |
105 | Statyczna biblioteka libtorrent-rasterbar. | |
106 | ||
6873d9da AF |
107 | %package -n python-libtorrent-rasterbar |
108 | Summary: Python bindings for libtorrent-rasterbar | |
109 | Group: Libraries/Python | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description -n python-libtorrent-rasterbar | |
113 | Python bindings for libtorrent-rasterbar. | |
114 | ||
2e00201e ZU |
115 | %prep |
116 | %setup -q | |
6873d9da | 117 | %patch0 -p1 |
ef45903e | 118 | %{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am |
d412ac15 | 119 | |
2e00201e ZU |
120 | ## Some of the sources and docs are executable, which makes rpmlint against |
121 | ## the resulting -debuginfo and -devel packages, respectively, quite angry. :] | |
122 | find src docs -type f | xargs chmod a-x | |
123 | find -type f -regex '.*\.[hc]pp' | xargs chmod a-x | |
124 | ## The RST files are the sources used to create the final HTML files; and are | |
125 | ## not needed. | |
126 | rm -f docs/*.rst | |
2e00201e ZU |
127 | |
128 | %build | |
2e00201e | 129 | %{__libtoolize} |
37216aa2 | 130 | %{__aclocal} -I m4 |
2e00201e ZU |
131 | %{__autoconf} |
132 | %{__automake} | |
133 | %configure \ | |
6f20c549 | 134 | LIBS="-lpthread -lrt" \ |
6873d9da | 135 | --enable-python-binding \ |
a5caad3e | 136 | --with-boost-libdir=%{_libdir} \ |
d412ac15 ZU |
137 | --with-boost-system=boost_system \ |
138 | --with-boost-filesystem=boost_filesystem \ | |
139 | --with-boost-thread=boost_thread \ | |
140 | --with-boost-regex=boost_regex \ | |
141 | --with-boost-program-options=boost_program_options \ | |
6873d9da AF |
142 | --with-asio=system \ |
143 | --with-zlib=system \ | |
144 | --with-libgeoip=system \ | |
d412ac15 | 145 | --with-ssl |
2e00201e | 146 | |
7f0d431f | 147 | %{__make} |
2e00201e ZU |
148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ## Ensure that we preserve our timestamps properly. | |
152 | #export CPPROG="%{__cp} -p" | |
153 | #make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p" | |
154 | %{__make} install \ | |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
157 | ## Do the renaming due to the somewhat limited %{_bindir} namespace. | |
158 | rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/* | |
159 | ||
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %post -p /sbin/ldconfig | |
164 | %postun -p /sbin/ldconfig | |
165 | ||
166 | %files | |
167 | %defattr(644,root,root,755) | |
168 | %doc AUTHORS ChangeLog COPYING README | |
169 | %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so* | |
170 | ||
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
173 | %doc docs/ | |
174 | %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so | |
175 | %{_libdir}/libtorrent-rasterbar.la | |
176 | %{_pkgconfigdir}/libtorrent-rasterbar.pc | |
177 | %{_includedir}/libtorrent | |
178 | ||
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libtorrent-rasterbar.a | |
6873d9da AF |
182 | |
183 | %files -n python-libtorrent-rasterbar | |
817b2250 | 184 | %defattr(644,root,root,755) |
6873d9da AF |
185 | %{py_sitedir}/libtorrent.so |
186 | %{py_sitedir}/python_libtorrent-*.egg-info |