## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: git-pages Version: 0.10.0 Release: %autorelease Summary: Scalable static site server for Git forges. License: MIT URL: https://codeberg.org/git-pages/git-pages Source0: https://codeberg.org/git-pages/git-pages/archive/refs/tags/v%{version}.tar.gz Source1: git-pages.sysusers.conf Source2: git-pages.service BuildRequires: golang BuildRequires: systemd-rpm-macros %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 machines and serving sites up to multiple gigabytes in size, while being equally suitable for small single-user deployments. %prep %setup -q -n %{name} go mod download %build go build -o bin/git-pages %install mkdir -p %{buildroot}%{_sysconfdir}/git-pages/ mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysusersdir} mkdir -p %{buildroot}%{_sharedstatedir}/git-pages/ install -m 755 bin/git-pages %{buildroot}%{_bindir}/git-pages install -m 755 conf/config.default.toml %{buildroot}%{_sysconfdir}/git-pages/config.toml install -m 755 conf/config.example.toml %{buildroot}%{_sysconfdir}/git-pages/config.example.toml touch %{buildroot}%{_sysconfdir}/git-pages/secrets.toml install -m 644 %{S:1} %{buildroot}%{_sysusersdir}/git-pages.conf install -m 644 %{S:2} %{buildroot}%{_unitdir}/git-pages.service %pre %sysusers_create_compat %{S:1} %post %systemd_post git-pages.service %preun %systemd_preun git-pages.service %postun %systemd_postun_with_restart git-pages.service %files %license LICENSE.txt %doc README.md %attr(755, root, root) %{_bindir}/git-pages %config(noreplace) %attr(750, root, git-pages) %{_sysconfdir}/git-pages/config.toml %config(noreplace) %attr(750, root, git-pages) %{_sysconfdir}/git-pages/secrets.toml %attr(750, root, git-pages) %{_sysconfdir}/git-pages/config.example.toml %attr(755, git-pages, git-pages) %{_sharedstatedir}/git-pages/ %{_sysusersdir}/git-pages.conf %{_unitdir}/git-pages.service %changelog ## START: Generated by rpmautospec * Mon Oct 26 2026 Grillo del Mal - 0.10.0-1 - Update to 0.10.0 * Wed Sep 30 2026 Grillo del Mal - 0.9.1-2 - Add secrets * Tue Sep 29 2026 Grillo del Mal - 0.9.1-1 - Initial commit ## END: Generated by rpmautospec