]> git.pld-linux.org Git - SPECS.git/blob - mysql-zrm.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / mysql-zrm.spec
1 # TODO
2 # - package socketserver config (separate package)
3 Summary:        Zmanda MySQL Backup and Recovery Manager for MySQL
4 Name:           mysql-zrm
5 Version:        3.0
6 Release:        0.5
7 License:        GPL v2
8 Group:          Applications/Databases
9 Source0:        http://www.zmanda.com/downloads/community/ZRM-MySQL/%{version}/Source/MySQL-zrm-%{version}-release.tar.gz
10 # Source0-md5:  dbc09406c04f5a21c09d582af6b1fe34
11 Patch0:         tar-options.patch
12 URL:            http://www.zmanda.com/backup-mysql.html
13 BuildRequires:  rpm-perlprov >= 4.1-13
14 Requires:       %{name}-client = %{version}-%{release}
15 Requires:       bash
16 Suggests:       gnupg
17 Suggests:       lvm2
18 Suggests:       mailx
19 Suggests:       mysql-client
20 Suggests:       sudo
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _libdir %{_prefix}/lib
25
26 %description
27 Zmanda Recovery Manager (ZRM) for MySQL simplifies the life of a
28 Database Administrator who needs an easy-to-use yet flexible and
29 robust backup and recovery solution for MySQL server. With ZRM for
30 MySQL you can:
31 - Schedule full and incremental backups of your MySQL database.
32 - Start immediate backup or postpone scheduled backups based on
33   thresholds defined by you.
34 - Choose to do more flexible logical or faster raw backups of your
35   database.
36 - Perform backup that is the best match for your storage engine and
37   your MySQL configuration.
38 - Backup your remote MySQL database through a firewall.
39 - Configure on-the-fly compression and/or encryption of your MySQL
40   backups to meet your storage and security needs.
41 - Get e-mail notification about the status of your backups and receive
42   MySQL backup reports via RSS feed.
43 - Monitor and browse your backups.
44 - Define retention policies and delete backups that have expired.
45 - Recover a database easily to any point in time or to any particular
46   transaction, e.g. just before a user made an error.
47 - Parse binary logs to search and filter MySQL logs for operational
48   and security reasons.
49
50 %package client
51 Summary:        Zmanda Recovery Manager for MySQL client
52 Group:          Applications/Databases
53
54 %description client
55 Zmanda Recovery Manager (ZRM) for MySQL is a backup and recovery
56 manager for MySQL databases with enterprise features.
57
58 ZRM client must be installed on MySQL servers that are backed up ZRM
59 for MySQL remotely.
60
61 %prep
62 %setup -qc
63 %patch0 -p1
64
65 mv .%{_docdir}/MySQL-zrm-%{version} doc
66 mv doc/* .
67
68 # solaris inetd
69 mv .%{_datadir}/%{name}/plugins/xinetd.smf .
70
71 # TODO: package later
72 mv .%{_sysconfdir}/xinetd.d/mysql-zrm-socket-server .
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT
77 cp -a etc usr var $RPM_BUILD_ROOT
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc AUTHORS COPYING INSTALL README
85 %doc README-plugin-*
86 %dir %{_sysconfdir}/%{name}
87 %{_sysconfdir}/%{name}/mysql-zrm-release
88 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/RSS.header
89 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-zrm-reporter.conf
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-zrm.conf
91 %attr(755,root,root) %{_bindir}/mysql-zrm
92 %attr(755,root,root) %{_bindir}/mysql-zrm-abort-backup
93 %attr(755,root,root) %{_bindir}/mysql-zrm-backup
94 %attr(755,root,root) %{_bindir}/mysql-zrm-check
95 %attr(755,root,root) %{_bindir}/mysql-zrm-extract-backup
96 %attr(755,root,root) %{_bindir}/mysql-zrm-getconf
97 %attr(755,root,root) %{_bindir}/mysql-zrm-list
98 %attr(755,root,root) %{_bindir}/mysql-zrm-manage-backup
99 %attr(755,root,root) %{_bindir}/mysql-zrm-migrate-file-ownership
100 %attr(755,root,root) %{_bindir}/mysql-zrm-parse-binlogs
101 %attr(755,root,root) %{_bindir}/mysql-zrm-purge
102 %attr(755,root,root) %{_bindir}/mysql-zrm-reporter
103 %attr(755,root,root) %{_bindir}/mysql-zrm-restore
104 %attr(755,root,root) %{_bindir}/mysql-zrm-scheduler
105 %attr(755,root,root) %{_bindir}/mysql-zrm-verify-backup
106 %attr(755,root,root) %{_bindir}/zrm-pre-scheduler
107 %{_mandir}/man1/mysql-zrm-abort-backup.1*
108 %{_mandir}/man1/mysql-zrm-backup.1*
109 %{_mandir}/man1/mysql-zrm-check.1*
110 %{_mandir}/man1/mysql-zrm-extract-backup.1*
111 %{_mandir}/man1/mysql-zrm-list.1*
112 %{_mandir}/man1/mysql-zrm-manage-backup.1*
113 %{_mandir}/man1/mysql-zrm-parse-binlogs.1*
114 %{_mandir}/man1/mysql-zrm-purge.1*
115 %{_mandir}/man1/mysql-zrm-reporter.1*
116 %{_mandir}/man1/mysql-zrm-restore.1*
117 %{_mandir}/man1/mysql-zrm-scheduler.1*
118 %{_mandir}/man1/mysql-zrm-verify-backup.1*
119 %{_mandir}/man1/mysql-zrm.1*
120 %{_mandir}/man5/mysql-zrm-reporter.conf.5*
121 %{_mandir}/man5/mysql-zrm.conf.5*
122 %{_libdir}/%{name}/Data
123 %{_libdir}/%{name}/XML
124 %{_libdir}/%{name}/ZRM/Common.pm
125 %{_libdir}/%{name}/ZRM/MySQL.pm
126 %{_libdir}/%{name}/ZRM/Replication.pm
127 %attr(755,root,root) %{_datadir}/%{name}/plugins/encrypt.pl
128 %attr(755,root,root) %{_datadir}/%{name}/plugins/parse-binlogs.pl
129 %attr(755,root,root) %{_datadir}/%{name}/plugins/post-backup.pl
130 %attr(755,root,root) %{_datadir}/%{name}/plugins/post-restore.pl
131 %attr(755,root,root) %{_datadir}/%{name}/plugins/pre-backup.pl
132 %attr(755,root,root) %{_datadir}/%{name}/plugins/pre-restore.pl
133 %attr(755,root,root) %{_datadir}/%{name}/plugins/pre-scheduler-plugin.pl
134
135 %files client
136 %defattr(644,root,root,755)
137 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
138 %dir %{_libdir}/%{name}
139 %dir %{_libdir}/%{name}/ZRM
140 %{_libdir}/%{name}/ZRM/SnapshotCommon.pm
141 %dir %{_datadir}/%{name}
142 %dir %{_datadir}/%{name}/plugins
143 %attr(755,root,root) %{_datadir}/%{name}/plugins/lvm-snapshot.pl
144 %attr(755,root,root) %{_datadir}/%{name}/plugins/socket-copy.pl
145 %attr(755,root,root) %{_datadir}/%{name}/plugins/socket-server.pl
146 %attr(755,root,root) %{_datadir}/%{name}/plugins/ssh-copy.pl
147 %attr(755,root,root) %{_datadir}/%{name}/plugins/zfs-snapshot.pl
148 %dir /var/lib/%{name}
149 %dir /var/log/%{name}
150 %ghost /var/log/%{name}/%{name}.log
This page took 0.343711 seconds and 3 git commands to generate.