Prepare migration to Fedora Forge

This commit is contained in:
Maxwell G 2026-04-21 22:46:37 -05:00
commit 50f8b97e2a
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
8 changed files with 22 additions and 91 deletions

View file

@ -1,26 +0,0 @@
---
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
# SPDX-License-Identifier: GPL-1.0-or-later
# NOTICE: This file is generated from ci.yml.in. Do not edit!
image: fedora/42
packages:
- gawk
- python3-pytest
- python3-pyyaml
- redhat-rpm-config
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
tasks:
- pytest: |
cd forge-srpm-macros
if [ "$(rpm -E %{?rhel})" = "9" ]; then
sudo dnf install -y epel-rpm-macros
make epel9-build
export \
MACRO_DIR="$(pwd)/epel9/rpm/macros.d" \
MACRO_LUA_DIR="$(pwd)/epel9/rpm/lua"
fi
pytest -vv

View file

@ -4,7 +4,7 @@
# NOTICE: This file is generated from ci.yml.in. Do not edit!
image: fedora/41
image: fedora/43
packages:
- gawk
- python3-pytest
@ -12,7 +12,7 @@ packages:
- redhat-rpm-config
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
- https://forge.fedoraproject.org/packaging/forge-srpm-macros
tasks:
- pytest: |
cd forge-srpm-macros

View file

@ -12,7 +12,7 @@ packages:
- redhat-rpm-config
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
- https://forge.fedoraproject.org/packaging/forge-srpm-macros
tasks:
- pytest: |
cd forge-srpm-macros

View file

@ -13,19 +13,11 @@ packages:
- redhat-rpm-config
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
secrets:
# gotmax23/forge-srpm-macros-dev webhook
- 454377f4-e19c-4e44-a21d-6462e3d06ea2
- https://forge.fedoraproject.org/packaging/forge-srpm-macros
tasks:
- setup: |
pipx install git+https://git.sr.ht/~gotmax23/releaserr
- copr-webhook: |
cd forge-srpm-macros
releaserr copr-webhook ~/.copr-dev-hook --branch origin/main --skip-if-missing
- pytest: |
cd forge-srpm-macros
pytest -vv
- lint: |
cd forge-srpm-macros
nox -e lint
- pytest: |
cd forge-srpm-macros
pytest -vv

View file

@ -6,6 +6,8 @@ SPDX-License-Identifier: GPL-1.0-or-later
# Contributing
This project is hosted on Fedora Forge.
This project's mailing list is
[~gotmax23/forge-srpm-macros@lists.sr.ht][mailto] ([archives]).
@ -23,51 +25,16 @@ todo.sr.ht, but it's only for confirmed issues.
[tracker]: https://todo.sr.ht/~gotmax23/forge-srpm-macros
## Patches
Contributing patches isalways welcome!
It is recommended that you send a message to the mailing list or create an
issue before working on a larger change.
Please run tests locally before submitting your changes.
## Testing
This repository uses `nox` to run unit tests and Python linters.
## Patches
Contributions are always welcome!
It is recommended that you send a message to the mailing list before working on
a larger change.
Patches can be sent to [~gotmax23/forge-srpm-macros@lists.sr.ht][mailto]
using [`git send-email`][1].
No Sourcehut account is required!
After configuring git-send-email as explained at [git-send-email.io][1]:
[mailto]: mailto:~gotmax23/forge-srpm-macros@lists.sr.ht
[archives]: https://lists.sr.ht/~gotmax23/forge-srpm-macros
[1]: https://git-send-email.io
```
# Clone the repo
git clone https://git.sr.ht/~gotmax23/forge-srpm-macros
cd forge-srpm-macros
# Configure the repo. Only needs to be run once.
git config sendemail.to "~gotmax23/forge-srpm-macros@lists.sr.ht"
git config format.subjectprefix "PATCH forge-srpm-macros"
# Make your changes
$EDITOR ...
# Run tests using mock
nox
# Commit your changes and send your patch to the mailing list
git commit -a -v
git send-email origin/main
```
See [git-send-email.io][1] for more details.
If you prefer, git.sr.ht has a webui to help you submit patches to a mailing
list that can be used in place of `git send-email`. You can follow [this
written guide][2] or [this video guide][3] for how to use the webui.
[2]: https://man.sr.ht/git.sr.ht/#sending-patches-upstream
[3]: https://spacepub.space/w/no6jnhHeUrt2E5ST168tRL
You can `dnf install nox` and then invoke `nox` to run everything.
CI is run through https://builds.sr.ht using the [yojo](https://codeberg.org/emersion/yojo/) bridge
on pushes to `main` and PRs.

View file

@ -16,9 +16,7 @@ This code has been split out from redhat-rpm-config to ease maintenance.
## Links
- [forge-srpm-macros project hub](https://sr.ht/~gotmax23/forge-srpm-macros)
- [forge-srpm-macros git.sr.ht repo](https://git.sr.ht/~gotmax23/forge-srpm-macros)
- [forge-srpm-macros tracker](https://todo.sr.ht/~gotmax23/forge-srpm-macros)
- [forge-srpm-macros Forge](https://forge.fedoraporject.org/packaging/forge-srpm-macros)
- [forge-srpm-macros mailing list][archives] ([~gotmax/forge-srpm-macros@lists.sr.ht][mailto])
[archives]: https://lists.sr.ht/~gotmax23/forge-srpm-macros
@ -27,7 +25,7 @@ This code has been split out from redhat-rpm-config to ease maintenance.
## Compatibility
The minimum supported RPM version is 4.16. The macros are tested in CI on
Fedora 38+ and EL 9.
Fedora 43+ and EL 9.
## Contributing

View file

@ -12,7 +12,7 @@ packages:
- redhat-rpm-config
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
- https://forge.fedoraproject.org/packaging/forge-srpm-macros
tasks:
- pytest: |
cd forge-srpm-macros

View file

@ -4,7 +4,7 @@
set -euo pipefail
for i in rockylinux/9 fedora/41 fedora/42; do
for i in rockylinux/9 fedora/43; do
file=".builds/$(echo $i | cut -d/ -f2).yml"
sed "s|@@IMAGE@@|$i|" ci.yml.in >$file
sed "s|@@IMAGE@@|$i|" ci.yml.in >"$file"
done