Skip to content

Commit

Permalink
update smokeview.spec to improve paths
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOShannessy committed Dec 26, 2024
1 parent ee07070 commit 5937d79
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions smv/smokeview.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,54 @@ Version: 6.8.0
Release: 1%{?dist}
Summary: Smokeview

%global commit 24bb184dacf75626399537772460477597d2443a
%global bot_commit 2cafc15b8a2797df0ff8fe3f64ab44c1719b5db5
%global commit f8261d0de9c79fd81178a980b2c4f764c1c2f2fa

License: AllRightsReserved
Source0: https://github.com/firemodels/smv/archive/%{commit}.zip
Source1: https://github.com/firemodels/bot/archive/%{bot_commit}.zip
Url: https://github.com/firemodels/smv
Source0: https://github.com/JakeOShannessy/smv/archive/%{commit}.zip
Url: https://github.com/JakeOShannessy/smv

BuildRequires: cmake, gd-devel, freeglut-devel, glui-devel, libXmu-devel, lua-devel, glew-devel
Requires: bash
Requires: lua-filesystem
Requires: lua
Requires: gd, freeglut, glui, libXmu
BuildRequires: cmake
BuildRequires: gd-devel
BuildRequires: freeglut-devel
BuildRequires: glui-devel
BuildRequires: libXmu-devel
BuildRequires: glew-devel

Requires: gd
Requires: freeglut
Requires: glui
Requires: libXmu

%description
A post-processor for FDS (Fire Dynamics Simulator).

%prep
%setup -n smv-%{commit} -a 1
%setup -n smv-%{commit}

%build
%cmake -DLUA=ON -DGLUI=ON
%cmake -DGLUI=ON -DSMV_ROOT_OVERRIDE=/usr/etc/smokeview/
%cmake_build

%global for_bundle bot-%{bot_commit}/Bundlebot/smv/for_bundle

%install
%cmake_install
install -D -m 644 %{for_bundle}/smokeview.ini %{buildroot}/%{_sysconfdir}/smokeview/smokeview.ini
install -D -m 644 %{for_bundle}/objects.svo %{buildroot}/%{_sysconfdir}/smokeview/objects.svo

%files
%license LICENSE.md
%{_bindir}/smokeview
%{_bindir}/smokezip
%{_bindir}/smokediff
%{_datadir}/smokeview/*.lua
%config(noreplace) %{_sysconfdir}/smokeview/smokeview.ini
%config(noreplace) %{_sysconfdir}/smokeview/objects.svo
%{_bindir}/smvq
%{_bindir}/background
%{_bindir}/get_time
%{_bindir}/timep
%{_bindir}/wind2fds
%{_bindir}/flush

%{_libdir}/libglut32.so
%{_libdir}/libjsonrpc.so

%config(noreplace) /usr/etc/smokeview/smokeview.ini
%config(noreplace) /usr/etc/smokeview/objects.svo

%changelog
* Wed Jun 07 2023 Jake O'Shannessy <[email protected]> - %{version}-1
Expand Down

0 comments on commit 5937d79

Please sign in to comment.