Warning, /sdk/kcachegrind/kcachegrind.spec.in is written in an unsupported language. File is not indexed.
0001 Summary: KDE Profiling Visualisation Tool 0002 Name: kcachegrind 0003 Version: ${KCACHEGRIND_VERSION} 0004 Release: 1 0005 Copyright: GPL 0006 Group: Development/Tools 0007 Vendor: (none) 0008 URL: https://kcachegrind.github.io 0009 Packager: Josef Weidendorfer <Josef.Weidendorfer@gmx.de> 0010 Source: kcachegrind-${KCACHEGRIND_VERSION}.tar.gz 0011 BuildRoot: /var/tmp/build 0012 0013 %description 0014 KCachegrind is a GPL'd tool for quick browsing in and visualisation 0015 of performance data of an application run. This data is produced by 0016 profiling tools and typically includes distribution of cost events 0017 to source code ranges (instructions, source lines, functions, C++ classes) 0018 and call relationship of functions. 0019 KCachegrind has a list of functions sorted according to different cost 0020 types, and can provide various performance views for a function like 0021 direct/indirect callers/callees, TreeMap visualisation of cost distribution 0022 among callees, call graph sectors centered around the function and 0023 annotated source/assembler. 0024 Currently, KCachegrind depends on data delivered by the profiling tool 0025 calltree, powered by the Valgrind runtime instrumentation framework. 0026 0027 %prep 0028 %setup 0029 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ 0030 \ 0031 $LOCALFLAGS 0032 %build 0033 # Setup for parallel builds 0034 numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :` 0035 if [ "$numprocs" = "0" ]; then 0036 numprocs=1 0037 fi 0038 0039 make -j$numprocs 0040 0041 %install 0042 make install-strip DESTDIR=$RPM_BUILD_ROOT 0043 0044 cd $RPM_BUILD_ROOT 0045 find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.kcachegrind 0046 find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kcachegrind 0047 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kcachegrind 0048 0049 %clean 0050 rm -rf $RPM_BUILD_ROOT/* 0051 rm -rf $RPM_BUILD_DIR/kcachegrind 0052 rm -rf ../file.list.kcachegrind 0053 0054 0055 %files -f ../file.list.kcachegrind