File stargate.spec of Package stargate
Name: stargate
Version: 1.0
Release: 1
Summary: Simple console VPN client for Tor
License: GPLv3+
Group: System/Management
URL: https://yourdomain.com
Source0: stargate-%{version}.zip
BuildArch: noarch
BuildRequires: /bin/bash
BuildRequires: unzip
Requires: bash tor curl systemd
%description
A simple console client to connect to the Tor network via the 'stargate tor start' command.
%prep
# Распаковываем ZIP-архив
%setup -q -n stargate-%{version}
%build
# Скрипт не требует компиляции
echo "Building stargate..."
%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0755 stargate.sh %{buildroot}%{_bindir}/stargate
install -m 0644 stargate.service %{buildroot}%{_unitdir}/stargate.service
%post
systemctl daemon-reload
systemctl enable stargate.service
%preun
systemctl stop stargate.service
systemctl disable stargate.service
%files
%{_bindir}/stargate
%{_unitdir}/stargate.service
%changelog
* Sun Oct 12 2025 Your Name <your.email@example.com> - 1.0-1
- Initial package build for SUSE with ZIP source