This commit is contained in:
Raboneko
2026-02-26 11:48:51 -08:00
committed by GitHub
parent 3055e7f00c
commit 4667758d97
3 changed files with 47 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "surge.spec"
}
}
+41
View File
@@ -0,0 +1,41 @@
%global goipath github.com/surge-downloader/surge
Version: 0.6.9
%gometa
Name: surge
Release: 1%?dist
Summary: Blazing fast TUI download manager built in Go for power users
License: MIT
URL: https://github.com/surge-downloader/Surge
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildRequires: golang gcc go-rpm-macros
Requires: glibc
%description
%{summary}.
%gopkg
%prep
%autosetup -n Surge-%{version}
%build
%define gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/surge %{goipath}
%install
install -Dm755 %{gobuilddir}/bin/surge %{buildroot}%{_bindir}/surge
%files
%license LICENSE
%doc README.md
%{_bindir}/surge
%changelog
* Tue Feb 24 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("surge-downloader/Surge"));