]> git.pld-linux.org Git - packages/automysqlbackup.git/blob - automysqlbackup.spec
- new, based from src.rpm:
[packages/automysqlbackup.git] / automysqlbackup.spec
1 %define         subver  rc6
2 %define         rel             1
3 Summary:        Automatic MySQL Backup
4 Name:           automysqlbackup
5 Version:        3.0
6 Release:        0.%{subver}.%{rel}
7 License:        GPL v2+
8 Group:          Development/Tools
9 Source0:        http://downloads.sourceforge.net/automysqlbackup/%{name}-v%{version}_%{subver}.tar.gz
10 # Source0-md5:  33db887176f8480a9a9c324f5b718b88
11 Patch2:         %{name}-du.patch
12 Patch3:         %{name}-silent.patch
13 URL:            http://sourceforge.net/projects/automysqlbackup/
14 BuildRequires:  sed >= 4.0
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 AutoMySQLBackup with a basic configuration will create Daily, Weekly
20 and Monthly backups of one or more of your MySQL databases from one or
21 more of your MySQL servers.
22
23 Other Features include:
24 - Email notification of backups
25 - Backup Compression and Encryption
26 - Configurable backup rotation
27 - Incremental database backups
28
29 %prep
30 %setup -q -n %{name}-v%{version}_%{subver}
31 %patch2 -p1
32 %patch3 -p1
33
34 %{__sed} -i -e '1s,#!/usr/bin/env bash,#!/bin/bash,' %{name}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_bindir}}
39 cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
40 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %dir %{_sysconfdir}/%{name}
48 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
49 %attr(755,root,root) %{_bindir}/%{name}
This page took 0.039236 seconds and 3 git commands to generate.