3 %bcond_with sysprofd # daemon to run UI without root permissions [requires systemd >= 222]
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.24/%{name}-%{version}.tar.xz
13 # Source0-md5: 2b44ae1d8cd899417294a9c4509d7870
14 Patch0: %{name}-pc.patch
15 URL: http://sysprof.com/
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.0
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: Static sysprof library
81 Summary(pl.UTF-8): Statyczna biblioteka sysprof
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
86 Static sysprof library.
88 %description static -l pl.UTF-8
89 Statyczna biblioteka sysprof.
92 Summary: The sysprof graphical user interface
93 Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
94 Group: Applications/System
95 Requires(post,postun): desktop-file-utils
96 Requires(post,postun): glib2 >= 1:2.44.0
97 Requires(post,postun): gtk-update-icon-cache
98 Requires: %{name} = %{version}-%{release}
99 Requires: %{name}-ui-libs = %{version}-%{release}
100 Requires: hicolor-icon-theme
101 Requires: shared-mime-info
104 The sysprof graphical user interface.
106 %description ui -l pl.UTF-8
107 Graficzny interfejs użytkownika profilera sysprof.
110 Summary: The sysprof library containing reusable GTK+ widgets
111 Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
113 Requires: %{name}-libs = %{version}-%{release}
114 Requires: gtk+3 >= 3.22
117 The sysprof library containing reusable GTK+ widgets.
119 %description ui-libs -l pl.UTF-8
120 Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
123 Summary: Header files for sysprof-ui library
124 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof-ui
125 Group: X11/Development/Libraries
126 Requires: %{name}-devel = %{version}-%{release}
127 Requires: %{name}-ui-libs = %{version}-%{release}
128 Requires: gtk+3-devel >= 3.22
130 %description ui-devel
131 Header files for sysprof-ui library.
133 %description ui-devel -l pl.UTF-8
134 Pliki nagłówkowe biblioteki sysprof-ui.
137 Summary: Static sysprof-ui library
138 Summary(pl.UTF-8): Statyczna biblioteka sysprof-ui
139 Group: X11/Development/Libraries
140 Requires: %{name}-ui-devel = %{version}-%{release}
142 %description ui-static
143 Static sysprof-ui library.
145 %description ui-static -l pl.UTF-8
146 Statyczna biblioteka sysprof-ui.
154 --disable-schemas-compile \
155 --disable-silent-rules \
156 %{?with_sysprofd:--with-sysprofd}
160 rm -rf $RPM_BUILD_ROOT
163 DESTDIR=$RPM_BUILD_ROOT
165 # obsoleted by pkg-config
166 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsysprof-*.la
168 %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo
172 rm -rf $RPM_BUILD_ROOT
176 %systemd_post sysprof2.service
179 %systemd_preun sysprof2.service
185 %post libs -p /sbin/ldconfig
186 %postun libs -p /sbin/ldconfig
189 %glib_compile_schemas
190 %update_icon_cache hicolor
191 %update_mime_database
192 %update_desktop_database
195 %glib_compile_schemas
196 %update_icon_cache hicolor
197 %update_mime_database
198 %update_desktop_database
200 %post ui-libs -p /sbin/ldconfig
201 %postun ui-libs -p /sbin/ldconfig
203 %files -f %{name}.lang
204 %defattr(644,root,root,755)
205 %doc AUTHORS ChangeLog NEWS README TODO
206 %attr(755,root,root) %{_bindir}/sysprof-cli
208 %dir %{_libexecdir}/sysprof
209 %attr(755,root,root) %{_libexecdir}/sysprof/sysprofd
210 %{systemdunitdir}/sysprof2.service
211 %{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
212 %{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
213 %{_datadir}/polkit-1/actions/org.gnome.sysprof2.policy
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libsysprof-2.so
221 %defattr(644,root,root,755)
222 %dir %{_includedir}/sysprof-2
223 %{_includedir}/sysprof-2/sp-address.h
224 %{_includedir}/sysprof-2/sp-callgraph-profile.h
225 %{_includedir}/sysprof-2/sp-capture-*.h
226 %{_includedir}/sysprof-2/sp-clock.h
227 %{_includedir}/sysprof-2/sp-elf-symbol-resolver.h
228 %{_includedir}/sysprof-2/sp-error.h
229 %{_includedir}/sysprof-2/sp-gjs-source.h
230 %{_includedir}/sysprof-2/sp-hostinfo-source.h
231 %{_includedir}/sysprof-2/sp-jitmap-symbol-resolver.h
232 %{_includedir}/sysprof-2/sp-kernel-symbol.h
233 %{_includedir}/sysprof-2/sp-kernel-symbol-resolver.h
234 %{_includedir}/sysprof-2/sp-local-profiler.h
235 %{_includedir}/sysprof-2/sp-map-lookaside.h
236 %{_includedir}/sysprof-2/sp-model-filter.h
237 %{_includedir}/sysprof-2/sp-perf-source.h
238 %{_includedir}/sysprof-2/sp-proc-source.h
239 %{_includedir}/sysprof-2/sp-process-model.h
240 %{_includedir}/sysprof-2/sp-process-model-item.h
241 %{_includedir}/sysprof-2/sp-profile.h
242 %{_includedir}/sysprof-2/sp-profiler.h
243 %{_includedir}/sysprof-2/sp-selection.h
244 %{_includedir}/sysprof-2/sp-source.h
245 %{_includedir}/sysprof-2/sp-symbol-dirs.h
246 %{_includedir}/sysprof-2/sp-symbol-resolver.h
247 %{_includedir}/sysprof-2/sp-zoom-manager.h
248 %{_includedir}/sysprof-2/sysprof.h
249 %{_includedir}/sysprof-2/sysprof-version.h
250 %{_pkgconfigdir}/sysprof-2.pc
253 %defattr(644,root,root,755)
254 %{_libdir}/libsysprof-2.a
256 %files ui -f %{name}-ui.lang
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_bindir}/sysprof
259 %{_datadir}/glib-2.0/schemas/org.gnome.sysprof2.gschema.xml
260 %{_datadir}/mime/packages/sysprof-mime.xml
261 %{_desktopdir}/org.gnome.Sysprof2.desktop
262 %{_iconsdir}/hicolor/*x*/apps/sysprof.png
263 %{_iconsdir}/hicolor/scalable/apps/sysprof-symbolic.svg
264 %{_datadir}/appdata/org.gnome.Sysprof2.appdata.xml
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libsysprof-ui-2.so
271 %defattr(644,root,root,755)
272 %{_includedir}/sysprof-2/sp-callgraph-view.h
273 %{_includedir}/sysprof-2/sp-cell-renderer-percent.h
274 %{_includedir}/sysprof-2/sp-cpu-visualizer-row.h
275 %{_includedir}/sysprof-2/sp-empty-state-view.h
276 %{_includedir}/sysprof-2/sp-failed-state-view.h
277 %{_includedir}/sysprof-2/sp-line-visualizer-row.h
278 %{_includedir}/sysprof-2/sp-multi-paned.h
279 %{_includedir}/sysprof-2/sp-process-model-row.h
280 %{_includedir}/sysprof-2/sp-profiler-menu-button.h
281 %{_includedir}/sysprof-2/sp-recording-state-view.h
282 %{_includedir}/sysprof-2/sp-visualizer-*.h
283 %{_includedir}/sysprof-2/sysprof-ui.h
284 %{_pkgconfigdir}/sysprof-ui-2.pc
287 %defattr(644,root,root,755)
288 %{_libdir}/libsysprof-ui-2.a