File nginx.spec of Package nginx

Name:           nginx
Version:        1.0
Release:        1
Summary:        Nginx Web Server Installation Script
License:        MIT
URL:            https://nginx.org/
Source0:        nginx.sh
BuildArch:      x86_64
Requires:       nginx
BuildRequires:  zypper

%description
This package provides a script to install and configure the Nginx web server on openSUSE. It installs Nginx, enables it to start on boot, and starts the Nginx service.

%prep
# No preparation required for this script

%build
# No build step required

%install
# Create the installation directory and install the script
install -d %{buildroot}/usr/local/bin
install -m 0755 %{SOURCE0} %{buildroot}/usr/local/bin/nginx.sh

%files
/usr/local/bin/nginx.sh

%post
# Run the installation script to install and configure Nginx
/usr/local/bin/nginx.sh

%changelog
* Mon Nov 1 2024 Your Name wingetmicah38@gmail.com - 1.0-1
- Initial release of the Nginx installation script
openSUSE Build Service is sponsored by