1 |
brianr |
1.1 |
%define name automysqlbackup |
2 |
|
|
%define version 3.0.RC6 |
3 |
brianr |
1.2 |
%define release 7 |
4 |
brianr |
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 |
|
|
# 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 |
|
|
%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 |
|
|
%changelog |
32 |
brianr |
1.2 |
* Mon Oct 19 2020 Brian Read <brianr@bjsystems.co.uk> 3.0-RC6-7 |
33 |
|
|
- Initial import to SME10 tree [SME: 11042] |
34 |
|
|
|
35 |
brianr |
1.1 |
* Thu Nov 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-6 |
36 |
|
|
- Set backupdir if key is empty [SME: 10655] |
37 |
|
|
- fix some build issues in spec file |
38 |
|
|
|
39 |
|
|
* Sat Aug 22 2015 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-5 |
40 |
|
|
- First release to smecontribs |
41 |
|
|
|
42 |
|
|
* Sun Aug 17 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-4 |
43 |
|
|
- added my own patch against the --events warning |
44 |
|
|
--Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. |
45 |
|
|
|
46 |
|
|
* Sun May 18 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
47 |
|
|
- first release for sme9 |
48 |
|
|
|
49 |
|
|
* Sun Oct 27 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
50 |
|
|
- split the contrib in two versions smeserver-automysqlbackup and automysqlbackup |
51 |
|
|
|
52 |
|
|
* Mon Apr 22 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
53 |
|
|
- [3.0.RC6] version Based on automysqlbackup V3.0 RC6 |
54 |
|
|
|
55 |
|
|
* Mon Apr 08 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
56 |
|
|
- [0.01] Initial version Based on automysqlbackup V3.0 RC6 |
57 |
|
|
|
58 |
|
|
%prep |
59 |
|
|
|
60 |
|
|
%setup -q -n %{name}-%{version} |
61 |
|
|
|
62 |
|
|
%patch1 -p1 |
63 |
|
|
|
64 |
|
|
%build |
65 |
|
|
# add createlinks if required |
66 |
|
|
# perl cratelinks |
67 |
|
|
|
68 |
|
|
%install |
69 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
70 |
|
|
(cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
71 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
72 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
73 |
|
|
|
74 |
|
|
|
75 |
|
|
%files -f %{name}-%{version}-filelist |
76 |
|
|
|
77 |
|
|
%defattr(-,root,root) |
78 |
|
|
|
79 |
|
|
%clean |
80 |
|
|
rm -rf $RPM_BUILD_ROOT |
81 |
|
|
|
82 |
|
|
%pre |
83 |
|
|
|
84 |
|
|
%post |
85 |
|
|
|
86 |
|
|
%preun |
87 |
|
|
|
88 |
|
|
%postun |
89 |
|
|
|