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