File libtorrent.spec of Package libtorrent

#
# spec file for package libtorrent (Version 0.11.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libtorrent
Version:        0.12.2
Release:        3
Packager:       eltorio <eltorio@none.com>
#
License:        GPL
Group:          Development/Libraries/C and C++
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ libsigc++2-devel openssl-devel pkgconfig
#
Url:            http://libtorrent.rakshasa.no/
Source:         http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.bz2
Source1:        %{name}-%{version}-rpmlintrc
Patch0:		libtorrent-gcc-43.patch
#
Summary:        A BitTorrent library written in C++ for *nix

%description
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on
high performance and good code. The library differentiates itself from other
implementations by transfering directly from file pages to the network stack.
On high-bandwidth connections it is able to seed at 3 times the speed of the
official client.


Authors:
---------
    Jari Sundell <jaris@ifi.uio.no>


%package devel
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libsigc++2-devel openssl-devel libstdc++-devel
#
Summary:        Development files for libtorrent

%description devel
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on
high performance and good code. The library differentiates itself from other
implementations by transfering directly from file pages to the network stack.
On high-bandwidth connections it is able to seed at 3 times the speed of the
official client.

This package holds the development files for libtorrent.


Authors:
---------
    Jari Sundell <jaris@ifi.uio.no>


%debug_package
%prep
%setup
%patch0 -p1

%build
#export CFLAGS="${RPM_OPT_FLAGS//-O2/-O1}"
#export CXXFLAGS="$CFLAGS"
%configure --enable-ipv6 --with-posix-fallocate
%{__make}

%install
%makeinstall

%clean
%{__rm} -rf %{buildroot}

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libtorrent.so.9
%{_libdir}/libtorrent.so.9.2.0

%files devel
%defattr(-,root,root,-)
%{_libdir}/libtorrent.so
%{_libdir}/libtorrent.la
%{_includedir}/torrent/
%{_libdir}/pkgconfig/libtorrent.pc

%changelog
* Thu Jul 24 2008 eltorio@none.com
- minor change for opensuse 11 rpmlint

* Sat Aug  4 2007 mrueckert@suse.de
- update to 0.11.6
* Sun Jan  7 2007 mrueckert@suse.de
- update to 0.11.1
* Wed Nov 29 2006 mrueckert@suse.de
- build with -O1. fixes memory allocation errors:
  http://libtorrent.rakshasa.no/ticket/464
* Thu Nov  9 2006 mrueckert@suse.de
- update to 0.10.4
* Thu Nov  2 2006 mrueckert@suse.de
- run ldconfig
* Wed Oct 11 2006 mrueckert@suse.de
- update to 0.10.3:
  Various bugs were fixed. kqueue support was added.
- enable ipv6
- use posix_fallocate
openSUSE Build Service is sponsored by