mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5eb0030a83 | |||
| 79da7acb5b | |||
| 2ee3afd9bd | |||
| a75a73fceb | |||
| 7e36bcfe0c | |||
| ebec4bb056 | |||
| b5aba5a7ed | |||
| 4aed959690 | |||
| 28ce98d86b | |||
| bb275956c2 |
@@ -4,19 +4,15 @@ name: Automatically build packages
|
||||
permissions:
|
||||
contents: read
|
||||
on:
|
||||
# push:
|
||||
# paths:
|
||||
# - anda/**
|
||||
# branches:
|
||||
# - frawhide
|
||||
pull_request:
|
||||
push:
|
||||
paths:
|
||||
- anda/**
|
||||
branches:
|
||||
- frawhide
|
||||
pull_request:
|
||||
branches:
|
||||
- frawhide
|
||||
merge_group:
|
||||
paths:
|
||||
- anda/**
|
||||
branches:
|
||||
- frawhide
|
||||
workflow_dispatch:
|
||||
@@ -48,14 +44,6 @@ jobs:
|
||||
packages: ${{ needs.manifest.outputs.build_matrix }}
|
||||
publish: ${{ github.event_name == 'push' }}
|
||||
|
||||
automerge:
|
||||
needs: build
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- name: Merge PR on Success Build
|
||||
if: github.event.pull_request.commits == 1 && github.event.pull_request.user.login == 'raboneko'
|
||||
run: gh pr merge ${{ github.event.number }} --admin --squash
|
||||
|
||||
appstream:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
@@ -118,69 +106,3 @@ jobs:
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
done
|
||||
|
||||
lintUpdate:
|
||||
needs: manifest
|
||||
runs-on: ubuntu-24.04-arm
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
container:
|
||||
image: ghcr.io/terrapkg/builder:frawhide
|
||||
options: --cap-add=SYS_ADMIN --privileged
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 2
|
||||
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }}
|
||||
|
||||
- name: Install SSH signing key & Set up git repository
|
||||
run: |
|
||||
mkdir -p ${{ runner.temp }}
|
||||
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
|
||||
chmod 0700 ${{ runner.temp }}/signing_key
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
- name: Collect update scripts from last commit
|
||||
id: last_commit_update_scripts
|
||||
run: |
|
||||
scripts=$(git diff-tree --no-commit-id --name-only HEAD -r | grep -E '/update\.rhai$' || true)
|
||||
scripts=$(printf "%s" "$scripts" | tr '\n' ' ')
|
||||
echo "upd_scripts=${scripts}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Run update scripts from last commit
|
||||
if: steps.last_commit_update_scripts.outputs.upd_scripts != ''
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
pr_number="${{ github.event.pull_request.number }}"
|
||||
for script in ${{ steps.last_commit_update_scripts.outputs.upd_scripts }}; do
|
||||
echo "Running update script: $script"
|
||||
dir=$(dirname "$script")
|
||||
hcl="$dir/anda.hcl"
|
||||
if [ ! -f "$hcl" ]; then
|
||||
echo "Missing anda.hcl for $script"
|
||||
continue
|
||||
fi
|
||||
|
||||
backup="$hcl.autobuild_upd_test.bak"
|
||||
cp $hcl $backup
|
||||
if ! grep -qE 'labels {' $hcl; then
|
||||
sed -E '/rpm\s*{/i labels { autobuild_upd_test = 1 }' -i $hcl
|
||||
else
|
||||
sed -E '/labels\s*{/a autobuild_upd_test = 1' -i $hcl
|
||||
fi
|
||||
|
||||
output=$(anda run "$script" -f autobuild_upd_test=1 2>&1) || status=$?
|
||||
status=${status:-0}
|
||||
echo "$output"
|
||||
|
||||
mv "$backup" "$hcl" # do we want to commit this too?
|
||||
|
||||
if echo "$output" | grep -q "ERROR" || [ "$status" -ne 0 ]; then
|
||||
gh pr comment ${{ github.event.pull_request.number }} --body "Update script failed: $script\n\n\`\`\`\n$output\n\`\`\`"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
name: Update per branch
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/30 * * * *"
|
||||
@@ -51,7 +50,7 @@ jobs:
|
||||
git config user.email "raboneko@fyralabs.com"
|
||||
git config gpg.format "ssh"
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
anda run andax/ci/update_pr.rhai -l scope=branch
|
||||
msg="bump(branch): $(anda run andax/ci/update_commit_message.rhai)"
|
||||
git commit -S -a -m "$msg"
|
||||
git push -u origin --all
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
name: Nightly Update
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
@@ -40,7 +39,17 @@ jobs:
|
||||
git config user.email "raboneko@fyralabs.com"
|
||||
git config gpg.format "ssh"
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
anda run andax/ci/update_pr.rhai -l scope=nightly
|
||||
msg="bump(nightly): $(anda run andax/ci/update_commit_message.rhai)"
|
||||
git commit -S -a -m "$msg"
|
||||
git format-patch HEAD^
|
||||
copy_over () {
|
||||
git checkout $1
|
||||
git apply *.patch || true
|
||||
git add anda
|
||||
git commit -S -a -m "$msg"
|
||||
}
|
||||
copy_over f43 || true
|
||||
copy_over f42 || true
|
||||
copy_over el10 || true
|
||||
git push -u origin --all
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
name: Weekly Update
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
@@ -40,7 +39,17 @@ jobs:
|
||||
git config user.email "raboneko@fyralabs.com"
|
||||
git config gpg.format "ssh"
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
anda run andax/ci/update_pr.rhai -l scope=weekly
|
||||
msg="bump(weekly): $(anda run andax/ci/update_commit_message.rhai)"
|
||||
git commit -S -a -m "$msg"
|
||||
git format-patch HEAD^
|
||||
copy_over () {
|
||||
git checkout $1
|
||||
git apply *.patch || true
|
||||
git add anda
|
||||
git commit -S -a -m "$msg"
|
||||
}
|
||||
copy_over f43 || true
|
||||
copy_over f42 || true
|
||||
copy_over el10 || true
|
||||
git push -u origin --all
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
name: Update
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/10 * * * *"
|
||||
@@ -28,7 +27,7 @@ jobs:
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
- name: Run Update
|
||||
run: anda update -e nightly=1 -e updbranch=1 -e weekly=0 -e weekly=1 -e weekly=2 -e weekly=3 -e weekly=4 -e weekly=5 -e weekly=6
|
||||
run: anda update --excludes nightly=1 --excludes weekly=1 --excludes updbranch=1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.AUTOUPDATE_GH_TOKEN }}
|
||||
RUST_BACKTRACE: full
|
||||
@@ -40,7 +39,17 @@ jobs:
|
||||
git config user.email "raboneko@fyralabs.com"
|
||||
git config gpg.format "ssh"
|
||||
git config user.signingkey "${{ runner.temp }}/signing_key"
|
||||
anda run andax/ci/update_pr.rhai -l scope=auto
|
||||
msg="bump: $(anda run andax/ci/update_commit_message.rhai)"
|
||||
git commit -S -a -m "$msg"
|
||||
git format-patch HEAD^
|
||||
copy_over () {
|
||||
git checkout $1
|
||||
git apply *.patch || true
|
||||
git add anda
|
||||
git commit -S -a -m "$msg"
|
||||
}
|
||||
copy_over f43 || true
|
||||
copy_over f42 || true
|
||||
copy_over el10 || true
|
||||
git push -u origin --all
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
%define debug_package %nil
|
||||
|
||||
Name: peazip
|
||||
Version: 10.8.0
|
||||
Release: 3%?dist
|
||||
Version: 10.9.0
|
||||
Release: 1%?dist
|
||||
Summary: Free Zip / Unzip software and Rar file extractor. Cross-platform file and archive manager
|
||||
License: LGPL-3.0-only
|
||||
URL: https://peazip.github.io
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# https://github.com/jesseduffield/lazygit
|
||||
%global goipath github.com/jesseduffield/lazygit
|
||||
Version: 0.58.1
|
||||
Version: 0.59.0
|
||||
|
||||
%gometa -f
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "textual.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
%global pypi_name textual
|
||||
%global _desc The lean application framework for Python.
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 7.3.0
|
||||
Release: 1%?dist
|
||||
Summary: The lean application framework for Python
|
||||
License: MIT
|
||||
URL: https://github.com/Textualize/textual
|
||||
Source0: %{pypi_source}
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-poetry
|
||||
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%description
|
||||
%_desc
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%_desc
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files textual
|
||||
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Sat Jan 24 2026 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Initial commit
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(pypi("textual"));
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
version=0.16.0-dev.2510+bcb5218a2
|
||||
version=0.16.0-dev.2522+d84a638e8
|
||||
|
||||
mirrors=()
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
%define llvm_compat 20
|
||||
%endif
|
||||
%global llvm_version 20.0.0
|
||||
%global ver 0.16.0-dev.2510+bcb5218a2
|
||||
%global ver 0.16.0-dev.2522+d84a638e8
|
||||
%bcond bootstrap 1
|
||||
%bcond docs %{without bootstrap}
|
||||
%bcond test 1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%global commit 3f0c0a2c09207011ca8505b694ceeb9a1b4036b7
|
||||
%global commit 756aa56d036599e53a563afdfa8b4d143b95f9b4
|
||||
%global shortcommit %{sub %{commit} 1 7}
|
||||
%global commit_date 20260203
|
||||
%global commit_date 20260207
|
||||
|
||||
Name: vgmstream
|
||||
Version: 0~%{commit_date}git.%shortcommit
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
%undefine __brp_mangle_shebangs
|
||||
|
||||
Name: scx-scheds
|
||||
Version: 1.0.19
|
||||
Release: 2%{?dist}
|
||||
Version: 1.0.20
|
||||
Release: 1%?dist
|
||||
Summary: sched_ext schedulers
|
||||
SourceLicense: GPL-2.0-only
|
||||
License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND Apache-2.0 AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only AND ISC AND (LGPL-2.1-only OR BSD-2-Clause) AND LGPL-2.1 AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MIT AND (MPL-2.0 OR MIT OR Apache-2.0) AND MPL-2.0-only and MPL-2.0-or-later AND (Unlicense OR MIT) AND Zlib
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
%global org "com.sched_ext"
|
||||
|
||||
Name: scx-tools
|
||||
Version: 1.0.19
|
||||
Release: 3%{?dist}
|
||||
Version: 1.0.20
|
||||
Release: 1%?dist
|
||||
Summary: Sched_ext Tools
|
||||
License: ((MIT OR Apache-2.0) AND Unicode-3.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND GPL-2.0-only AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0) AND MIT AND MPL-2.0 AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
|
||||
SourceLicense: GPL-2.0-only
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Name: klassy
|
||||
|
||||
%global forgeurl https://github.com/paulmcauley/%{name}
|
||||
%global tag v6.5.1
|
||||
%global date 20260206
|
||||
%global tag v6.5.2
|
||||
%global date 20260207
|
||||
%forgemeta
|
||||
|
||||
Version: %{tag}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
%global crate mise
|
||||
|
||||
Name: rust-mise
|
||||
Version: 2026.2.5
|
||||
Version: 2026.2.6
|
||||
Release: 1%?dist
|
||||
Summary: Front-end to your dev env
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import "anda::cfg" as cfg;
|
||||
|
||||
let cmd = `git status | sed -nE '/^\tmodified:/{s@^\tmodified:\s+@@;s@[^/]+$@@;p}' | sort -u`;
|
||||
let filelist = sh(cmd, #{ "stdout": "piped" }).ctx.stdout.split('\n');
|
||||
|
||||
let modified_list = "";
|
||||
for file in filelist {
|
||||
if file.is_empty() { continue; }
|
||||
let spec = cfg::load_file(`${file}/anda.hcl`).project.pkg.rpm.spec;
|
||||
spec.pop(5); // remove `.spec` suffix
|
||||
modified_list += `${spec} `;
|
||||
}
|
||||
print(modified_list[..modified_list.len()-1]);
|
||||
@@ -1,34 +0,0 @@
|
||||
import "anda::cfg" as cfg;
|
||||
|
||||
fn pr(branch, dir, spec, scope) {
|
||||
sh(`git checkout ${branch}`, #{});
|
||||
if sh(`git stash apply`, #{}).ctx.rc != 0 {
|
||||
sh(`git reset HEAD ${dir}`, #{});
|
||||
return;
|
||||
}
|
||||
if sh(`git commit -S -m "bump(${scope}): ${spec}" ${dir}`, #{}).ctx.rc != 0 {
|
||||
sh(`git reset HEAD ${dir}`, #{});
|
||||
return;
|
||||
}
|
||||
sh(`gh pr create --title '[${branch}] bump(${scope}): ${spec}' --body 'Automatic bump from CI\n\nnosync'`, #{});
|
||||
sh(`git reset --hard HEAD^`, #{});
|
||||
}
|
||||
|
||||
let cmd = `git status | sed -nE '/^\tmodified:/{s@^\tmodified:\s+@@;s@[^/]+$@@;p}' | sort -u`;
|
||||
let filelist = sh(cmd, #{ "stdout": "piped" }).ctx.stdout.split('\n');
|
||||
|
||||
for dir in filelist {
|
||||
if dir.is_empty() { continue; }
|
||||
let spec = cfg::load_file(`${dir}/anda.hcl`).project.pkg.rpm.spec;
|
||||
spec.pop(5); // remove `.spec` suffix
|
||||
if labels.scope == "branch" {
|
||||
sh(`git commit -S -m "bump(${labels.scope}): ${spec}" ${dir}`, #{});
|
||||
continue;
|
||||
}
|
||||
sh(`git stash push -m "bump(${labels.scope}): ${spec}" -- ${dir}`, #{});
|
||||
pr("frawhide", dir, spec, labels.scope);
|
||||
pr("f43", dir, spec, labels.scope);
|
||||
pr("f42", dir, spec, labels.scope);
|
||||
pr("el10", dir, spec, labels.scope);
|
||||
sh(`git stash drop`, #{});
|
||||
}
|
||||
Reference in New Issue
Block a user