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.24/%{name}-%{version}.tar.xz
13 # Source0-md5: 2b44ae1d8cd899417294a9c4509d7870
14 Patch0: %{name}-pc.patch
15 URL: http://sysprof.com/
16 BuildRequires: appstream-glib-devel
17 # -std=gnu11 + C11 atomics
18 BuildRequires: gcc >= 6:4.9
19 BuildRequires: gdk-pixbuf2-devel >= 2.0
20 BuildRequires: gettext-tools >= 0.19.6
21 BuildRequires: glib2-devel >= 1:2.44.0
22 BuildRequires: gobject-introspection-devel >= 1.42.0
23 BuildRequires: gtk+3-devel >= 3.22
24 BuildRequires: libstdc++-devel >= 6:4.3
25 BuildRequires: pango-devel
26 BuildRequires: pkgconfig >= 1:0.22
27 %{?with_sysprofd:BuildRequires: polkit-devel}
28 BuildRequires: rpmbuild(macros) >= 1.644
29 %{?with_sysprofd:BuildRequires: systemd-devel >= 1:222}
30 BuildRequires: tar >= 1:1.22
33 BuildRequires: yelp-tools
34 Requires: %{name}-libs = %{version}-%{release}
35 %{?with_sysprofd:Requires: systemd-units >= 1:222}
36 Requires: uname(release) >= 2.6.31
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Sysprof is a sampling CPU profiler for Linux that uses a kernel module
41 to profile the entire system, not just a single application. Sysprof
42 handles shared libraries and applications do not need to be
43 recompiled. In fact they don't even have to be restarted.
45 Just insert the kernel module and start sysprof.
47 %description -l pl.UTF-8
48 Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący
49 moduł jądra do profilowania całego systemu, nie tylko pojedynczej
50 aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie
51 wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować.
53 Wystarczy załadować moduł jądra i uruchomić sysprof.
56 Summary: The sysprof profiler library
57 Summary(pl.UTF-8): Biblioteka profilera sysprof
59 Requires: glib2 >= 1:2.44.0
62 The sysprof profiler library.
64 %description libs -l pl.UTF-8
65 Biblioteka profilera sysprof.
68 Summary: Header files for sysprof library
69 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof
70 Group: Development/Libraries
71 Requires: %{name}-libs = %{version}-%{release}
72 Requires: glib2-devel >= 1:2.44.0
75 Header files for sysprof library.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki sysprof.
81 Summary: Static sysprof library
82 Summary(pl.UTF-8): Statyczna biblioteka sysprof
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 Static sysprof library.
89 %description static -l pl.UTF-8
90 Statyczna biblioteka sysprof.
93 Summary: The sysprof graphical user interface
94 Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
95 Group: Applications/System
96 Requires(post,postun): desktop-file-utils
97 Requires(post,postun): glib2 >= 1:2.44.0
98 Requires(post,postun): gtk-update-icon-cache
99 Requires: %{name} = %{version}-%{release}
100 Requires: %{name}-ui-libs = %{version}-%{release}
101 Requires: hicolor-icon-theme
102 Requires: shared-mime-info
105 The sysprof graphical user interface.
107 %description ui -l pl.UTF-8
108 Graficzny interfejs użytkownika profilera sysprof.
111 Summary: The sysprof library containing reusable GTK+ widgets
112 Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
114 Requires: %{name}-libs = %{version}-%{release}
115 Requires: gtk+3 >= 3.22
118 The sysprof library containing reusable GTK+ widgets.
120 %description ui-libs -l pl.UTF-8
121 Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
124 Summary: Header files for sysprof-ui library
125 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof-ui
126 Group: X11/Development/Libraries
127 Requires: %{name}-devel = %{version}-%{release}
128 Requires: %{name}-ui-libs = %{version}-%{release}
129 Requires: gtk+3-devel >= 3.22
131 %description ui-devel
132 Header files for sysprof-ui library.
134 %description ui-devel -l pl.UTF-8
135 Pliki nagłówkowe biblioteki sysprof-ui.
138 Summary: Static sysprof-ui library
139 Summary(pl.UTF-8): Statyczna biblioteka sysprof-ui
140 Group: X11/Development/Libraries
141 Requires: %{name}-ui-devel = %{version}-%{release}
143 %description ui-static
144 Static sysprof-ui library.
146 %description ui-static -l pl.UTF-8
147 Statyczna biblioteka sysprof-ui.
155 --disable-schemas-compile \
156 --disable-silent-rules \
157 %{?with_sysprofd:--with-sysprofd=bundled}
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT
166 # obsoleted by pkg-config
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsysprof-*.la
169 %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo
173 rm -rf $RPM_BUILD_ROOT
177 %systemd_post sysprof2.service
180 %systemd_preun sysprof2.service
186 %post libs -p /sbin/ldconfig
187 %postun libs -p /sbin/ldconfig
190 %glib_compile_schemas
191 %update_icon_cache hicolor
192 %update_mime_database
193 %update_desktop_database
196 %glib_compile_schemas
197 %update_icon_cache hicolor
198 %update_mime_database
199 %update_desktop_database
201 %post ui-libs -p /sbin/ldconfig
202 %postun ui-libs -p /sbin/ldconfig
204 %files -f %{name}.lang
205 %defattr(644,root,root,755)
206 %doc AUTHORS ChangeLog NEWS README TODO
207 %attr(755,root,root) %{_bindir}/sysprof-cli
209 %dir %{_libexecdir}/sysprof
210 %attr(755,root,root) %{_libexecdir}/sysprof/sysprofd
211 %{systemdunitdir}/sysprof2.service
212 %{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
213 %{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
214 %{_datadir}/polkit-1/actions/org.gnome.sysprof2.policy
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libsysprof-2.so
222 %defattr(644,root,root,755)
223 %dir %{_includedir}/sysprof-2
224 %{_includedir}/sysprof-2/sp-address.h
225 %{_includedir}/sysprof-2/sp-callgraph-profile.h
226 %{_includedir}/sysprof-2/sp-capture-*.h
227 %{_includedir}/sysprof-2/sp-clock.h
228 %{_includedir}/sysprof-2/sp-elf-symbol-resolver.h
229 %{_includedir}/sysprof-2/sp-error.h
230 %{_includedir}/sysprof-2/sp-gjs-source.h
231 %{_includedir}/sysprof-2/sp-hostinfo-source.h
232 %{_includedir}/sysprof-2/sp-jitmap-symbol-resolver.h
233 %{_includedir}/sysprof-2/sp-kernel-symbol.h
234 %{_includedir}/sysprof-2/sp-kernel-symbol-resolver.h
235 %{_includedir}/sysprof-2/sp-local-profiler.h
236 %{_includedir}/sysprof-2/sp-map-lookaside.h
237 %{_includedir}/sysprof-2/sp-model-filter.h
238 %{_includedir}/sysprof-2/sp-perf-source.h
239 %{_includedir}/sysprof-2/sp-proc-source.h
240 %{_includedir}/sysprof-2/sp-process-model.h
241 %{_includedir}/sysprof-2/sp-process-model-item.h
242 %{_includedir}/sysprof-2/sp-profile.h
243 %{_includedir}/sysprof-2/sp-profiler.h
244 %{_includedir}/sysprof-2/sp-selection.h
245 %{_includedir}/sysprof-2/sp-source.h
246 %{_includedir}/sysprof-2/sp-symbol-dirs.h
247 %{_includedir}/sysprof-2/sp-symbol-resolver.h
248 %{_includedir}/sysprof-2/sp-zoom-manager.h
249 %{_includedir}/sysprof-2/sysprof.h
250 %{_includedir}/sysprof-2/sysprof-version.h
251 %{_pkgconfigdir}/sysprof-2.pc
254 %defattr(644,root,root,755)
255 %{_libdir}/libsysprof-2.a
257 %files ui -f %{name}-ui.lang
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_bindir}/sysprof
260 %{_datadir}/glib-2.0/schemas/org.gnome.sysprof2.gschema.xml
261 %{_datadir}/mime/packages/sysprof-mime.xml
262 %{_desktopdir}/org.gnome.Sysprof2.desktop
263 %{_iconsdir}/hicolor/*x*/apps/sysprof.png
264 %{_iconsdir}/hicolor/scalable/apps/sysprof-symbolic.svg
265 %{_datadir}/appdata/org.gnome.Sysprof2.appdata.xml
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libsysprof-ui-2.so
272 %defattr(644,root,root,755)
273 %{_includedir}/sysprof-2/sp-callgraph-view.h
274 %{_includedir}/sysprof-2/sp-cell-renderer-percent.h
275 %{_includedir}/sysprof-2/sp-cpu-visualizer-row.h
276 %{_includedir}/sysprof-2/sp-empty-state-view.h
277 %{_includedir}/sysprof-2/sp-failed-state-view.h
278 %{_includedir}/sysprof-2/sp-line-visualizer-row.h
279 %{_includedir}/sysprof-2/sp-multi-paned.h
280 %{_includedir}/sysprof-2/sp-process-model-row.h
281 %{_includedir}/sysprof-2/sp-profiler-menu-button.h
282 %{_includedir}/sysprof-2/sp-recording-state-view.h
283 %{_includedir}/sysprof-2/sp-visualizer-*.h
284 %{_includedir}/sysprof-2/sysprof-ui.h
285 %{_pkgconfigdir}/sysprof-ui-2.pc
288 %defattr(644,root,root,755)
289 %{_libdir}/libsysprof-ui-2.a