3 %bcond_without sysprofd # daemon to run UI without root permissions
5 Summary: Sampling CPU profiler for Linux
6 Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa
11 Group: Applications/System
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/sysprof/3.32/%{name}-%{version}.tar.xz
13 # Source0-md5: d1fa9ad216419d722770ca36713ad3af
14 URL: http://sysprof.com/
15 BuildRequires: appstream-glib-devel
16 # -std=gnu11 + C11 atomics
17 BuildRequires: gcc >= 6:4.9
18 BuildRequires: gdk-pixbuf2-devel >= 2.0
19 BuildRequires: gettext-tools >= 0.19.6
20 BuildRequires: glib2-devel >= 1:2.44.0
21 BuildRequires: gobject-introspection-devel >= 1.42.0
22 BuildRequires: gtk+3-devel >= 3.22
23 BuildRequires: libstdc++-devel >= 6:4.3
24 BuildRequires: pango-devel
25 BuildRequires: pkgconfig >= 1:0.22
26 %{?with_sysprofd:BuildRequires: polkit-devel}
27 BuildRequires: rpmbuild(macros) >= 1.644
28 %{?with_sysprofd:BuildRequires: systemd-devel >= 1:222}
29 BuildRequires: tar >= 1:1.22
32 BuildRequires: yelp-tools
33 Requires: %{name}-libs = %{version}-%{release}
34 %{?with_sysprofd:Requires: systemd-units >= 1:222}
35 Requires: uname(release) >= 2.6.31
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Sysprof is a sampling CPU profiler for Linux that uses a kernel module
40 to profile the entire system, not just a single application. Sysprof
41 handles shared libraries and applications do not need to be
42 recompiled. In fact they don't even have to be restarted.
44 Just insert the kernel module and start sysprof.
46 %description -l pl.UTF-8
47 Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący
48 moduł jądra do profilowania całego systemu, nie tylko pojedynczej
49 aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie
50 wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować.
52 Wystarczy załadować moduł jądra i uruchomić sysprof.
55 Summary: The sysprof profiler library
56 Summary(pl.UTF-8): Biblioteka profilera sysprof
58 Requires: glib2 >= 1:2.44.0
61 The sysprof profiler library.
63 %description libs -l pl.UTF-8
64 Biblioteka profilera sysprof.
67 Summary: Header files for sysprof library
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof
69 Group: Development/Libraries
70 Requires: %{name}-libs = %{version}-%{release}
71 Requires: glib2-devel >= 1:2.44.0
74 Header files for sysprof library.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki sysprof.
80 Summary: The sysprof graphical user interface
81 Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
82 Group: Applications/System
83 Requires(post,postun): desktop-file-utils
84 Requires(post,postun): glib2 >= 1:2.44.0
85 Requires(post,postun): gtk-update-icon-cache
86 Requires: %{name} = %{version}-%{release}
87 Requires: %{name}-ui-libs = %{version}-%{release}
88 Requires: hicolor-icon-theme
89 Requires: shared-mime-info
92 The sysprof graphical user interface.
94 %description ui -l pl.UTF-8
95 Graficzny interfejs użytkownika profilera sysprof.
98 Summary: The sysprof library containing reusable GTK+ widgets
99 Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
101 Requires: %{name}-libs = %{version}-%{release}
102 Requires: gtk+3 >= 3.22
105 The sysprof library containing reusable GTK+ widgets.
107 %description ui-libs -l pl.UTF-8
108 Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
111 Summary: Header files for sysprof-ui library
112 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof-ui
113 Group: X11/Development/Libraries
114 Requires: %{name}-devel = %{version}-%{release}
115 Requires: %{name}-ui-libs = %{version}-%{release}
116 Requires: gtk+3-devel >= 3.22
118 %description ui-devel
119 Header files for sysprof-ui library.
121 %description ui-devel -l pl.UTF-8
122 Pliki nagłówkowe biblioteki sysprof-ui.
129 %{?with_sysprofd:-Dwith_sysprofd=bundled}
131 %meson_build -C build
134 rm -rf $RPM_BUILD_ROOT
136 %meson_install -C build
138 %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo
142 rm -rf $RPM_BUILD_ROOT
146 %systemd_post sysprof2.service
149 %systemd_preun sysprof2.service
155 %post libs -p /sbin/ldconfig
156 %postun libs -p /sbin/ldconfig
159 %glib_compile_schemas
160 %update_icon_cache hicolor
161 %update_mime_database
162 %update_desktop_database
165 %glib_compile_schemas
166 %update_icon_cache hicolor
167 %update_mime_database
168 %update_desktop_database
170 %post ui-libs -p /sbin/ldconfig
171 %postun ui-libs -p /sbin/ldconfig
173 %files -f %{name}.lang
174 %defattr(644,root,root,755)
175 %doc AUTHORS NEWS TODO
176 %attr(755,root,root) %{_bindir}/sysprof-cli
178 %dir %{_libexecdir}/sysprof
179 %attr(755,root,root) %{_libexecdir}/sysprof/sysprofd
180 %{systemdunitdir}/sysprof2.service
181 %{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
182 %{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
183 %{_datadir}/polkit-1/actions/org.gnome.sysprof2.policy
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/libsysprof-2.so
191 %defattr(644,root,root,755)
192 %{_libdir}/libsysprof-capture-2.a
193 %dir %{_includedir}/sysprof-2
194 %{_includedir}/sysprof-2/sp-kallsyms.h
195 %{_includedir}/sysprof-2/sp-address.h
196 %{_includedir}/sysprof-2/sp-clock.h
197 %{_includedir}/sysprof-2/sp-error.h
198 %{_includedir}/sysprof-2/sysprof.h
199 %{_includedir}/sysprof-2/sysprof-capture.h
200 %{_includedir}/sysprof-2/sysprof-version.h
201 %dir %{_includedir}/sysprof-2/callgraph
202 %{_includedir}/sysprof-2/callgraph/sp-callgraph-profile.h
203 %dir %{_includedir}/sysprof-2/capture
204 %{_includedir}/sysprof-2/capture/sp-capture-condition.h
205 %{_includedir}/sysprof-2/capture/sp-capture-cursor.h
206 %{_includedir}/sysprof-2/capture/sp-capture-reader.h
207 %{_includedir}/sysprof-2/capture/sp-capture-types.h
208 %{_includedir}/sysprof-2/capture/sp-capture-writer.h
209 %dir %{_includedir}/sysprof-2/profiler
210 %{_includedir}/sysprof-2/profiler/sp-local-profiler.h
211 %{_includedir}/sysprof-2/profiler/sp-profile.h
212 %{_includedir}/sysprof-2/profiler/sp-profiler.h
213 %dir %{_includedir}/sysprof-2/sources
214 %{_includedir}/sysprof-2/sources/sp-gjs-source.h
215 %{_includedir}/sysprof-2/sources/sp-hostinfo-source.h
216 %{_includedir}/sysprof-2/sources/sp-memory-source.h
217 %{_includedir}/sysprof-2/sources/sp-perf-source.h
218 %{_includedir}/sysprof-2/sources/sp-proc-source.h
219 %{_includedir}/sysprof-2/sources/sp-source.h
220 %dir %{_includedir}/sysprof-2/symbols
221 %{_includedir}/sysprof-2/symbols/sp-elf-symbol-resolver.h
222 %{_includedir}/sysprof-2/symbols/sp-jitmap-symbol-resolver.h
223 %{_includedir}/sysprof-2/symbols/sp-kernel-symbol-resolver.h
224 %{_includedir}/sysprof-2/symbols/sp-kernel-symbol.h
225 %{_includedir}/sysprof-2/symbols/sp-symbol-dirs.h
226 %{_includedir}/sysprof-2/symbols/sp-symbol-resolver.h
227 %dir %{_includedir}/sysprof-2/util
228 %{_includedir}/sysprof-2/util/sp-map-lookaside.h
229 %{_includedir}/sysprof-2/util/sp-model-filter.h
230 %{_includedir}/sysprof-2/util/sp-process-model-item.h
231 %{_includedir}/sysprof-2/util/sp-process-model.h
232 %{_includedir}/sysprof-2/util/sp-selection.h
233 %{_includedir}/sysprof-2/util/sp-zoom-manager.h
234 %dir %{_includedir}/sysprof-2/visualizers
235 %{_includedir}/sysprof-2/visualizers/sp-mark-visualizer-row.h
236 %{_pkgconfigdir}/sysprof-2.pc
237 %{_pkgconfigdir}/sysprof-capture-2.pc
239 %files ui -f %{name}-ui.lang
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/sysprof
242 %{_datadir}/glib-2.0/schemas/org.gnome.sysprof2.gschema.xml
243 %{_datadir}/mime/packages/sysprof-mime.xml
244 %{_desktopdir}/org.gnome.Sysprof2.desktop
245 %{_iconsdir}/hicolor/scalable/apps/org.gnome.Sysprof.svg
246 %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Sysprof-symbolic.svg
247 %{_datadir}/metainfo/org.gnome.Sysprof2.appdata.xml
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/libsysprof-ui-2.so
254 %defattr(644,root,root,755)
255 %{_includedir}/sysprof-2/sysprof-ui.h
256 %{_pkgconfigdir}/sysprof-ui-2.pc
257 %{_includedir}/sysprof-2/callgraph/sp-callgraph-view.h
258 %dir %{_includedir}/sysprof-2/visualizers
259 %{_includedir}/sysprof-2/visualizers/sp-cpu-visualizer-row.h
260 %{_includedir}/sysprof-2/visualizers/sp-line-visualizer-row.h
261 %{_includedir}/sysprof-2/visualizers/sp-visualizer-row.h
262 %{_includedir}/sysprof-2/visualizers/sp-visualizer-view.h
263 %dir %{_includedir}/sysprof-2/widgets
264 %{_includedir}/sysprof-2/widgets/sp-cell-renderer-percent.h
265 %{_includedir}/sysprof-2/widgets/sp-empty-state-view.h
266 %{_includedir}/sysprof-2/widgets/sp-failed-state-view.h
267 %{_includedir}/sysprof-2/widgets/sp-multi-paned.h
268 %{_includedir}/sysprof-2/widgets/sp-process-model-row.h
269 %{_includedir}/sysprof-2/widgets/sp-profiler-menu-button.h
270 %{_includedir}/sysprof-2/widgets/sp-recording-state-view.h