File monotorrent-curses.spec of Package monotorrent-curses
Name: monotorrent-curses
Version: 0.2
Release: 1
License: X11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mono mono-devel
Group: Dummy
Summary: Console BitTorrent client
Source0: monotorrent-curses-0.2.tar.gz
BuildRequires: monotorrent-0.12 ncurses ncurses-devel
%description
This is a console-based bittorrent client implemented using Mono,
the BitSharp/MonoTorrent class libraries and the Mono-Curses bindings.
%prep
%setup -q -n monotorrent-curses-%{version} -a 0
cd monotorrent-curses-%{version}
%build
# Fedora options (Bug in fedora images where 'abuild' user is the same
id as 'nobody')
%if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp
%endif
%{?env_options}
./configure --prefix=/usr
make
%install
make prefix=$RPM_BUILD_ROOT/usr install
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
/usr/bin/monotorrent
/usr/lib/monotorrent/MonoTorrent.dll
/usr/lib/monotorrent/Upnp.dll
/usr/lib/monotorrent/libmono-curses.so
/usr/lib/monotorrent/mono-curses.dll
/usr/lib/monotorrent/monotorrent.exe