From eed6ea7a2abb54fd45d9789be38f3e8d6eaadfae Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Fri, 19 Jun 2026 11:26:06 -0400 Subject: [PATCH] [udis86] Add package udis86 --- .gitea/workflows/build-udis86.yml | 32 +++++++++++++++++++++ udis86.spec | 47 +++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 .gitea/workflows/build-udis86.yml create mode 100644 udis86.spec diff --git a/.gitea/workflows/build-udis86.yml b/.gitea/workflows/build-udis86.yml new file mode 100644 index 0000000..5919e2f --- /dev/null +++ b/.gitea/workflows/build-udis86.yml @@ -0,0 +1,32 @@ +name: Build udis86 +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-udis86.yml + - "udis86.spec" + workflow_dispatch: + +jobs: + build_push: + name: Build and push image + runs-on: ubuntu-latest + + steps: + - name: Setup environment + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y podman iptables + + # These stage versions are pinned by https://github.com/renovatebot/renovate + - name: Checkout + uses: actions/checkout@v6 # v5 + + - name: Build RPM and Upload + uses: https://git.hydrosaber.com/hydros/build-rpm@main + with: + spec-file-path: ./udis86.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/udis86.spec b/udis86.spec new file mode 100644 index 0000000..9388c72 --- /dev/null +++ b/udis86.spec @@ -0,0 +1,47 @@ +%global udis86_commit 5336633af70f3917760a6d441ff02d93477b0c86 +%global udis86_shortcommit %(c=%{udis86_commit}; echo ${c:0:7}) + +Name: udis86 +Version: 1.0.0 +Release: %autorelease +Summary: Disassembler Library for x86 and x86-64 +BuildArch: noarch + +License: BSD-3-Clause +URL: https://github.com/canihavesomecoffee/udis86 +Source: https://github.com/canihavesomecoffee/udis86/archive/%{udis86_commit}/udis86-%{udis86_shortcommit}.tar.gz + +BuildRequires: meson + +%description +%{summary}. + +%package devel +Summary: Disassembler Library for x86 and x86-64 + +%description devel +%{summary}. + + +%prep +%autosetup -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install + + +%files devel +%license LICENSE +%doc README.md +%{_datadir}/pkgconfig/%{name}.pc +%{_datadir}/%{name}/ + + +%changelog +%autochangelog