]> git.pld-linux.org Git - packages/sysprof.git/blame - sysprof.spec
Update to 3.24.1
[packages/sysprof.git] / sysprof.spec
CommitLineData
d1d4f0b8
JB
1#
2# Conditional build:
3%bcond_with sysprofd # daemon to run UI without root permissions [requires systemd >= 222]
4#
b0b4c66b 5Summary: Sampling CPU profiler for Linux
4bb9e5d5 6Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa
b0b4c66b 7Name: sysprof
7034e008 8Version: 3.24.1
19a850ce 9Release: 1
d1d4f0b8 10License: GPL v3+
b0b4c66b 11Group: Applications/System
c175f1de 12Source0: http://ftp.gnome.org/pub/GNOME/sources/sysprof/3.24/%{name}-%{version}.tar.xz
7034e008 13# Source0-md5: 2b44ae1d8cd899417294a9c4509d7870
d1d4f0b8 14Patch0: %{name}-pc.patch
473a3322 15URL: http://sysprof.com/
d1d4f0b8
JB
16# -std=gnu11 + C11 atomics
17BuildRequires: gcc >= 6:4.9
4bb9e5d5 18BuildRequires: gdk-pixbuf2-devel >= 2.0
d1d4f0b8
JB
19BuildRequires: gettext-tools >= 0.19.6
20BuildRequires: glib2-devel >= 1:2.44.0
21BuildRequires: gobject-introspection-devel >= 1.42.0
22BuildRequires: gtk+3-devel >= 3.22
23BuildRequires: libstdc++-devel >= 6:4.0
4bb9e5d5 24BuildRequires: pango-devel
d1d4f0b8
JB
25BuildRequires: pkgconfig >= 1:0.22
26%{?with_sysprofd:BuildRequires: polkit-devel}
27BuildRequires: rpmbuild(macros) >= 1.644
28%{?with_sysprofd:BuildRequires: systemd-devel >= 1:222}
29BuildRequires: tar >= 1:1.22
30BuildRequires: vala
d1d4f0b8 31BuildRequires: xz
c175f1de 32BuildRequires: yelp-tools
d1d4f0b8
JB
33Requires: %{name}-libs = %{version}-%{release}
34%{?with_sysprofd:Requires: systemd-units >= 1:222}
c85f4c39 35Requires: uname(release) >= 2.6.31
b0b4c66b
AM
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39Sysprof is a sampling CPU profiler for Linux that uses a kernel module
40to profile the entire system, not just a single application. Sysprof
41handles shared libraries and applications do not need to be
42recompiled. In fact they don't even have to be restarted.
43
44Just insert the kernel module and start sysprof.
45
4bb9e5d5
JB
46%description -l pl.UTF-8
47Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący
48moduł jądra do profilowania całego systemu, nie tylko pojedynczej
49aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie
50wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować.
51
52Wystarczy załadować moduł jądra i uruchomić sysprof.
53
d1d4f0b8
JB
54%package libs
55Summary: The sysprof profiler library
56Summary(pl.UTF-8): Biblioteka profilera sysprof
57Group: Libraries
58Requires: glib2 >= 1:2.44.0
59
60%description libs
61The sysprof profiler library.
62
63%description libs -l pl.UTF-8
64Biblioteka profilera sysprof.
65
66%package devel
67Summary: Header files for sysprof library
68Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof
69Group: Development/Libraries
70Requires: %{name}-libs = %{version}-%{release}
71Requires: glib2-devel >= 1:2.44.0
72
73%description devel
74Header files for sysprof library.
75
76%description devel -l pl.UTF-8
77Pliki nagłówkowe biblioteki sysprof.
78
79%package static
80Summary: Static sysprof library
81Summary(pl.UTF-8): Statyczna biblioteka sysprof
82Group: Development/Libraries
83Requires: %{name}-devel = %{version}-%{release}
84
85%description static
86Static sysprof library.
87
88%description static -l pl.UTF-8
89Statyczna biblioteka sysprof.
90
91%package ui
92Summary: The sysprof graphical user interface
93Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
94Group: Applications/System
95Requires(post,postun): desktop-file-utils
96Requires(post,postun): glib2 >= 1:2.44.0
97Requires(post,postun): gtk-update-icon-cache
98Requires: %{name} = %{version}-%{release}
99Requires: %{name}-ui-libs = %{version}-%{release}
100Requires: hicolor-icon-theme
101Requires: shared-mime-info
102
103%description ui
104The sysprof graphical user interface.
105
106%description ui -l pl.UTF-8
107Graficzny interfejs użytkownika profilera sysprof.
108
109%package ui-libs
110Summary: The sysprof library containing reusable GTK+ widgets
111Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
112Group: X11/Libraries
113Requires: %{name}-libs = %{version}-%{release}
114Requires: gtk+3 >= 3.22
115
116%description ui-libs
117The sysprof library containing reusable GTK+ widgets.
118
119%description ui-libs -l pl.UTF-8
120Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
121
122%package ui-devel
123Summary: Header files for sysprof-ui library
124Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof-ui
125Group: X11/Development/Libraries
126Requires: %{name}-devel = %{version}-%{release}
127Requires: %{name}-ui-libs = %{version}-%{release}
128Requires: gtk+3-devel >= 3.22
129
130%description ui-devel
131Header files for sysprof-ui library.
132
133%description ui-devel -l pl.UTF-8
134Pliki nagłówkowe biblioteki sysprof-ui.
135
136%package ui-static
137Summary: Static sysprof-ui library
138Summary(pl.UTF-8): Statyczna biblioteka sysprof-ui
139Group: X11/Development/Libraries
140Requires: %{name}-ui-devel = %{version}-%{release}
141
142%description ui-static
143Static sysprof-ui library.
144
145%description ui-static -l pl.UTF-8
146Statyczna 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
160rm -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
172rm -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
This page took 0.456388 seconds and 4 git commands to generate.