* Add CMake option to disable install of Dear ImGui's headers - Don't install imgui headers but add imgui as dependency OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/imtui?expand=0&rev=2
64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package imtui
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: imtui
|
|
Version: 1.0.5
|
|
Release: 0
|
|
Summary: ImTui is an immediate mode text-based user interface library
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://imtui.ggerganov.com/
|
|
Source: https://github.com/ggerganov/imtui/releases/download/v%{version}/imtui-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: imgui-devel
|
|
BuildRequires: pcre2-devel
|
|
|
|
%description
|
|
ImTui is an immediate mode text-based user interface library. Supports 256 ANSI colors and mouse/keyboard input.
|
|
|
|
%package devel
|
|
Summary: Development files for ImTui
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libstrophe0 = %{version}
|
|
|
|
%description devel
|
|
Development files and headers for imtui.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake -DBUILD_SHARED_LIBS=1 -DIMTUI_INSTALL_IMGUI_HEADERS=OFF
|
|
%make_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%files devel
|
|
%{_includedir}/imtui
|
|
%{_libdir}/*.so
|
|
|
|
%changelog
|