--- rpms/automysqlbackup/contribs9/automysqlbackup.spec 2015/08/22 19:04:07 1.2 +++ rpms/automysqlbackup/contribs9/automysqlbackup.spec 2018/11/29 10:51:26 1.3 @@ -1,9 +1,8 @@ %define name automysqlbackup %define version 3.0.RC6 -%define release 5 +%define release 6 %define rpmver 3.0.RC6 - Summary: automysqlbackup is a script to backup your msql database on sme8 Name: %{name} Version: %{version} @@ -17,15 +16,23 @@ BuildArchitectures: noarch Requires: e-smith-base, e-smith-release >= 9 BuildRequires: e-smith-devtools +# This patch is in CVS but was actually added to the script +# and is not required so please ignore it +# automysqlbackup-3.0.RC6.specify-event-options.patch + +Patch1: automysqlbackup-3.0.RC6.set-backup-dir.patch + %description This RPM is an unofficial addon for the SME Server 9.x. The target audience is the Linux/E-smith administrator who wants to backup their mysql databases with an automatic way. This script is based on automysqlbackup V3.0 - - %changelog +* Thu Nov 29 2018 John Crisp 3.0.RC6-6 +- Set backupdir if key is empty [SME: 10655] +- fix some build issues in spec file + * Sat Aug 22 2015 Stephane de Labrusse 3.0.RC6-5 - First release to smecontribs @@ -41,15 +48,19 @@ This script is based on automysqlbackup * Mon Apr 22 2013 Stephane de Labrusse - [3.0.RC6] version Based on automysqlbackup V3.0 RC6 + * Mon Apr 08 2013 Stephane de Labrusse - [0.01] Initial version Based on automysqlbackup V3.0 RC6 %prep -rm -rf $RPM_BUILD_ROOT -%setup +%setup -q -n %{name}-%{version} + +%patch1 -p1 %build +# add createlinks if required +# perl cratelinks %install /bin/rm -rf $RPM_BUILD_ROOT @@ -62,14 +73,14 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) -%clean +%clean rm -rf $RPM_BUILD_ROOT %pre %post - %preun + %postun