--- rpms/smeserver-affa/contribs7/smeserver-affa.spec 2008/02/26 01:05:31 1.1 +++ rpms/smeserver-affa/contribs7/smeserver-affa.spec 2008/02/27 16:36:44 1.2 @@ -2,7 +2,7 @@ Summary: Makes the SME server a dedicate %define name smeserver-affa Name: %{name} %define version 0.9.0 -%define release 1 +%define release 2 Version: %{version} Release: %{release}%{?dist} License: GNU GPL (GNU General Public License) @@ -14,12 +14,17 @@ AutoReq: no Requires: smeserver-release >= 7 Requires: perl-Filesys-DiskFree BuildRequires: e-smith-devtools +Patch0: smeserver-affa-0.9.0-debugsshquiet.patch %description Main purpose ist to make the SME server a dedicated rsync based backup server. Also providing functions to backup to USB disks or SMB shares in SOHO environments. %changelog +* Sat Feb 02 2008 Michael Weinberger 0.9.0-2 + Bugfix: Report db was not deleted in deleteJob() + don't use -q on ssh commands with Debug=yes + * Fri Feb 1 2008 Shad L. Lords 0.9.0-1 - Fix specfile for building in new buildsystem @@ -285,6 +290,7 @@ Also providing functions to backup to US %prep %setup -q -n %{name}-%{version} +%patch0 -p1 -b .debugsshquiet %build @@ -295,6 +301,12 @@ rm -f %{name}-%{version}-filelist perl createlinks $RPM_BUILD_ROOT +# Set version String +cp -a $RPM_BUILD_ROOT/sbin/e-smith/affa $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp +VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'` +sed -e "s/_VERSIONSTRING_/$VERSIONSTRING/" < $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp > $RPM_BUILD_ROOT/sbin/e-smith/affa +rm -f $RPM_BUILD_ROOT/sbin/e-smith/affa.tmp + rm -f %{name}-%{version}-filelist find $RPM_BUILD_ROOT -depth -type f -print |\