diff --git a/.gitignore b/.gitignore index 4f63d46..685b39c 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /mangohud-0.6.6.tar.gz /mangohud-0.6.7.tar.gz /mangohud-0.6.7.1.tar.gz +/mangohud-0.6.8.tar.gz diff --git a/mangohud.spec b/mangohud.spec index 0600f4d..68372cf 100644 --- a/mangohud.spec +++ b/mangohud.spec @@ -4,31 +4,33 @@ %global imgui_wrap_ver 1 Name: mangohud -Version: 0.6.7.1 +Version: 0.6.8 Release: %autorelease Summary: Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more License: MIT URL: https://github.com/flightlessmango/MangoHud -Source0: %{url}/archive/v0.6.7-1/%{name}-%{version}.tar.gz +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/ocornut/imgui/archive/v%{imgui_ver}/imgui-%{imgui_ver}.tar.gz Source2: https://wrapdb.mesonbuild.com/v1/projects/imgui/%{imgui_ver}/%{imgui_wrap_ver}/get_zip#/imgui-%{imgui_ver}-%{imgui_wrap_ver}-wrap.zip +BuildRequires: appstream BuildRequires: dbus-devel -BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: glew-devel BuildRequires: glfw-devel BuildRequires: glslang-devel +BuildRequires: libappstream-glib BuildRequires: mesa-libGL-devel -BuildRequires: meson +BuildRequires: meson >= 0.60 BuildRequires: python3-mako BuildRequires: spdlog-devel BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(x11) +Requires: hicolor-icon-theme Requires: vulkan-loader%{?_isa} Recommends: (mangohud(x86-32) if glibc(x86-32)) @@ -37,19 +39,21 @@ Suggests: goverlay Provides: bundled(imgui) = %{imgui_ver} -%description +%global _description %{expand: A modification of the Mesa Vulkan overlay. Including GUI improvements, temperature reporting, and logging capabilities. To install GUI front-end: - sudo dnf install goverlay + # dnf install goverlay} + +%description %{_description} %prep -%autosetup -n %{appname}-0.6.7-1 -p1 -%autosetup -n %{appname}-0.6.7-1 -DTa1 -%autosetup -n %{appname}-0.6.7-1 -DTa2 +%autosetup -n %{appname}-%{version} -p1 +%autosetup -n %{appname}-%{version} -DTa1 +%autosetup -n %{appname}-%{version} -DTa2 mkdir subprojects/imgui mv imgui-%{imgui_ver}/* subprojects/imgui/ @@ -57,6 +61,7 @@ mv imgui-%{imgui_ver}/* subprojects/imgui/ %build %meson \ + -Dinclude_doc=true \ -Duse_system_spdlog=enabled \ -Duse_system_vulkan=enabled \ -Dwith_xnvctrl=disabled \ @@ -68,14 +73,21 @@ mv imgui-%{imgui_ver}/* subprojects/imgui/ %meson_install +%check +# https://github.com/flightlessmango/MangoHud/issues/812 +%dnl appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml + + %files %license LICENSE -%doc README.md bin/%{appname}.conf +%doc README.md %{_bindir}/%{name}* +%{_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 diff --git a/sources b/sources index 544261f..44be917 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (imgui-1.81.tar.gz) = d7a2b66dea77359f78068a595607d7668e09ddd0b91910f67fc6463cb920b91b0cc1855984bd4d41e6a880b69ca7cd5e3adc064dcf461c0629b9f8c845a4fc3e -SHA512 (mangohud-0.6.7.1.tar.gz) = 7d5250cc6a50215430cc79c7d11ad18219be374966383ab3f6cba9626fa045c973245d74bc32d75649adebf0fdc7acd086f5afdf5e1708e35da1f7a920a54f1d +SHA512 (mangohud-0.6.8.tar.gz) = c2344c21dedebce0c56e88db476177eef29bab9e418a3c5ba13d1059d81f3ee23718e2f9257e32f9f62dcaf6554c65cbf36dac691b2bb3c355def2c9de0a52cc SHA512 (imgui-1.81-1-wrap.zip) = c97fa4cb5ab31c040951e6da04bb1b9659f0105adf54becc35c60ad376c6d4f9e4dcd2a5a554dc5430cfc69527ef5d8570f39fbbf91a23d15f51740f06fb7c3c