]>
Commit | Line | Data |
---|---|---|
d1d4f0b8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with sysprofd # daemon to run UI without root permissions [requires systemd >= 222] | |
4 | # | |
b0b4c66b | 5 | Summary: Sampling CPU profiler for Linux |
4bb9e5d5 | 6 | Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa |
b0b4c66b | 7 | Name: sysprof |
7034e008 | 8 | Version: 3.24.1 |
19a850ce | 9 | Release: 1 |
d1d4f0b8 | 10 | License: GPL v3+ |
b0b4c66b | 11 | Group: Applications/System |
c175f1de | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/sysprof/3.24/%{name}-%{version}.tar.xz |
7034e008 | 13 | # Source0-md5: 2b44ae1d8cd899417294a9c4509d7870 |
d1d4f0b8 | 14 | Patch0: %{name}-pc.patch |
473a3322 | 15 | URL: http://sysprof.com/ |
d1d4f0b8 JB |
16 | # -std=gnu11 + C11 atomics |
17 | BuildRequires: gcc >= 6:4.9 | |
4bb9e5d5 | 18 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
d1d4f0b8 JB |
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 | |
4bb9e5d5 | 24 | BuildRequires: pango-devel |
d1d4f0b8 JB |
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 | |
30 | BuildRequires: vala | |
d1d4f0b8 | 31 | BuildRequires: xz |
c175f1de | 32 | BuildRequires: yelp-tools |
d1d4f0b8 JB |
33 | Requires: %{name}-libs = %{version}-%{release} |
34 | %{?with_sysprofd:Requires: systemd-units >= 1:222} | |
c85f4c39 | 35 | Requires: uname(release) >= 2.6.31 |
b0b4c66b AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
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. | |
43 | ||
44 | Just insert the kernel module and start sysprof. | |
45 | ||
4bb9e5d5 JB |
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ć. | |
51 | ||
52 | Wystarczy załadować moduł jądra i uruchomić sysprof. | |
53 | ||
d1d4f0b8 JB |
54 | %package libs |
55 | Summary: The sysprof profiler library | |
56 | Summary(pl.UTF-8): Biblioteka profilera sysprof | |
57 | Group: Libraries | |
58 | Requires: glib2 >= 1:2.44.0 | |
59 | ||
60 | %description libs | |
61 | The sysprof profiler library. | |
62 | ||
63 | %description libs -l pl.UTF-8 | |
64 | Biblioteka profilera sysprof. | |
65 | ||
66 | %package devel | |
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 | |
72 | ||
73 | %description devel | |
74 | Header files for sysprof library. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe biblioteki sysprof. | |
78 | ||
79 | %package static | |
80 | Summary: Static sysprof library | |
81 | Summary(pl.UTF-8): Statyczna biblioteka sysprof | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | Static sysprof library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczna biblioteka sysprof. | |
90 | ||
91 | %package ui | |
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 | |
102 | ||
103 | %description ui | |
104 | The sysprof graphical user interface. | |
105 | ||
106 | %description ui -l pl.UTF-8 | |
107 | Graficzny interfejs użytkownika profilera sysprof. | |
108 | ||
109 | %package ui-libs | |
110 | Summary: The sysprof library containing reusable GTK+ widgets | |
111 | Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku | |
112 | Group: X11/Libraries | |
113 | Requires: %{name}-libs = %{version}-%{release} | |
114 | Requires: gtk+3 >= 3.22 | |
115 | ||
116 | %description ui-libs | |
117 | The sysprof library containing reusable GTK+ widgets. | |
118 | ||
119 | %description ui-libs -l pl.UTF-8 | |
120 | Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku. | |
121 | ||
122 | %package ui-devel | |
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 | |
129 | ||
130 | %description ui-devel | |
131 | Header files for sysprof-ui library. | |
132 | ||
133 | %description ui-devel -l pl.UTF-8 | |
134 | Pliki nagłówkowe biblioteki sysprof-ui. | |
135 | ||
136 | %package ui-static | |
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} | |
141 | ||
142 | %description ui-static | |
143 | Static sysprof-ui library. | |
144 | ||
145 | %description ui-static -l pl.UTF-8 | |
146 | Statyczna biblioteka sysprof-ui. | |
147 | ||
b0b4c66b AM |
148 | %prep |
149 | %setup -q | |
d1d4f0b8 | 150 | %patch0 -p1 |
b0b4c66b AM |
151 | |
152 | %build | |
473a3322 | 153 | %configure \ |
d1d4f0b8 JB |
154 | --disable-schemas-compile \ |
155 | --disable-silent-rules \ | |
156 | %{?with_sysprofd:--with-sysprofd} | |
b0b4c66b | 157 | %{__make} |
b0b4c66b AM |
158 | |
159 | %install | |
160 | rm -rf $RPM_BUILD_ROOT | |
d1d4f0b8 | 161 | |
b0b4c66b AM |
162 | %{__make} install \ |
163 | DESTDIR=$RPM_BUILD_ROOT | |
b0b4c66b | 164 | |
d1d4f0b8 JB |
165 | # obsoleted by pkg-config |
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsysprof-*.la | |
167 | ||
168 | %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo | |
169 | %find_lang %{name} | |
170 | ||
b0b4c66b AM |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
d1d4f0b8 JB |
174 | %if %{with sysprofd} |
175 | %post | |
176 | %systemd_post sysprof2.service | |
177 | ||
178 | %preun | |
179 | %systemd_preun sysprof2.service | |
180 | ||
181 | %postun | |
182 | %systemd_reload | |
183 | %endif | |
184 | ||
185 | %post libs -p /sbin/ldconfig | |
186 | %postun libs -p /sbin/ldconfig | |
187 | ||
188 | %post ui | |
189 | %glib_compile_schemas | |
190 | %update_icon_cache hicolor | |
191 | %update_mime_database | |
192 | %update_desktop_database | |
193 | ||
194 | %postun ui | |
195 | %glib_compile_schemas | |
196 | %update_icon_cache hicolor | |
197 | %update_mime_database | |
198 | %update_desktop_database | |
199 | ||
200 | %post ui-libs -p /sbin/ldconfig | |
201 | %postun ui-libs -p /sbin/ldconfig | |
202 | ||
203 | %files -f %{name}.lang | |
b0b4c66b | 204 | %defattr(644,root,root,755) |
d1d4f0b8 | 205 | %doc AUTHORS ChangeLog NEWS README TODO |
14f69233 | 206 | %attr(755,root,root) %{_bindir}/sysprof-cli |
d1d4f0b8 JB |
207 | %if %{with sysprofd} |
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 | |
214 | %endif | |
215 | ||
216 | %files libs | |
217 | %defattr(644,root,root,755) | |
218 | %attr(755,root,root) %{_libdir}/libsysprof-2.so | |
219 | ||
220 | %files devel | |
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 | |
c175f1de | 245 | %{_includedir}/sysprof-2/sp-symbol-dirs.h |
d1d4f0b8 JB |
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 | |
251 | ||
252 | %files static | |
253 | %defattr(644,root,root,755) | |
254 | %{_libdir}/libsysprof-2.a | |
255 | ||
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 | |
c175f1de | 264 | %{_datadir}/appdata/org.gnome.Sysprof2.appdata.xml |
d1d4f0b8 JB |
265 | |
266 | %files ui-libs | |
267 | %defattr(644,root,root,755) | |
268 | %attr(755,root,root) %{_libdir}/libsysprof-ui-2.so | |
269 | ||
270 | %files ui-devel | |
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 | |
285 | ||
286 | %files ui-static | |
287 | %defattr(644,root,root,755) | |
288 | %{_libdir}/libsysprof-ui-2.a |