1 %define kdeappsver 21.12.3
2 %define kframever 5.56.0
4 %define kaname kcachegrind
6 Summary: KCachegrind - visualization of traces generated by profiling
7 Summary(pl.UTF-8): KCachegrind - wizualizacja ścieżek tworzonych przez profilowanie
12 Group: X11/Development/Tools
13 Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
14 # Source0-md5: 5420b03d936afa0427de439b5fdf47d9
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel
17 BuildRequires: Qt5DBus-devel
18 BuildRequires: Qt5Gui-devel
19 BuildRequires: Qt5Widgets-devel
20 BuildRequires: gettext-devel
21 BuildRequires: kf5-extra-cmake-modules >= %{kframever}
22 BuildRequires: kf5-karchive-devel >= %{kframever}
23 BuildRequires: kf5-kconfig-devel >= %{kframever}
24 BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
25 BuildRequires: kf5-kdoctools-devel >= %{kframever}
26 BuildRequires: kf5-ki18n-devel >= %{kframever}
27 BuildRequires: kf5-kio-devel >= %{kframever}
28 BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
29 BuildRequires: kf5-kxmlgui-devel >= %{kframever}
31 BuildRequires: rpmbuild(macros) >= 1.600
32 Suggests: %{name}-tools = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 KCachegrind visualizes traces generated by profiling.
38 %description -l pl.UTF-8
39 KCachegrind wizualizuje ślady tworzone przez profilowanie.
42 Summary: Tools to convert various profiling data to calltree format
43 Summary(pl.UTF-8): Narzędzia do konwersji różnych danych profilujących do formatu calltree
44 Group: Development/Tools
47 Tools to convert various profiling data to calltree format, used by
50 %description tools -l pl.UTF-8
51 Narzędzia do konwersji różnych danych profilujących do formatu
52 calltree, stosowanego przez narzędzia Valgrinda.
55 %setup -q -n %{kaname}-%{version}
62 -DHTML_INSTALL_DIR=%{_kdedocdir} \
63 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
68 rm -rf $RPM_BUILD_ROOT
69 %ninja_install -C build
71 find $RPM_BUILD_ROOT%{_bindir} -type f -exec sed -i -e 's#/usr/bin/env php#/usr/bin/php#' '{}' +
72 find $RPM_BUILD_ROOT%{_bindir} -type f -exec sed -i -e 's#/usr/bin/env python#/usr/bin/python2#' '{}' +
74 %find_lang %{kaname} --all-name --with-kde --with-qm
77 rm -rf $RPM_BUILD_ROOT
79 %files -f %{kaname}.lang
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_bindir}/kcachegrind
82 %{_desktopdir}/org.kde.kcachegrind.desktop
83 %{_iconsdir}/hicolor/128x128/apps/kcachegrind.png
84 %{_iconsdir}/hicolor/32x32/apps/kcachegrind.png
85 %{_iconsdir}/hicolor/48x48/apps/kcachegrind.png
86 %{_iconsdir}/hicolor/64x64/apps/kcachegrind.png
87 %dir %{_datadir}/kcachegrind
88 %dir %{_datadir}/kcachegrind/icons
89 %dir %{_datadir}/kcachegrind/icons/hicolor
90 %dir %{_datadir}/kcachegrind/icons/hicolor/16x16
91 %dir %{_datadir}/kcachegrind/icons/hicolor/16x16/actions
92 %{_datadir}/kcachegrind/icons/hicolor/16x16/actions/move.png
93 %{_datadir}/kcachegrind/icons/hicolor/16x16/actions/percent.png
94 %dir %{_datadir}/kcachegrind/icons/hicolor/22x22
95 %dir %{_datadir}/kcachegrind/icons/hicolor/22x22/actions
96 %{_datadir}/kcachegrind/icons/hicolor/22x22/actions/hidetemplates.png
97 %{_datadir}/kcachegrind/icons/hicolor/22x22/actions/move.png
98 %{_datadir}/kcachegrind/icons/hicolor/22x22/actions/percent.png
99 %dir %{_datadir}/kcachegrind/icons/hicolor/32x32
100 %dir %{_datadir}/kcachegrind/icons/hicolor/32x32/actions
101 %{_datadir}/kcachegrind/icons/hicolor/32x32/actions/percent.png
102 %{_datadir}/kcachegrind/tips
103 %{_datadir}/metainfo/org.kde.kcachegrind.appdata.xml
106 %defattr(644,root,root,755)
107 %doc converters/README
108 %attr(755,root,root) %{_bindir}/dprof2calltree
109 %attr(755,root,root) %{_bindir}/hotshot2calltree
110 %attr(755,root,root) %{_bindir}/memprof2calltree
111 %attr(755,root,root) %{_bindir}/op2calltree
112 %attr(755,root,root) %{_bindir}/pprof2calltree