Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPEC support, CHANGELOG update #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.idea
*.iml
16 changes: 16 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
# Change Log
#=====================================================================
#
# version 3.0.7 - (2018-05-02)
# - Small changes for MacOS
# version 3.0.6 - (2018-01-10)
# - Fix the mysql login-configuration file cannot be located in a cronjob
# version 3.0.5 - (2017-12-08)
# - Changed usessl to no per default
# version 3.0.4 - (2017-10-27)
# - Adjusted md5sums in install.sh
# version 3.0.3 - (2017-09-27)
# - Configuration fix
# version 3.0.2 - (2017-01-20)
# - Add secure connection config support to install.sh
# version 3.0.1 - (2016-10-05)
# - Forked from Sourceforge
# - Supports MySQL 5.6 and MySQL 5.7
# - Updated README for login path support
# version 3.0_rc4 - (2011-11-24)
# - Removing mkfifo commands, thereby improving portability.
# - Fixing not working table exclude feature for wildcards.
Expand Down
49 changes: 49 additions & 0 deletions automysqlbackup.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
%global commit0 9c7d05ccaf3773e4168278ce3d3da254695b02eb
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global gittag 3.0.7
%global projname AutoMySQLBackup

Name: automysqlbackup
Version: 3.0.7
Release: 1%{?dist}
Summary: MySQL/MariaDB backup script
Group: Applications/Databases
License: GPLv2+
URL: https://github.com/sixhop/%{projname}
%undefine _disable_source_fetch
Source0: https://github.com/sixhop/%{projname}/archive/%{gittag}/%{projname}-%{version}.tar.gz
%define SHA256SUM0 8641f37ed453c880f541fe729e7b927db62b8d8a81c0d693efb8dd9dece09ee7
BuildArch: noarch
Requires: bash
Requires: bzip2
Requires: gzip
Requires: diffutils
Requires: openssl
Requires: mysql

%description
MySQL/MariaDB backup wrapper script for mysqldump, with support for
backup rotation, encryption, compression and incremental backup.

%prep
echo "%SHA256SUM0 %SOURCE0" | sha256sum -c -
%autosetup -n %{projname}-%{gittag}

%build
true

%install
install -m 755 -d %{buildroot}/%{_bindir}
install -m 755 -d %{buildroot}/%{_sysconfdir}/automysqlbackup

install -m 755 automysqlbackup %{buildroot}/%{_bindir}/automysqlbackup
install -m 600 automysqlbackup.conf %{buildroot}/%{_sysconfdir}/automysqlbackup/automysqlbackup.conf

%files
%{_bindir}/automysqlbackup
%config(noreplace) %{_sysconfdir}/automysqlbackup/automysqlbackup.conf
%doc README README.md LICENSE CHANGELOG

%changelog
* Sun Nov 03 2019 Robert Oschwald <[email protected]> 3.0.7
- Small changes for MacOS