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