%define name libtorrent %define srcdir /usr/local/src %define _topdir %{srcdir}/libtorrent summary: rTorrent name: libtorrent Source: libtorrent.tar.gz License: GPL version: 1 release: 1 Group: System/Utils Prefix: /opt/libtorrent buildarch: x86_64 BuildRoot: %{prefix}/%{name}-%{version}-%{release}-%{buildarch}-root %define lib %{prefix}/lib64 %define include %{prefix}/include Provides: libtorrent Requires: ncurses, libcppunit-devel AutoReqProv: no %description libtorrent is a BitTorrent client for ncurses, using the libtorrent library. The client and library is written in C++ with emphasis on speed and efficiency, while delivering equivalent features to those found in GUI based clients in an ncurses client. %prep %setup -q -n libtorrent %build chmod 755 autogen.sh ./autogen.sh %{suse_update_config -f} autoreconf -fiv ./configure --prefix=%{prefix} --libdir=%{lib} make prefix=$RPM_BUILD_ROOT %install rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT/%{prefix}/usr %clean make clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README /opt/libtorrent/lib64/* /opt/libtorrent/include/* %post echo "/opt/libtorrent/lib64/" > /etc/ld.so.conf.d/libtorrent.conf ldconfig %postun rm -rf %{prefix} rm /etc/ld.so.conf.d/libtorrent.conf ldconfig %Changelog * Mon Nov 08 2010 Seriously, Check release son!! Initial Build