From 6ed1edf7075f17dab397796708c916a47ab705cf Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 20 Jul 2024 16:06:10 +0800 Subject: [PATCH] Update tracy.spec Signed-off-by: madomado --- anda/misc/tracy/tracy.spec | 53 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/anda/misc/tracy/tracy.spec b/anda/misc/tracy/tracy.spec index 0421cc1d24..e2111d3b4d 100644 --- a/anda/misc/tracy/tracy.spec +++ b/anda/misc/tracy/tracy.spec @@ -1,4 +1,4 @@ -%define debug_package %nil +%global _desc Tracy is a real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications. Name: tracy Version: 0.10 @@ -11,18 +11,67 @@ BuildRequires: cmake meson gcc gcc-c++ libxkbcommon dbus-devel libglvnd glfw-de Patch: https://github.com/wolfpld/tracy/commit/1a971d867d6fa5bf6dc57d705dcbbc6020031e7a.patch %description -A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications. +%_desc + + +%package devel +Summary: Development files for the tracy package + +%description devel +%_desc +This package contains the development files for the tracy package. + %prep %autosetup -p1 + %build %meson %meson_build +%make_build -C capture/build/unix release +%make_build -C csvexport/build/unix release +%make_build -C import-chrome/build/unix release +%make_build -C library/unix release +%make_build -C profiler/build/unix release +%make_build -C update/build/unix release + %install %meson_install +install -Dm755 capture/build/unix/capture-release %buildroot%_bindir/tracy-capture +install -Dm755 csvexport/build/unix/csvexport-release %buildroot%_bindir/tracy-csvexport +install -Dm755 import-chrome/build/unix/import-chrome-release %buildroot%_bindir/tracy-import-chrome +install -Dm755 library/unix/libtracy-release.so %buildroot%_libdir/libtracy.so +install -Dm755 profiler/build/unix/Tracy-release %buildroot%_bindir/tracy +install -Dm755 update/build/unix/update-release %buildroot%_bindir/tracy-update + +install -Dm644 extra/desktop/tracy.desktop %buildroot%_datadir/applications/tracy.desktop +install -Dm644 icon/icon.svg %buildroot%_iconsdir/hicolor/scalable/apps/tracy.svg +install -Dm644 extra/desktop/application-tracy.xml %buildroot%_datadir/mime/packages/application-tracy.xml +install -Dm644 icon/application-tracy.svg %buildroot%_iconsdir/hicolor/scalable/apps/application-tracy.svg + + %files %license LICENSE %doc README.* +%_bindir/tracy +%_bindir/tracy-capture +%_bindir/tracy-csvexport +%_bindir/tracy-import-chrome +%_bindir/tracy-update +%_libdir/libtracy.so +%_datadir/applications/tracy.desktop +%_datadir/mime/packages/application-tracy.xml +%_iconsdir/hicolor/scalable/apps/tracy.svg +%_iconsdir/hicolor/scalable/apps/application-tracy.svg + + +%files devel +%_includedir/Tracy* +%_includedir/client/Tracy* +%_includedir/client/tracy* +%_includedir/common/Tracy* +%_includedir/common/tracy* +%_libdir/libtracy.a