1 |
stephdl |
1.1 |
%define name automysqlbackup |
2 |
|
|
%define version 3.0.RC6 |
3 |
|
|
%define release 4 |
4 |
|
|
%define rpmver 3.0.RC6 |
5 |
|
|
|
6 |
|
|
|
7 |
|
|
Summary: automysqlbackup is a script to backup your msql database on sme8 |
8 |
|
|
Name: %{name} |
9 |
|
|
Version: %{version} |
10 |
|
|
Release: %{release}%{?dist} |
11 |
|
|
License: GPL |
12 |
|
|
Group: /Web/Application |
13 |
|
|
Source: %{name}-%{version}.tar.gz |
14 |
|
|
URL: http://sourceforge.net/projects/automysqlbackup/ |
15 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
Requires: e-smith-base, e-smith-release >= 9 |
18 |
|
|
BuildRequires: e-smith-devtools |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
This RPM is an unofficial addon for the SME Server 9.x. |
22 |
|
|
The target audience is the Linux/E-smith administrator |
23 |
|
|
who wants to backup their mysql databases with an automatic way. |
24 |
|
|
This script is based on automysqlbackup V3.0 |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
%changelog |
29 |
|
|
* Sun Aug 17 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-4 |
30 |
|
|
- added my own patch against the --events warning |
31 |
|
|
--Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. |
32 |
|
|
|
33 |
|
|
* Sun May 18 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
34 |
|
|
- first release for sme9 |
35 |
|
|
|
36 |
|
|
* Sun Oct 27 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
37 |
|
|
- split the contrib in two versions smeserver-automysqlbackup and automysqlbackup |
38 |
|
|
|
39 |
|
|
* Mon Apr 22 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
40 |
|
|
- [3.0.RC6] version Based on automysqlbackup V3.0 RC6 |
41 |
|
|
* Mon Apr 08 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
42 |
|
|
- [0.01] Initial version Based on automysqlbackup V3.0 RC6 |
43 |
|
|
|
44 |
|
|
%prep |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
%setup |
48 |
|
|
|
49 |
|
|
%build |
50 |
|
|
|
51 |
|
|
%install |
52 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
53 |
|
|
(cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
54 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
55 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
56 |
|
|
|
57 |
|
|
|
58 |
|
|
%files -f %{name}-%{version}-filelist |
59 |
|
|
|
60 |
|
|
%defattr(-,root,root) |
61 |
|
|
|
62 |
|
|
%clean |
63 |
|
|
rm -rf $RPM_BUILD_ROOT |
64 |
|
|
|
65 |
|
|
%pre |
66 |
|
|
|
67 |
|
|
%post |
68 |
|
|
|
69 |
|
|
|
70 |
|
|
%preun |
71 |
|
|
%postun |
72 |
|
|
|