Introduce glaze-static package
Some checks failed
Build glaze / Build and push image (push) Failing after 1m25s

This commit is contained in:
2025-12-03 18:29:49 -05:00
parent 2d8cd3b476
commit 27451693e1
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
name: Build glaze
on:
push:
branches:
- main
paths:
- .gitea/workflows/build-glaze.yml
- "glaze.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: ./glaze.spec
repository-user: eriq12
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}

46
glaze.spec Normal file
View File

@@ -0,0 +1,46 @@
%global debug_package %{nil}
Name: glaze
Version: 6.0.3
Release: %autorelease
Summary: Extremely fast, in memory, JSON and interface library
License: MIT
URL: https://github.com/stephenberry/glaze
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
%{summary}.
%package devel
Summary: Development files for %{name}
BuildArch: noarch
Provides: %{name}-static = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%autosetup -p1
%build
%cmake \
-Dglaze_INSTALL_CMAKEDIR=%{_datadir}/cmake/%{name} \
-Dglaze_DISABLE_SIMD_WHEN_SUPPORTED:BOOL=ON \
-Dglaze_DEVELOPER_MODE:BOOL=OFF \
-Dglaze_ENABLE_FUZZING:BOOL=OFF
%cmake_build
%install
%cmake_install
%files devel
%license LICENSE
%doc README.md
%{_datadir}/cmake/%{name}/
%{_includedir}/%{name}/
%changelog
%autochangelog