]> git.pld-linux.org Git - packages/libtorrent-rasterbar.git/blame - libtorrent-rasterbar.spec
- release 2
[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
cebde6e9 5Version: 0.15.4
a36c2ccf 6Release: 2
11d6cf09 7Epoch: 1
2e00201e
ZU
8License: BSD
9Group: Libraries
0f532b6d 10Source0: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz
cebde6e9 11# Source0-md5: 58750b3a246d056335745f9e805bb949
2e00201e 12URL: http://www.rasterbar.com/products/libtorrent/
6873d9da 13Patch0: bashizm.patch
17fc3622 14Patch1: py27.patch
6873d9da 15BuildRequires: GeoIP-devel
2e00201e
ZU
16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: boost-devel >= 1.35.0
6873d9da 19BuildRequires: boost-python-devel
2e00201e 20BuildRequires: libstdc++-devel
d412ac15
ZU
21BuildRequires: libtool
22BuildRequires: openssl-devel
6873d9da
AF
23BuildRequires: pkgconfig >= 1:0.20
24BuildRequires: python-devel
7f0d431f 25BuildRequires: python-modules
26BuildRequires: rpm-pythonprov
2e00201e 27BuildRequires: sed >= 4.0
d412ac15 28BuildRequires: util-linux-ng
401fe683 29BuildRequires: which
2e00201e 30BuildRequires: zlib-devel
d412ac15 31Obsoletes: rb_libtorrent
2e00201e
ZU
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
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}
2e00201e
ZU
68Requires: boost-devel
69Requires: openssl-devel
d412ac15 70Obsoletes: rb_libtorrent-devel
2e00201e
ZU
71
72%description devel
73The libtorrent-rasterbar-devel package contains libraries and header
74files for developing applications that use libtorrent-rasterbar.
75
76The various source and header files included in this package are
77licensed under the revised BSD, zlib/libpng, and Boost Public
78licenses.
79
80%description devel -l hu.UTF-8
81A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
82fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
83alkalmazásokat fejleszthetsz.
84
85%description devel -l pl.UTF-8
86Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
87rozwijania aplikacji używających libtorrent-rasterbar.
88
697b38ac
JB
89Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są
90licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public
91License.
2e00201e
ZU
92
93%package static
94Summary: Static %{name} library
95Summary(pl.UTF-8): Statyczna biblioteka %{name}
96Group: Development/Libraries
bd6a4700 97Requires: %{name}-devel = %{epoch}:%{version}-%{release}
d412ac15 98Obsoletes: rb_libtorrent-static
2e00201e
ZU
99
100%description static
101Static libtorrent-rasterbar library.
102
103%description static -l hu.UTF-8
104Statikus libtorrent-rasterbar könyvtár.
105
106%description static -l pl.UTF-8
107Statyczna biblioteka libtorrent-rasterbar.
108
6873d9da
AF
109%package -n python-libtorrent-rasterbar
110Summary: Python bindings for libtorrent-rasterbar
111Group: Libraries/Python
bd6a4700 112Requires: %{name} = %{epoch}:%{version}-%{release}
6873d9da
AF
113
114%description -n python-libtorrent-rasterbar
115Python bindings for libtorrent-rasterbar.
116
2e00201e
ZU
117%prep
118%setup -q
85e59e41
ZU
119# %patch0 -p1
120# %patch1 -p1
ef45903e 121%{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am
d412ac15 122
2e00201e
ZU
123## Some of the sources and docs are executable, which makes rpmlint against
124## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
125find src docs -type f | xargs chmod a-x
126find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
127## The RST files are the sources used to create the final HTML files; and are
128## not needed.
129rm -f docs/*.rst
2e00201e
ZU
130
131%build
2e00201e 132%{__libtoolize}
37216aa2 133%{__aclocal} -I m4
2e00201e
ZU
134%{__autoconf}
135%{__automake}
136%configure \
6f20c549 137 LIBS="-lpthread -lrt" \
6873d9da 138 --enable-python-binding \
a5caad3e 139 --with-boost-libdir=%{_libdir} \
d412ac15
ZU
140 --with-boost-system=boost_system \
141 --with-boost-filesystem=boost_filesystem \
142 --with-boost-thread=boost_thread \
143 --with-boost-regex=boost_regex \
144 --with-boost-program-options=boost_program_options \
6873d9da
AF
145 --with-asio=system \
146 --with-zlib=system \
147 --with-libgeoip=system \
d412ac15 148 --with-ssl
2e00201e 149
7f0d431f 150%{__make}
2e00201e
ZU
151
152%install
153rm -rf $RPM_BUILD_ROOT
154## Ensure that we preserve our timestamps properly.
155#export CPPROG="%{__cp} -p"
156#make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p"
157%{__make} install \
158 DESTDIR=$RPM_BUILD_ROOT
159
160## Do the renaming due to the somewhat limited %{_bindir} namespace.
161rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
162
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)
171%doc AUTHORS ChangeLog COPYING README
172%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so*
173
174%files devel
175%defattr(644,root,root,755)
176%doc docs/
177%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
178%{_libdir}/libtorrent-rasterbar.la
179%{_pkgconfigdir}/libtorrent-rasterbar.pc
180%{_includedir}/libtorrent
181
182%files static
183%defattr(644,root,root,755)
184%{_libdir}/libtorrent-rasterbar.a
6873d9da
AF
185
186%files -n python-libtorrent-rasterbar
817b2250 187%defattr(644,root,root,755)
6873d9da
AF
188%{py_sitedir}/libtorrent.so
189%{py_sitedir}/python_libtorrent-*.egg-info
This page took 0.099378 seconds and 4 git commands to generate.