--- rpms/smeserver-subsonic/contribs8/smeserver-subsonic.spec 2013/10/26 20:57:06 1.1 +++ rpms/smeserver-subsonic/contribs8/smeserver-subsonic.spec 2013/10/27 00:59:44 1.2 @@ -1,6 +1,6 @@ %define name smeserver-subsonic %define version 4.8 -%define release 1 +%define release 4 Summary: subsonic is a helpdesk system Name: %{name} Version: %{version} @@ -9,26 +9,45 @@ Distribution: SME Server License: GNU GPL version 2 Group: SMEserver/addon Source: smeserver-subsonic-%{version}.tar.gz +Patch0: smeserver-subsonic-4.8-patch0.patch +Patch1: smeserver-subsonic-4.8-patch1.patch +Patch2: smeserver-subsonic-4.8-patch2.patch +Patch3: smeserver-subsonic-4.8-patch3.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version}-buildroot BuildRequires: e-smith-devtools Requires: e-smith-release >= 8.0 Requires: subsonic +Requires: ffmpeg +Requires: java AutoReqProv: no +%changelog +* Sat Oct 26 2013 JP Pialasse 4.8-4.sme +- fixing some generator errors +- adding configurations described in wiki manual installation +- adding java and ffmpeg requirement + +* Sat Oct 26 2013 Contrib Maker 4.8-1.sme +- initial release +- builds from unchanged .tar.gz %description subsonic is an application adapted as a contrib for SMEserver -%changelog -* Sat Oct 26 2013 CONTRIB MAKER 4.8-1.sme -- initial release -- builds from unchanged .tar.gz +%pre + +grep '^subsonic:' /etc/passwd > /dev/null || \ +/usr/sbin/useradd -c "subsonic" -M -d /usr/share/subsonic -s /bin/bash subsonic + %prep %setup -#-c -n %{name} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build perl createlinks @@ -47,25 +66,6 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) -#%build -#drop in an unchanged .tgz, if required rename directory here, eg remove version number. -#mkdir -p root/opt/ -#mv %{name} root/opt/subsonic - -#%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 -#cd .. -#rm -rf %{name} - -#%files -f %{name}-%{version}-filelist -#%defattr(-,root,root) - %post #(needed if a contrib and it contains DB templates) #/etc/e-smith/events/actions/initialize-default-databases