]> git.pld-linux.org Git - packages/automysqlbackup.git/blame - automysqlbackup.spec
- new, based from src.rpm:
[packages/automysqlbackup.git] / automysqlbackup.spec
CommitLineData
4172dc19
ER
1%define subver rc6
2%define rel 1
3Summary: Automatic MySQL Backup
4Name: automysqlbackup
5Version: 3.0
6Release: 0.%{subver}.%{rel}
7License: GPL v2+
8Group: Development/Tools
9Source0: http://downloads.sourceforge.net/automysqlbackup/%{name}-v%{version}_%{subver}.tar.gz
10# Source0-md5: 33db887176f8480a9a9c324f5b718b88
11Patch2: %{name}-du.patch
12Patch3: %{name}-silent.patch
13URL: http://sourceforge.net/projects/automysqlbackup/
14BuildRequires: sed >= 4.0
15BuildArch: noarch
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19AutoMySQLBackup with a basic configuration will create Daily, Weekly
20and Monthly backups of one or more of your MySQL databases from one or
21more of your MySQL servers.
22
23Other 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
37rm -rf $RPM_BUILD_ROOT
38install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_bindir}}
39cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
40install -p %{name} $RPM_BUILD_ROOT%{_bindir}
41
42%clean
43rm -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.056836 seconds and 4 git commands to generate.