File mingw64-imgui.spec of Package mingw64-imgui

#
# spec file for package mingw64-imgui
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define realname imgui
#
Name:           mingw64-%{realname}
Version:        1.84.2
Release:        0
Summary:        Immediate Mode Graphical User interface for C++ with minimal dependencies
License:        MIT
Group:          System/Libraries
URL:            https://www.dearimgui.org
Source:         https://github.com/ocornut/imgui/archive/v%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildArch:      noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}
#!BuildIgnore:  post-build-checks

%description
ImGui is a bloat-free graphical user interface library for C++. It outputs optimized vertex buffers that you can render anytime in your 3D-pipeline enabled application. It is fast, portable, renderer agnostic and self-contained (no external dependencies).

ImGui is designed to enable fast iteration and empower programmers to create content creation tools and visualization/ debug tools (as opposed to UI for the average end-user). It favors simplicity and productivity toward this goal, and thus lacks certain features normally found in more high-level libraries.

ImGui is particularly suited to integration in realtime 3D applications, fullscreen applications, embedded applications, games, or any applications on consoles platforms where operating system features are non-standard.

%package -n mingw64-%{realname}-devel
Summary:        Development files for ImGui
Group:          Development/Libraries/C and C++

%description -n mingw64-%{realname}-devel
ImGui is self-contained within a few files that you can easily copy and compile into your application/engine.

No specific build process is required. You can add the .cpp files to your project or #include them from an existing file.

%prep
%setup -q -n %{realname}-%{version}

%build

%install
install -d %{buildroot}%{_mingw64_includedir}/imgui
cp -v *.h %{buildroot}%{_mingw64_includedir}/imgui

%files -n mingw64-%{realname}-devel
%defattr(-,root,root)
%license LICENSE.txt
%doc docs/{BACKENDS.md,CHANGELOG.txt,EXAMPLES.md,FAQ.md,FONTS.md,README.md}
%{_mingw64_includedir}/imgui

%changelog
openSUSE Build Service is sponsored by