Name: kcachegrind Summary: GUI to profilers such as Valgrind Version: 4.11.4 Release: 1%{?dist} License: GPLv2 and GFDL URL: https://projects.kde.org/projects/kde/kdesdk/kcachegrind %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: desktop-file-utils BuildRequires: kdelibs4-devel >= %{version} Conflicts: kdesdk-common < 4.10.80 Provides: kdesdk-kcachegrind = %{version}-%{release} Obsoletes: kdesdk-kcachegrind < 4.10.80 %description Browser for data produced by profiling tools (e.g. cachegrind) %prep %setup -q -n %{name}-%{version} %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang kcachegrind --with-kde --without-mo %check desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop %post touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: %posttrans gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-mime-database %{_kde4_datadir}/mime >& /dev/null ||: %postun if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-mime-database %{_kde4_datadir}/mime >& /dev/null ||: fi %files -f kcachegrind.lang %doc README COPYING COPYING.DOC %{_kde4_bindir}/kcachegrind %{_kde4_bindir}/dprof2calltree %{_kde4_bindir}/hotshot2calltree %{_kde4_bindir}/memprof2calltree %{_kde4_bindir}/op2calltree %{_kde4_bindir}/pprof2calltree %{_kde4_appsdir}/kcachegrind/ %{_kde4_datadir}/applications/kde4/kcachegrind.desktop %{_kde4_iconsdir}/hicolor/*/apps/kcachegrind.* %changelog * Fri Dec 13 2013 Rex Dieter - 4.11.4-1 - 4.11.4 * Sat Nov 02 2013 Rex Dieter - 4.11.3-1 - 4.11.3 * Sat Sep 28 2013 Rex Dieter - 4.11.2-1 - 4.11.2 * Wed Sep 04 2013 Rex Dieter - 4.11.1-1 - 4.11.1 * Wed Aug 14 2013 Jan Grulich - 4.11.0-1 - 4.11.0 * Wed Aug 07 2013 Jan Grulich - 4.10.97-1 - Split off from kdesdk package