File monotorrent.spec of Package monotorrent
Name: monotorrent
Version: 0.12
Release: 1
License: X11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mono mono-devel
Group: Dummy
Summary: MonoTorrent/BitSharp class libraries from Alan McGovern
Source0: monotorrent-0.12.tar.gz
BuildArch: noarch
Provides: monotorrent
%description
MonoTorrent/BitSharp class libraries from Alan McGovern
%prep
%setup -q -n monotorrent-%{version} -a 0
cd monotorrent-%{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
rm $RPM_BUILD_ROOT/usr/bin/monotorrent-gtk
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
/usr/bin/monotorrent.x
/usr/lib/bitsharp/MonoTorrent.dll
/usr/lib/bitsharp/MonoTorrent.exe
/usr/lib/bitsharp/TrackerApp.exe
/usr/lib/pkgconfig/monotorrent.pc