]> git.pld-linux.org Git - packages/sysprof.git/blob - sysprof.spec
- enable sysprofd by default; release 2
[packages/sysprof.git] / sysprof.spec
1 #
2 # Conditional build:
3 %bcond_without  sysprofd        # daemon to run UI without root permissions
4 #
5 Summary:        Sampling CPU profiler for Linux
6 Summary(pl.UTF-8):      Próbkujący profiler procesora dla Linuksa
7 Name:           sysprof
8 Version:        3.24.1
9 Release:        2
10 License:        GPL v3+
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
31 BuildRequires:  vala
32 BuildRequires:  xz
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)
38
39 %description
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.
44
45 Just insert the kernel module and start sysprof.
46
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ć.
52
53 Wystarczy załadować moduł jądra i uruchomić sysprof.
54
55 %package libs
56 Summary:        The sysprof profiler library
57 Summary(pl.UTF-8):      Biblioteka profilera sysprof
58 Group:          Libraries
59 Requires:       glib2 >= 1:2.44.0
60
61 %description libs
62 The sysprof profiler library.
63
64 %description libs -l pl.UTF-8
65 Biblioteka profilera sysprof.
66
67 %package devel
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
73
74 %description devel
75 Header files for sysprof library.
76
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki sysprof.
79
80 %package static
81 Summary:        Static sysprof library
82 Summary(pl.UTF-8):      Statyczna biblioteka sysprof
83 Group:          Development/Libraries
84 Requires:       %{name}-devel = %{version}-%{release}
85
86 %description static
87 Static sysprof library.
88
89 %description static -l pl.UTF-8
90 Statyczna biblioteka sysprof.
91
92 %package ui
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
103
104 %description ui
105 The sysprof graphical user interface.
106
107 %description ui -l pl.UTF-8
108 Graficzny interfejs użytkownika profilera sysprof.
109
110 %package ui-libs
111 Summary:        The sysprof library containing reusable GTK+ widgets
112 Summary(pl.UTF-8):      Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
113 Group:          X11/Libraries
114 Requires:       %{name}-libs = %{version}-%{release}
115 Requires:       gtk+3 >= 3.22
116
117 %description ui-libs
118 The sysprof library containing reusable GTK+ widgets.
119
120 %description ui-libs -l pl.UTF-8
121 Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
122
123 %package ui-devel
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
130
131 %description ui-devel
132 Header files for sysprof-ui library.
133
134 %description ui-devel -l pl.UTF-8
135 Pliki nagłówkowe biblioteki sysprof-ui.
136
137 %package ui-static
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}
142
143 %description ui-static
144 Static sysprof-ui library.
145
146 %description ui-static -l pl.UTF-8
147 Statyczna biblioteka sysprof-ui.
148
149 %prep
150 %setup -q
151 %patch0 -p1
152
153 %build
154 %configure \
155         --disable-schemas-compile \
156         --disable-silent-rules \
157         %{?with_sysprofd:--with-sysprofd=bundled}
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 %{__make} install \
164         DESTDIR=$RPM_BUILD_ROOT
165
166 # obsoleted by pkg-config
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsysprof-*.la
168
169 %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo
170 %find_lang %{name}
171
172 %clean
173 rm -rf $RPM_BUILD_ROOT
174
175 %if %{with sysprofd}
176 %post
177 %systemd_post sysprof2.service
178
179 %preun
180 %systemd_preun sysprof2.service
181
182 %postun
183 %systemd_reload
184 %endif
185
186 %post   libs -p /sbin/ldconfig
187 %postun libs -p /sbin/ldconfig
188
189 %post ui
190 %glib_compile_schemas
191 %update_icon_cache hicolor
192 %update_mime_database
193 %update_desktop_database
194
195 %postun ui
196 %glib_compile_schemas
197 %update_icon_cache hicolor
198 %update_mime_database
199 %update_desktop_database
200
201 %post   ui-libs -p /sbin/ldconfig
202 %postun ui-libs -p /sbin/ldconfig
203
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
208 %if %{with sysprofd}
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
215 %endif
216
217 %files libs
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libsysprof-2.so
220
221 %files devel
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
252
253 %files static
254 %defattr(644,root,root,755)
255 %{_libdir}/libsysprof-2.a
256
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
266
267 %files ui-libs
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libsysprof-ui-2.so
270
271 %files ui-devel
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
286
287 %files ui-static
288 %defattr(644,root,root,755)
289 %{_libdir}/libsysprof-ui-2.a
This page took 0.058534 seconds and 4 git commands to generate.