|
|
210114d |
# LTO
|
|
|
210114d |
%global optflags %{optflags} -flto
|
|
|
210114d |
%global build_ldflags %{build_ldflags} -flto
|
|
|
210114d |
|
|
|
210114d |
# Git submodules
|
|
|
210114d |
# * ImGui
|
|
|
210114d |
%global commit1 6c1a73774dabd2be64f85543b1286e44632d1905
|
|
|
210114d |
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
210114d |
|
|
|
210114d |
%global appname MangoHud
|
|
|
210114d |
|
|
|
210114d |
Name: mangohud
|
|
|
210114d |
Version: 0.2.0
|
|
|
210114d |
Release: 11%{?dist}
|
|
|
210114d |
Summary: Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more
|
|
|
210114d |
|
|
|
210114d |
License: MIT
|
|
|
210114d |
URL: https://github.com/flightlessmango/MangoHud
|
|
|
210114d |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
210114d |
Source1: https://github.com/flightlessmango/ImGui/archive/%{commit1}/ImGui-%{shortcommit1}.tar.gz
|
|
|
210114d |
|
|
|
210114d |
BuildRequires: desktop-file-utils
|
|
|
210114d |
BuildRequires: gcc-c++
|
|
|
210114d |
BuildRequires: git-core
|
|
|
210114d |
BuildRequires: glslang-devel
|
|
|
210114d |
BuildRequires: mesa-libGL-devel
|
|
|
210114d |
BuildRequires: meson
|
|
|
210114d |
BuildRequires: python3-mako
|
|
|
210114d |
BuildRequires: pkgconfig(vulkan)
|
|
|
210114d |
BuildRequires: pkgconfig(x11)
|
|
|
210114d |
Requires: vulkan-loader%{?_isa}
|
|
|
210114d |
Provides: bundled(ImGui) = 0~git%{shortcommit1}
|
|
|
210114d |
|
|
|
210114d |
%description
|
|
|
210114d |
A modification of the Mesa Vulkan overlay. Including GUI improvements,
|
|
|
210114d |
temperature reporting, and logging capabilities.
|
|
|
210114d |
|
|
|
210114d |
|
|
|
210114d |
%prep
|
|
|
210114d |
%setup -n %{appname}-%{version} -q
|
|
|
210114d |
%setup -n %{appname}-%{version} -q -D -T -a1
|
|
|
210114d |
mv imgui-%{commit1}/* modules/ImGui/src/
|
|
|
210114d |
|
|
|
210114d |
|
|
|
210114d |
%build
|
|
|
210114d |
%meson -Duse_system_vulkan=enabled
|
|
|
210114d |
%meson_build
|
|
|
210114d |
|
|
|
210114d |
|
|
|
210114d |
%install
|
|
|
210114d |
%meson_install
|
|
|
210114d |
# Change default libdir path
|
|
|
210114d |
# * https://github.com/flightlessmango/MangoHud/issues/31
|
|
|
210114d |
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
210114d |
mv %{buildroot}%{_libdir}/lib%{appname}.so \
|
|
|
210114d |
%{buildroot}%{_libdir}/%{name}/
|
|
|
210114d |
sed -i 's|"library_path": "libMangoHud.so"|"library_path": "%{_libdir}/%{name}/libMangoHud.so"|' \
|
|
|
210114d |
%{buildroot}%{_datadir}/vulkan/implicit_layer.d/%{name}.json
|
|
|
210114d |
sed -i 's|"name": "MangoHud 64bit"|"name": "MangoHud %{_arch}"|' \
|
|
|
210114d |
%{buildroot}%{_datadir}/vulkan/implicit_layer.d/%{name}.json
|
|
|
210114d |
mv %{buildroot}%{_datadir}/vulkan/implicit_layer.d/%{name}.json \
|
|
|
210114d |
%{buildroot}%{_datadir}/vulkan/implicit_layer.d/%{name}.%{_arch}.json
|
|
|
210114d |
|
|
|
210114d |
|
|
|
210114d |
%files
|
|
|
210114d |
%license LICENSE
|
|
|
210114d |
%doc README.md bin/%{appname}.conf
|
|
|
210114d |
%{_libdir}/%{name}/
|
|
|
210114d |
%{_datadir}/vulkan/implicit_layer.d/%{name}*.json
|
|
|
210114d |
|
|
|
210114d |
|
|
|
210114d |
%changelog
|
|
|
210114d |
* Fri Feb 14 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.0-11
|
|
|
210114d |
- Initial package
|
|
|
210114d |
- Thanks for help with packaging to:
|
|
|
210114d |
gasinvein <gasinvein@gmail.com>
|
|
|
210114d |
Vitaly Zaitsev <vitaly@easycoding.org>
|