%define name smeserver-madsonic %define version 5.0.3761 %define release 1 Summary: madsonic is a helpdesk system Name: %{name} Version: %{version} Release: %{release}%{?dist} Distribution: SME Server License: GNU GPL version 2 Group: SMEserver/addon Source: smeserver-madsonic-%{version}.tar.gz BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version}-buildroot BuildRequires: e-smith-devtools Requires: e-smith-release >= 8.0 Requires: madsonic Requires: ffmpeg Requires: java-1.7.0-openjdk >= 1.7 AutoReqProv: no %description madsonic is an application adapted as a contrib for SMEserver %changelog * Mon Jun 16 2014 JP Pialasse 5.0.3761-1.sme - initial import to SME9 contribs * Wed Nov 20 2013 CONTRIB MAKER 5.0.3760-2.sme - initial release - builds from unchanged .tar.gz %pre grep '^madsonic:' /etc/passwd > /dev/null || \ /usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic %prep %setup %build perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ > %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root)