File tracy.spec of Package tracy
#
# spec file for package tracy
#
# Copyright (c) 2026 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/
#
%global soname libTracyClient0_13_1
Name: tracy
Version: 0.13.1
Release: 0
Summary: A real time frame profiler
License: BSD-3-Clause
URL: https://github.com/wolfpld/tracy
Source0: tracy-%{version}.tar.gz
Patch1: 0001-fix-libraries-linkage.patch
Patch2: 0002-fix-libraries-installpath.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(capstone)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libdebuginfod)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(libzstd)
%description
A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %{soname}
Summary: <TODO>
Group: System/Libraries
%description -n %{soname}
<TODO>
%prep
%setup -q
%autopatch
%build
%cmake \
-DTRACY_LIBUNWIND_BACKTRACE=ON \
-DTRACY_DEBUGINFOD=ON \
-DDOWNLOAD_CAPSTONE=OFF \
-DDOWNLOAD_ZSTD=OFF \
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets -n %{soname}
%files
%license LICENSE
%doc README.md
%files devel
%{_includedir}/tracy/
%{_libdir}/cmake/Tracy/
%{_libdir}/libTracyClient.so
%files -n %{soname}
%license LICENSE
%{_libdir}/libTracyClient.so.*
%changelog