Accepting request 853280 from home:Mailaender:branches:devel:libraries:c_c++

fixed the build; candidate for unbundling in upstream projects

OBS-URL: https://build.opensuse.org/request/show/853280
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/imgui?expand=0&rev=1
This commit is contained in:
Marcus Meissner 2020-12-05 17:09:45 +00:00 committed by Git OBS Bridge
commit dd5a61223b
5 changed files with 104 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

10
imgui.changes Normal file
View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Sat Dec 5 15:36:53 UTC 2020 - Matthias Mailänder <mailaender@opensuse.org>
- update to 1.79
-------------------------------------------------------------------
Thu Mar 16 14:00:52 UTC 2017 - dmacvicar@suse.de
- initial package for 1.49

67
imgui.spec Normal file
View File

@ -0,0 +1,67 @@
#
# spec file for package imgui
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: imgui
Version: 1.79
Release: 0
Summary: Immediate Mode Graphical User interface for C++ with minimal dependencies
License: MIT
Group: System/Libraries
URL: https://github.com/ocornut/imgui
Source: https://github.com/ocornut/imgui/archive/v%{version}.tar.gz
BuildRequires: c++_compiler
BuildRequires: make
%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 devel
Summary: Development files for ImGui
Group: Development/Libraries/C and C++
%description 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
%build
CXXFLAGS="%{optflags} -fPIC" make -C examples/example_null
cd examples/example_null
c++ -shared -o imgui.so imgui.o imgui_draw.o
%install
mkdir -p %{buildroot}%{_includedir}/imgui
cp *.h %{buildroot}%{_includedir}/imgui
install -Dm 0655 examples/example_null/imgui.so %{buildroot}%{_libdir}/imgui.so
%files
%doc docs/README.md docs/CHANGELOG.txt
%license LICENSE.txt
%files devel
%{_libdir}/imgui.so
%{_includedir}/imgui
%changelog

3
v1.79.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f1908501f6dc6db8a4d572c29259847f6f882684b10488d3a8d2da31744cd0a4
size 1299303