# git.spec.tmpl - tracks the latest commit on the configured branch. # Rendered by coprforge on 2026-04-05. %global commit 9d7bcbae370ce67418eafb930af9532af474ef9f %global shortcommit 9d7bcba %global date 20260405 Name: coprforge-git Version: 0~git%{date}.%{shortcommit} Release: 1%{?dist} Summary: Automates updating RPM spec files for Fedora COPR builds. License: EUPL-1.2 URL: https://codeberg.org/victorvintorez/coprforge Source0: https://codeberg.org/victorvintorez/coprforge/archive/9d7bcbae370ce67418eafb930af9532af474ef9f.tar.gz BuildRequires: cargo-rpm-macros BuildRequires: rust BuildRequires: pkgconf BuildRequires: perl-FindBin BuildRequires: perl-IPC-Cmd BuildRequires: openssl-devel Conflicts: coprforge Provides: coprforge %description Given a config file in a git repository, coprforge fetches metadata from upstream git repositories, which is then made available through a simple templating layer on top of RPM spec files. These templates can then be rendered with the latest metadata, auto committed & pushed to the git repository, and then calls COPR webhooks to initiate a build for any updated RPM specs. This is a git snapshot build tracking the main branch. %prep %autosetup -n coprforge cargo vendor %cargo_prep -v vendor %build cargo build --locked --release %{cargo_license_summary} %{cargo_license} > LICENCE.dependencies %{cargo_vendor_manifest} %install install -Dpm755 target/release/coprforge %{buildroot}%{_bindir}/coprforge install -Dpm644 target/completions/coprforge.bash %{buildroot}%{bash_completions_dir}/coprforge.bash install -Dpm644 target/completions/_coprforge %{buildroot}%{zsh_completions_dir}/_coprforge install -Dpm644 target/completions/coprforge.fish %{buildroot}%{fish_completions_dir}/coprforge.fish %files %license LICENSE %doc README.md %{_bindir}/coprforge %{bash_completions_dir}/coprforge.bash %{zsh_completions_dir}/_coprforge %{fish_completions_dir}/coprforge.fish %changelog %autochangelog