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