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