File mysql.spec of Package MySQL
Name: mysql
Version: 1.0
Release: 1
Summary: MySQL server installation script
License: GPLv2
URL: https://www.mysql.com/
Source0: mysql.sh
BuildArch: x86_64
Requires: mysql-community-server
BuildRequires: zypper, systemd
%description
This package provides a script to install and configure MySQL server. It sets up MySQL to start on boot and provides instructions to secure the installation.
%prep
# No preparation needed
%build
# No build needed
%install
# Create installation directory
install -d %{buildroot}/usr/local/bin
# Install the script to /usr/local/bin
install -m 0755 %{SOURCE0} %{buildroot}/usr/local/bin/mysql.sh
%files
/usr/local/bin/mysql.sh
%post
# Run the installation script
/usr/local/bin/mysql.sh
%changelog
* Mon Nov 1 2024 Micah Winget <wingetmicah38@gmail.com> - 1.0-1
- Initial release of MySQL installation script.