Skip to content

Commit

Permalink
smv: make glui optional
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOShannessy committed Dec 26, 2024
1 parent e8928c6 commit a07d56d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 34 deletions.
49 changes: 15 additions & 34 deletions .github/workflows/smv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,33 @@ on: [push, pull_request]
name: SMV

jobs:
build-rpm-rocky:
name: Build RPM Rocky
runs-on: ubuntu-latest
strategy:
matrix:
container:
- "rockylinux:9"
# - "fedora:39"
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: General update
run: dnf update -y --refresh
- name: Install prerequisites
run: dnf install -y git gcc g++ rpmdevtools make
- run: dnf install --enablerepo=devel -y json-c-devel
- run: dnf install -y cmake gd-devel freeglut-devel \
bash gd freeglut \
libXmu-devel glew-devel json-c-devel libXi-devel libX11-devel
- name: Build RPM
run: |
cd smv
bash ./buildrpm.sh
- uses: actions/upload-artifact@v4
with:
name: SMV-RPMs
path: |
dist/*.rpm
build-rpm-fedora:
build-rpm:
name: Build RPM Fedora
runs-on: ubuntu-latest
strategy:
matrix:
container:
# - "rockylinux:9"
- "rockylinux:9"
- "fedora:39"
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: General update
run: dnf update -y --refresh
- name: Install prerequisites
- name: Install basic build prerequisites
run: dnf install -y git gcc g++ rpmdevtools make
- run: dnf install -y cmake gd-devel freeglut-devel \
glui-devel bash gd freeglut glui \
libXmu-devel glew-devel json-c-devel libXi-devel libX11-devel
- name: Install lib prerequisites
run: dnf install -y cmake gd-devel freeglut-devel \
bash gd freeglut libXmu-devel glew-devel \
libXi-devel libX11-devel
- name: Install json-c-devel
run: |
if [ "${{ matrix.container }}" = "rockylinux:9" ]
then
dnf install --enablerepo=devel -y json-c-devel
else
dnf install -y json-c-devel
fi
- name: Build RPM
run: |
cd smv
Expand Down
6 changes: 6 additions & 0 deletions smv/smokeview.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%bcond_with glui

Name: smokeview
Version: 6.8.0
Release: 1%{?dist}
Expand All @@ -12,14 +14,18 @@ Url: https://github.com/JakeOShannessy/smv
BuildRequires: cmake
BuildRequires: gd-devel
BuildRequires: freeglut-devel
%if %{with glui}
BuildRequires: glui-devel
%endif
BuildRequires: libXmu-devel
BuildRequires: glew-devel
BuildRequires: json-c-devel

Requires: gd
Requires: freeglut
%if %{with glui}
Requires: glui
%endif
Requires: libXmu
Requires: json-c

Expand Down

0 comments on commit a07d56d

Please sign in to comment.