File git-pages.spec of Package git-pages
#
# spec file for package git-pages
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: git-pages
Version: 0.7.0+git4.ccabfc2
Release: 0
Summary: Scalable static site server for Git forges
License: BSD-0-Clause
URL: https://codeberg.org/git-pages/git-pages/
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: golang-packaging
BuildRequires: go >= 1.25
BuildRequires: zstd
%description
git-pages is a static site server for use with Git forges (i.e. a GitHub Pages
replacement). It is written with efficiency in mind, scaling horizontally to
any number of deployed sites and concurrent requests and serving sites up to
hundreds of megabytes in size, while being equally suitable for single-user
deployments.
It is implemented in Go and has no other mandatory dependencies, although it is
designed to be used together with the Caddy server (for TLS termination) and an
Amazon S3 compatible object store (for horizontal scalability of storage).
%prep
%autosetup -p1 -a1
%build
go build -buildmode=pie
%install
install -D -m 0755 -t %{buildroot}%{_sbindir}/ git-pages
%files
%license LICENSE.txt
%doc README.md
%doc conf/
%{_sbindir}/git-pages
%changelog