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