darth
(Linux Renaissance)
January 28, 2025, 7:34pm
1
Note to self: I need Hugo static website generator.
It’s currently being worked on. I’m currently able to build a rpm package and install it. However, I need to find out how we handle Go dependencies within the reposistories.
I believe you use the updater on the source manually then compress to a file containing the whole thing. Similar to:
%global debug_package %{nil}
# set to nil when packaging a release,
# or the long commit tag for the specific git branch
%global commit_tag %{nil}
# set with the commit date only if commit_tag not nil
# git version (i.e. master) in format date +Ymd
%if "%{commit_tag}" != "%{nil}"
%global commit_date %(git show -s --date=format:'%Y%m%d' %{commit_tag})
%endif
# repack non-release git branches as .xz with the commit date
# in the following format <name>-<version>-<commit_date>.xz
# the short commit tag should be 7 characters long
Name: micro
Version: 2.0.14
Release: %{?commit_date:~0.%{commit_date}.}1
Summary: A modern and intuitive terminal-based text editor
This file has been truncated. show original
1 Like