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