]> git.pld-linux.org Git - packages/libtorrent-rasterbar.git/blame - libtorrent-rasterbar.spec
rebuild with openssl 3.0.0
[packages/libtorrent-rasterbar.git] / libtorrent-rasterbar.spec
CommitLineData
344936aa 1# WARNING: qbittorrent 4.1.x uses 1.1.x/1.2.x, not 2.x
2f6f6f2a 2#
a74ab93b 3%define tagver %(echo %{version} | tr . _)
2e00201e
ZU
4Summary: A C++ BitTorrent library
5Summary(hu.UTF-8): C++ BitTorrent könyvtár
6Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++
7Name: libtorrent-rasterbar
e335d726 8Version: 1.2.7
e77971dd 9Release: 3
2f6f6f2a 10Epoch: 2
2e00201e
ZU
11License: BSD
12Group: Libraries
e335d726 13#Source0Download: https://github.com/arvidn/libtorrent/releases
8c4aad5f 14Source0: https://github.com/arvidn/libtorrent/releases/download/libtorrent_%{tagver}/%{name}-%{version}.tar.gz
e335d726 15# Source0-md5: 0c5e9d3c141704d1801f6da65c4554fe
2e00201e 16URL: http://www.rasterbar.com/products/libtorrent/
6873d9da 17BuildRequires: GeoIP-devel
5dc8bbd5
JB
18BuildRequires: autoconf >= 2.63
19BuildRequires: automake >= 1:1.11
e335d726
JB
20BuildRequires: boost-devel >= 1.58
21BuildRequires: boost-python-devel >= 1.58
22BuildRequires: libstdc++-devel >= 6:4.7
5dc8bbd5 23BuildRequires: libtool >= 2:2.2.6
d412ac15 24BuildRequires: openssl-devel
6873d9da 25BuildRequires: pkgconfig >= 1:0.20
227ba0d1
JB
26BuildRequires: python-devel >= 1:2.4
27BuildRequires: python-modules >= 1:2.4
7f0d431f 28BuildRequires: rpm-pythonprov
2e00201e 29BuildRequires: sed >= 4.0
1b541e37 30BuildRequires: util-linux
401fe683 31BuildRequires: which
2e00201e 32BuildRequires: zlib-devel
d412ac15 33Obsoletes: rb_libtorrent
2e00201e
ZU
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37libtorrent-rasterbar is a C++ library that aims to be a good
38alternative to all the other BitTorrent implementations around. It is
39a library and not a full featured client, although it comes with a
40working example client.
41
42Its main goals are to be very efficient (in terms of CPU and memory
43usage) as well as being very easy to use both as a user and developer.
44
45%description -l hu.UTF-8
46libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája
697b38ac
JB
47kíván lenni az összes többi BitTorrent implementációjának. Ez "csak"
48egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy
49működő példa-klienst.
2e00201e 50
697b38ac
JB
51A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és
52könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek.
2e00201e
ZU
53
54%description -l pl.UTF-8
697b38ac
JB
55libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do
56bycia dobrą alternatywą dla wszystkich innych implementacji
57BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek
2e00201e
ZU
58pakiet zawiera działającego przykładowego klienta.
59
60Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu
697b38ac
JB
61wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno
62dla użytkownika, jak i programisty.
2e00201e
ZU
63
64%package devel
65Summary: Header files for %{name} library
66Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
67License: BSD, zlib/libpng License, Boost Software License
68Group: Development/Libraries
bd6a4700 69Requires: %{name} = %{epoch}:%{version}-%{release}
e335d726
JB
70Requires: boost-devel >= 1.58
71Requires: libstdc++-devel >= 6:4.7
2e00201e 72Requires: openssl-devel
d412ac15 73Obsoletes: rb_libtorrent-devel
2e00201e
ZU
74
75%description devel
76The libtorrent-rasterbar-devel package contains libraries and header
77files for developing applications that use libtorrent-rasterbar.
78
79The various source and header files included in this package are
80licensed under the revised BSD, zlib/libpng, and Boost Public
81licenses.
82
83%description devel -l hu.UTF-8
84A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
85fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
86alkalmazásokat fejleszthetsz.
87
88%description devel -l pl.UTF-8
89Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
90rozwijania aplikacji używających libtorrent-rasterbar.
91
697b38ac
JB
92Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są
93licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public
94License.
2e00201e
ZU
95
96%package static
97Summary: Static %{name} library
98Summary(pl.UTF-8): Statyczna biblioteka %{name}
99Group: Development/Libraries
bd6a4700 100Requires: %{name}-devel = %{epoch}:%{version}-%{release}
d412ac15 101Obsoletes: rb_libtorrent-static
2e00201e
ZU
102
103%description static
104Static libtorrent-rasterbar library.
105
106%description static -l hu.UTF-8
107Statikus libtorrent-rasterbar könyvtár.
108
109%description static -l pl.UTF-8
110Statyczna biblioteka libtorrent-rasterbar.
111
6873d9da
AF
112%package -n python-libtorrent-rasterbar
113Summary: Python bindings for libtorrent-rasterbar
5dc8bbd5 114Summary(pl.UTF-8): Wiązania Pythona do biblioteki libtorrent-rasterbar
6873d9da 115Group: Libraries/Python
bd6a4700 116Requires: %{name} = %{epoch}:%{version}-%{release}
6873d9da
AF
117
118%description -n python-libtorrent-rasterbar
119Python bindings for libtorrent-rasterbar.
120
5dc8bbd5
JB
121%description -n python-libtorrent-rasterbar -l pl.UTF-8
122Wiązania Pythona do biblioteki libtorrent-rasterbar.
123
2e00201e
ZU
124%prep
125%setup -q
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. :]
129find src docs -type f | xargs chmod a-x
130find -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
158rm -rf $RPM_BUILD_ROOT
5dc8bbd5 159
2e00201e
ZU
160%{__make} install \
161 DESTDIR=$RPM_BUILD_ROOT
162
2e00201e
ZU
163%clean
164rm -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.*.*.*
3eab5e87 173%attr(755,root,root) %ghost %{_libdir}/libtorrent-rasterbar.so.10
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
2e00201e 180%{_includedir}/libtorrent
e335d726
JB
181%{_pkgconfigdir}/libtorrent-rasterbar.pc
182%{_datadir}/cmake/Modules/FindLibtorrentRasterbar.cmake
2e00201e
ZU
183
184%files static
185%defattr(644,root,root,755)
186%{_libdir}/libtorrent-rasterbar.a
6873d9da
AF
187
188%files -n python-libtorrent-rasterbar
817b2250 189%defattr(644,root,root,755)
5dc8bbd5 190%attr(755,root,root) %{py_sitedir}/libtorrent.so
6873d9da 191%{py_sitedir}/python_libtorrent-*.egg-info
This page took 0.100153 seconds and 4 git commands to generate.