]> git.pld-linux.org Git - packages/libtorrent-rasterbar.git/blame - libtorrent-rasterbar.spec
- release 2 (rebuild with boost-1.40.0)
[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
a7d1b714 5Version: 0.14.5
ed68456e 6Release: 2
2e00201e
ZU
7License: BSD
8Group: Libraries
9Source0: http://dl.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz
a7d1b714 10# Source0-md5: 46734b7c1a7ac81e6a8bc10011c645d1
ed68456e 11Patch0: %{name}-c++.patch
2e00201e
ZU
12URL: http://www.rasterbar.com/products/libtorrent/
13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: boost-devel >= 1.35.0
16BuildRequires: libstdc++-devel
d412ac15
ZU
17BuildRequires: libtool
18BuildRequires: openssl-devel
2e00201e 19BuildRequires: sed >= 4.0
d412ac15 20BuildRequires: util-linux-ng
401fe683 21BuildRequires: which
2e00201e 22BuildRequires: zlib-devel
d412ac15 23Obsoletes: rb_libtorrent
2e00201e
ZU
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27libtorrent-rasterbar is a C++ library that aims to be a good
28alternative to all the other BitTorrent implementations around. It is
29a library and not a full featured client, although it comes with a
30working example client.
31
32Its main goals are to be very efficient (in terms of CPU and memory
33usage) as well as being very easy to use both as a user and developer.
34
35%description -l hu.UTF-8
36libtorrent-rasterbar egy C++ könyvtár, amely egy jó alternatívája
697b38ac
JB
37kíván lenni az összes többi BitTorrent implementációjának. Ez "csak"
38egy könyvtár, és nem egy szolgáltatásgazdag kliens, habár ad egy
39működő példa-klienst.
2e00201e 40
697b38ac
JB
41A fő céljai, hogy nagyon hatékony legyen (CPU és memória-használat) és
42könnyű legyen használni mind a felhasználóknak, mind a fejlesztőknek.
2e00201e
ZU
43
44%description -l pl.UTF-8
697b38ac
JB
45libtorrent-rasterbar jest napisaną w C++ biblioteką, która aspiruje do
46bycia dobrą alternatywą dla wszystkich innych implementacji
47BitTorrenta. Jest to biblioteka a nie pełnoprawny klient, aczkolwiek
2e00201e
ZU
48pakiet zawiera działającego przykładowego klienta.
49
50Główne cele biblioteki to bycie bardzo efektywną (w rozumieniu
697b38ac
JB
51wykorzystania procesora i pamięci) jak również łatwą w użyciu zarówno
52dla użytkownika, jak i programisty.
2e00201e
ZU
53
54%package devel
55Summary: Header files for %{name} library
56Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
57License: BSD, zlib/libpng License, Boost Software License
58Group: Development/Libraries
59Requires: %{name} = %{version}-%{release}
60Requires: boost-devel
61Requires: openssl-devel
d412ac15 62Obsoletes: rb_libtorrent-devel
2e00201e
ZU
63
64%description devel
65The libtorrent-rasterbar-devel package contains libraries and header
66files for developing applications that use libtorrent-rasterbar.
67
68The various source and header files included in this package are
69licensed under the revised BSD, zlib/libpng, and Boost Public
70licenses.
71
72%description devel -l hu.UTF-8
73A libtorrent-rasterbar-devel csomag tartalmazza a könyvtári és
74fejlesztői fájlokat, amellyel libtorrent-rasterbar-t használó
75alkalmazásokat fejleszthetsz.
76
77%description devel -l pl.UTF-8
78Pakiet libtorrent-rasterbar-devel zawiera biblioteki i nagłówki do
79rozwijania aplikacji używających libtorrent-rasterbar.
80
697b38ac
JB
81Różne pliki źródłowe i nagłówki dostarczone z tym pakietem są
82licencjonowane pod zmienioną licencją BSD, zlib/libpng i Boost Public
83License.
2e00201e
ZU
84
85%package static
86Summary: Static %{name} library
87Summary(pl.UTF-8): Statyczna biblioteka %{name}
88Group: Development/Libraries
89Requires: %{name}-devel = %{version}-%{release}
d412ac15 90Obsoletes: rb_libtorrent-static
2e00201e
ZU
91
92%description static
93Static libtorrent-rasterbar library.
94
95%description static -l hu.UTF-8
96Statikus libtorrent-rasterbar könyvtár.
97
98%description static -l pl.UTF-8
99Statyczna 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. :]
108find src docs -type f | xargs chmod a-x
109find -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.
112rm -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
131rm -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.
139rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
140
141%clean
142rm -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
This page took 0.04719 seconds and 4 git commands to generate.