Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > 3b75cf788073727d4ab46be360416208 > files > 3

mediatomb-0.12.1-1ark.src.rpm

%define beta %nil
%define scmrev %nil

Name: mediatomb
Version: 0.12.1
%if "%beta" == ""
%if "%scmrev" == ""
Release: 1ark
Source: http://mesh.dl.sourceforge.net/project/mediatomb/MediaTomb/%version/mediatomb-%version.tar.gz
%else
Release: 0.%scmrev.1ark
Source: %name-%scmrev.tar.xz
%endif
%else
%if "%scmrev" == ""
Release: 0.%beta.1ark
Source: %name-%version%beta.tar.bz2
%else
Release: 0.%beta.0.%scmrev.1ark
Source: %name-%scmrev.tar.xz
%endif
%endif
Patch: mediatomb-0.12.1-defaultconfig.patch
Summary: UPnP media server
URL: http://mediatomb.cc/
License: GPL
Group: Servers
BuildRoot: %{_tmppath}/%{name}-root

%track
prog %name = {
	url = http://mediatomb.cc/pages/download
	regex = "%name-(__VER__)\.tar\.gz"
	version = %version
}

%description
MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user
interface, it allows you to stream your digital media through your home
network and listen to/watch it on a variety of UPnP compatible devices.

Install %name if you wish to share files with a UPnP compatible device.

%prep
%if "%scmrev" == ""
%setup -q -n %name-%version%beta
%else
%setup -q -n %name
%endif
%patch -p1 -b .config~
%configure --enable-youtube --enable-external-transcoding --enable-curl

%build
make %?_smp_mflags

%install
rm -rf $RPM_BUILD_ROOT
make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%_bindir/*
%_mandir/man1/*
%_datadir/%name

%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}

%changelog
* Sat Dec 25 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 0.12.1-1ark
- initial RPM