%global appname MangoHud %global imgui_ver 1.91.6 %global imgui_wrap_ver 2 %global implot_ver 0.16 %global implot_wrap_ver 2 %global vulkan_headers_ver 1.4.346 Name: mangohud Version: 0.8.3 Release: %autorelease Summary: Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. License: MIT URL: https://github.com/flightlessmango/MangoHud Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # imgui Source1: https://github.com/ocornut/imgui/archive/v%{imgui_ver}/imgui-%{imgui_ver}.tar.gz Source2: https://wrapdb.mesonbuild.com/v%{imgui_wrap_ver}/imgui_%{imgui_ver}-3/get_patch#/imgui-%{imgui_ver}-wrap.zip # vulkan-headers Source3: https://github.com/KhronosGroup/Vulkan-Headers/archive/v%{vulkan_headers_ver}/Vulkan-Headers-%{vulkan_headers_ver}.tar.gz # vulkan-utility-libraries Source4: https://github.com/KhronosGroup/Vulkan-Utility-Libraries/archive/v%{vulkan_headers_ver}/Vulkan-Utility-Libraries-%{vulkan_headers_ver}.tar.gz # implot Source5: https://github.com/epezent/implot/archive/v%{implot_ver}/implot-%{implot_ver}.tar.gz Source6: https://wrapdb.mesonbuild.com/v%{implot_wrap_ver}/implot_%{implot_ver}-1/get_patch#/implot-%{implot_ver}-wrap.zip BuildRequires: vulkan-headers BuildRequires: appstream BuildRequires: dbus-devel BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: libappstream-glib BuildRequires: libstdc++-static BuildRequires: meson >= 0.60 BuildRequires: python3-mako BuildRequires: pkgconfig(dri) BuildRequires: pkgconfig(glfw3) BuildRequires: pkgconfig(glslang) BuildRequires: pkgconfig(nlohmann_json) BuildRequires: pkgconfig(spdlog) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xkbcommon) Requires: hicolor-icon-theme Requires: vulkan-loader%{?_isa} Provides: bundled(imgui) = %{imgui_ver} Provides: bundled(vulkan-headers) = %{vulkan_headers_ver} %description %{summary} %prep %autosetup -n %{appname}-%{version} -p1 %setup -qn %{appname}-%{version} -D -T -a1 %setup -qn %{appname}-%{version} -D -T -a2 %setup -qn %{appname}-%{version} -D -T -a3 %setup -qn %{appname}-%{version} -D -T -a4 %setup -qn %{appname}-%{version} -D -T -a5 %setup -qn %{appname}-%{version} -D -T -a6 # imgui mv imgui-%{imgui_ver} subprojects/ # vulkan-headers mv Vulkan-Headers-%{vulkan_headers_ver} subprojects/ mv subprojects/packagefiles/vulkan-headers/meson.build subprojects/Vulkan-Headers-%{vulkan_headers_ver} # vulkan-utility-libraries mv Vulkan-Utility-Libraries-%{vulkan_headers_ver} subprojects/ mv subprojects/packagefiles/vulkan-utility-libraries/meson.build subprojects/Vulkan-Utility-Libraries-%{vulkan_headers_ver} # implot mv implot-%{implot_ver} subprojects/ %build %meson \ -Duse_system_spdlog=enabled \ -Dwith_xnvctrl=disabled \ -Dwith_x11=disabled \ -Dtests=disabled \ -Dmangoplot=disabled \ %meson_build %install %meson_install rm %{buildroot}%{_libdir}/libimgui.a %files %license LICENSE %doc README.md presets.conf.example %{_bindir}/mangohud %{_datadir}/icons/hicolor/scalable/*/*.svg %{_datadir}/vulkan/implicit_layer.d/*Mango*.json %{_docdir}/%{name}/%{appname}.conf.example %{_libdir}/%{name}/ %{_mandir}/man1/%{name}.1* %{_metainfodir}/*.metainfo.xml %changelog %autochangelog