Blame mangohud.spec

210114d
# LTO
210114d
%global optflags        %{optflags} -flto
210114d
%global build_ldflags   %{build_ldflags} -flto
210114d
210114d
# Git submodules
210114d
# * ImGui
abb77ad
%global commit1         1f02d240b38f445abb0381ade0867752d5d2bc7b
210114d
%global shortcommit1    %(c=%{commit1}; echo ${c:0:7})
210114d
210114d
%global appname MangoHud
210114d
210114d
Name:           mangohud
abb77ad
Version:        0.3.5
abb77ad
Release:        1%{?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
abb77ad
BuildRequires:  dbus-devel
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)
cf89a8d
210114d
Requires:       vulkan-loader%{?_isa}
cf89a8d
89b43ff
Suggests:       goverlay
89b43ff
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
89b43ff
To install GUI front-end:
89b43ff
89b43ff
  sudo dnf install goverlay
89b43ff
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
abb77ad
%meson \
abb77ad
    -Duse_system_vulkan=enabled \
abb77ad
    -Dwith_xnvctrl=disabled
210114d
%meson_build
210114d
210114d
210114d
%install
210114d
%meson_install
210114d
210114d
210114d
%files
210114d
%license LICENSE
210114d
%doc README.md bin/%{appname}.conf
e865121
%{_bindir}/%{name}*
cf89a8d
%{_datadir}/vulkan/implicit_layer.d/%{appname}*.json
cf89a8d
%{_docdir}/%{name}/%{appname}.conf.example
210114d
%{_libdir}/%{name}/
210114d
210114d
210114d
%changelog
abb77ad
* Sat May 02 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.3.5-1
abb77ad
- Update to 0.3.5
abb77ad
- Remove ExclusiveArch. Now compiles on all arches, see GitHub#88.
abb77ad
89b43ff
* Thu Mar 26 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.3.1-2
89b43ff
- Add GUI fron-end 'goverlay' as very weak dep
89b43ff
76912c0
* Wed Mar 18 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.3.1-1
76912c0
- Update to 0.3.1
76912c0
cf89a8d
* Sun Mar 15 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.3.0-1
cf89a8d
- Update to 0.3.0
cf89a8d
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>