]>
Commit | Line | Data |
---|---|---|
2e00201e ZU |
1 | Summary: A C++ BitTorrent library |
2 | Summary(hu.UTF-8): C++ BitTorrent könyvtár | |
3 | Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++ | |
4 | Name: libtorrent-rasterbar | |
a7d1b714 | 5 | Version: 0.14.5 |
ed68456e | 6 | Release: 2 |
2e00201e ZU |
7 | License: BSD |
8 | Group: Libraries | |
9 | Source0: http://dl.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz | |
a7d1b714 | 10 | # Source0-md5: 46734b7c1a7ac81e6a8bc10011c645d1 |
ed68456e | 11 | Patch0: %{name}-c++.patch |
2e00201e ZU |
12 | URL: http://www.rasterbar.com/products/libtorrent/ |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: boost-devel >= 1.35.0 | |
16 | BuildRequires: libstdc++-devel | |
d412ac15 ZU |
17 | BuildRequires: libtool |
18 | BuildRequires: openssl-devel | |
2e00201e | 19 | BuildRequires: sed >= 4.0 |
d412ac15 | 20 | BuildRequires: util-linux-ng |
401fe683 | 21 | BuildRequires: which |
2e00201e | 22 | BuildRequires: zlib-devel |
d412ac15 | 23 | Obsoletes: rb_libtorrent |
2e00201e ZU |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | libtorrent-rasterbar is a C++ library that aims to be a good | |
28 | alternative to all the other BitTorrent implementations around. It is | |
29 | a library and not a full featured client, although it comes with a | |
30 | working example client. | |
31 | ||
32 | Its main goals are to be very efficient (in terms of CPU and memory | |
33 | usage) as well as being very easy to use both as a user and developer. | |
34 | ||
35 | %description -l hu.UTF-8 | |
36 | libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája | |
697b38ac JB |
37 | kíván lenni az összes többi BitTorrent implementációjának. Ez "csak" |
38 | egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy | |
39 | működő példa-klienst. | |
2e00201e | 40 | |
697b38ac JB |
41 | A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és |
42 | könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek. | |
2e00201e ZU |
43 | |
44 | %description -l pl.UTF-8 | |
697b38ac JB |
45 | libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do |
46 | bycia dobrą alternatywą dla wszystkich innych implementacji | |
47 | BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek | |
2e00201e ZU |
48 | pakiet zawiera działającego przykładowego klienta. |
49 | ||
50 | Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu | |
697b38ac JB |
51 | wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno |
52 | dla użytkownika, jak i programisty. | |
2e00201e ZU |
53 | |
54 | %package devel | |
55 | Summary: Header files for %{name} library | |
56 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
57 | License: BSD, zlib/libpng License, Boost Software License | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: boost-devel | |
61 | Requires: openssl-devel | |
d412ac15 | 62 | Obsoletes: rb_libtorrent-devel |
2e00201e ZU |
63 | |
64 | %description devel | |
65 | The libtorrent-rasterbar-devel package contains libraries and header | |
66 | files for developing applications that use libtorrent-rasterbar. | |
67 | ||
68 | The various source and header files included in this package are | |
69 | licensed under the revised BSD, zlib/libpng, and Boost Public | |
70 | licenses. | |
71 | ||
72 | %description devel -l hu.UTF-8 | |
73 | A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és | |
74 | fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó | |
75 | alkalmazásokat fejleszthetsz. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do | |
79 | rozwijania aplikacji używających libtorrent-rasterbar. | |
80 | ||
697b38ac JB |
81 | Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są |
82 | licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public | |
83 | License. | |
2e00201e ZU |
84 | |
85 | %package static | |
86 | Summary: Static %{name} library | |
87 | Summary(pl.UTF-8): Statyczna biblioteka %{name} | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
d412ac15 | 90 | Obsoletes: rb_libtorrent-static |
2e00201e ZU |
91 | |
92 | %description static | |
93 | Static libtorrent-rasterbar library. | |
94 | ||
95 | %description static -l hu.UTF-8 | |
96 | Statikus libtorrent-rasterbar könyvtár. | |
97 | ||
98 | %description static -l pl.UTF-8 | |
99 | Statyczna biblioteka libtorrent-rasterbar. | |
100 | ||
101 | %prep | |
102 | %setup -q | |
ed68456e | 103 | %patch0 -p1 |
ef45903e | 104 | %{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am |
d412ac15 | 105 | |
2e00201e ZU |
106 | ## Some of the sources and docs are executable, which makes rpmlint against |
107 | ## the resulting -debuginfo and -devel packages, respectively, quite angry. :] | |
108 | find src docs -type f | xargs chmod a-x | |
109 | find -type f -regex '.*\.[hc]pp' | xargs chmod a-x | |
110 | ## The RST files are the sources used to create the final HTML files; and are | |
111 | ## not needed. | |
112 | rm -f docs/*.rst | |
2e00201e ZU |
113 | |
114 | %build | |
115 | %{__aclocal} -I m4 | |
116 | %{__libtoolize} | |
117 | %{__autoconf} | |
118 | %{__automake} | |
119 | %configure \ | |
d412ac15 ZU |
120 | --with-boost-system=boost_system \ |
121 | --with-boost-filesystem=boost_filesystem \ | |
122 | --with-boost-thread=boost_thread \ | |
123 | --with-boost-regex=boost_regex \ | |
124 | --with-boost-program-options=boost_program_options \ | |
125 | --with-{asio,zlib}=system \ | |
126 | --with-ssl | |
2e00201e | 127 | |
086e6387 | 128 | %{__make} LDFLAGS="-L%{_libdir}64 %{rpmldflags}" |
2e00201e ZU |
129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ## Ensure that we preserve our timestamps properly. | |
133 | #export CPPROG="%{__cp} -p" | |
134 | #make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p" | |
135 | %{__make} install \ | |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
138 | ## Do the renaming due to the somewhat limited %{_bindir} namespace. | |
139 | rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/* | |
140 | ||
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post -p /sbin/ldconfig | |
145 | %postun -p /sbin/ldconfig | |
146 | ||
147 | %files | |
148 | %defattr(644,root,root,755) | |
149 | %doc AUTHORS ChangeLog COPYING README | |
150 | %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so* | |
151 | ||
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
154 | %doc docs/ | |
155 | %attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so | |
156 | %{_libdir}/libtorrent-rasterbar.la | |
157 | %{_pkgconfigdir}/libtorrent-rasterbar.pc | |
158 | %{_includedir}/libtorrent | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libtorrent-rasterbar.a |