File imgui.spec of Package imgui
Name: imgui
Version: 1.92.5
Release: %mkrel 1
Summary: Immediate Mode GUI library for C++
Group: Development/C++
License: MIT
URL: https://github.com/ocornut/imgui
Source0: imgui-%{version}.tar.gz
BuildArch: noarch
# No build dependencies needed — header-only
BuildRequires: cmake
%description
Dear ImGui is a bloat-free graphical user interface library for C++. It outputs
vertex buffers that you can render in your own engine. It is fast, portable,
and self-contained. This package provides the headers and sources for ImGui.
%prep
%setup -q -n imgui-%{version}
%build
# Nothing to build — header-only
%install
mkdir -p %{buildroot}%{_includedir}/imgui
cp -a *.h %{buildroot}%{_includedir}/imgui/
cp -a backends %{buildroot}%{_includedir}/imgui/
# Provide a pkgconfig file for Meson-based consumers (like MangoHud)
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat > %{buildroot}%{_libdir}/pkgconfig/imgui.pc << 'EOF'
prefix=/usr
includedir=${prefix}/include
Name: imgui
Description: Immediate Mode GUI library for C++
Version: %{version}
Cflags: -I${includedir}/imgui
EOF
%files
%license LICENSE.txt
%doc docs/README.md
%{_includedir}/imgui
%{_libdir}/pkgconfig/imgui.pc
%changelog
* Sat Dec 13 2025 Henrik <henrik@example.com> - 1.92.5-1
- Initial packaging of imgui 1.92.5 for MangoHud