From 4f7129a396d65daa829203f7efd31c344a850346 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Mon, 15 Jul 2024 17:28:53 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ hugo.spec | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .abf.yml create mode 100644 hugo.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..e968027 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + hugo-0.128.2.tar.gz: 824e0a85f9ace3f3264009210b333d6b8c553a7a diff --git a/hugo.spec b/hugo.spec new file mode 100644 index 0000000..7c4fca6 --- /dev/null +++ b/hugo.spec @@ -0,0 +1,35 @@ +%define debug %nil +%define debug_package %nil + +Name: hugo +Version: 0.128.2 +Release: 1 +Summary: A framework for building websites +URL: https://gohugo.io +Source0: https://github.com/gohugoio/hugo/archive/v%{version}/%{name}-%{version}.tar.gz +License: MIT +Group: Development/Other +BuildRequires: go +BuildRequires: git-core +BuildRequires: upx + +%description +A fast and flexible static site generator built with love by +bep, spf13, and friends in Go. + +%prep +%setup -q + +%build +export GOPROXY=https://proxy.golang.org/cached-only +CGO_ENABLED=1 go build -ldflags '-s -w' -o ./bin/%{name} . + +upx bin/%{name} + +%install +install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} + +%files +%doc README.md LICENSE +%{_bindir}/%{name} +