Introduce glaze-static package
Some checks failed
Build glaze / Build and push image (push) Failing after 1m25s
Some checks failed
Build glaze / Build and push image (push) Failing after 1m25s
This commit is contained in:
32
.gitea/workflows/build-glaze.yml
Normal file
32
.gitea/workflows/build-glaze.yml
Normal 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
46
glaze.spec
Normal 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
|
||||||
Reference in New Issue
Block a user