1 |
stephdl |
1.1 |
%define name automysqlbackup |
2 |
|
|
%define version 3.0.RC6 |
3 |
jcrisp |
1.3 |
%define release 6 |
4 |
stephdl |
1.1 |
%define rpmver 3.0.RC6 |
5 |
|
|
|
6 |
|
|
Summary: automysqlbackup is a script to backup your msql database on sme8 |
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
|
|
Release: %{release}%{?dist} |
10 |
|
|
License: GPL |
11 |
|
|
Group: /Web/Application |
12 |
|
|
Source: %{name}-%{version}.tar.gz |
13 |
|
|
URL: http://sourceforge.net/projects/automysqlbackup/ |
14 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
|
|
BuildArchitectures: noarch |
16 |
|
|
Requires: e-smith-base, e-smith-release >= 9 |
17 |
|
|
BuildRequires: e-smith-devtools |
18 |
|
|
|
19 |
jcrisp |
1.3 |
# This patch is in CVS but was actually added to the script |
20 |
|
|
# and is not required so please ignore it |
21 |
|
|
# automysqlbackup-3.0.RC6.specify-event-options.patch |
22 |
|
|
|
23 |
|
|
Patch1: automysqlbackup-3.0.RC6.set-backup-dir.patch |
24 |
|
|
|
25 |
stephdl |
1.1 |
%description |
26 |
|
|
This RPM is an unofficial addon for the SME Server 9.x. |
27 |
|
|
The target audience is the Linux/E-smith administrator |
28 |
|
|
who wants to backup their mysql databases with an automatic way. |
29 |
|
|
This script is based on automysqlbackup V3.0 |
30 |
|
|
|
31 |
jcrisp |
1.3 |
%changelog |
32 |
|
|
* Thu Nov 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-6 |
33 |
|
|
- Set backupdir if key is empty [SME: 10655] |
34 |
|
|
- fix some build issues in spec file |
35 |
stephdl |
1.1 |
|
36 |
stephdl |
1.2 |
* Sat Aug 22 2015 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-5 |
37 |
|
|
- First release to smecontribs |
38 |
|
|
|
39 |
stephdl |
1.1 |
* Sun Aug 17 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-4 |
40 |
|
|
- added my own patch against the --events warning |
41 |
|
|
--Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. |
42 |
|
|
|
43 |
|
|
* Sun May 18 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
44 |
|
|
- first release for sme9 |
45 |
|
|
|
46 |
|
|
* Sun Oct 27 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
47 |
|
|
- split the contrib in two versions smeserver-automysqlbackup and automysqlbackup |
48 |
|
|
|
49 |
|
|
* Mon Apr 22 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
50 |
|
|
- [3.0.RC6] version Based on automysqlbackup V3.0 RC6 |
51 |
jcrisp |
1.3 |
|
52 |
stephdl |
1.1 |
* Mon Apr 08 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
53 |
|
|
- [0.01] Initial version Based on automysqlbackup V3.0 RC6 |
54 |
|
|
|
55 |
|
|
%prep |
56 |
|
|
|
57 |
jcrisp |
1.3 |
%setup -q -n %{name}-%{version} |
58 |
|
|
|
59 |
|
|
%patch1 -p1 |
60 |
stephdl |
1.1 |
|
61 |
|
|
%build |
62 |
jcrisp |
1.3 |
# add createlinks if required |
63 |
|
|
# perl cratelinks |
64 |
stephdl |
1.1 |
|
65 |
|
|
%install |
66 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
67 |
|
|
(cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
68 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
69 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
70 |
|
|
|
71 |
|
|
|
72 |
|
|
%files -f %{name}-%{version}-filelist |
73 |
|
|
|
74 |
|
|
%defattr(-,root,root) |
75 |
|
|
|
76 |
jcrisp |
1.3 |
%clean |
77 |
stephdl |
1.1 |
rm -rf $RPM_BUILD_ROOT |
78 |
|
|
|
79 |
|
|
%pre |
80 |
|
|
|
81 |
|
|
%post |
82 |
|
|
|
83 |
|
|
%preun |
84 |
jcrisp |
1.3 |
|
85 |
stephdl |
1.1 |
%postun |
86 |
|
|
|