]> git.pld-linux.org Git - packages/sysprof.git/blame - sysprof.spec
- updated to 3.38.1
[packages/sysprof.git] / sysprof.spec
CommitLineData
d1d4f0b8
JB
1#
2# Conditional build:
c374e5bf 3%bcond_without sysprofd # daemon to run UI without root permissions
d1d4f0b8 4#
b0b4c66b 5Summary: Sampling CPU profiler for Linux
4bb9e5d5 6Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa
b0b4c66b 7Name: sysprof
db25db39 8Version: 3.38.1
e36d5aef 9Release: 1
d1d4f0b8 10License: GPL v3+
b0b4c66b 11Group: Applications/System
5f438423 12Source0: http://ftp.gnome.org/pub/GNOME/sources/sysprof/3.38/%{name}-%{version}.tar.xz
db25db39 13# Source0-md5: b4398e0cd3673cee95fdb3c70d4c5e77
473a3322 14URL: http://sysprof.com/
d1d4f0b8
JB
15# -std=gnu11 + C11 atomics
16BuildRequires: gcc >= 6:4.9
4bb9e5d5 17BuildRequires: gdk-pixbuf2-devel >= 2.0
d1d4f0b8 18BuildRequires: gettext-tools >= 0.19.6
6c9bc3d1 19BuildRequires: glib2-devel >= 1:2.61.3
d1d4f0b8
JB
20BuildRequires: gobject-introspection-devel >= 1.42.0
21BuildRequires: gtk+3-devel >= 3.22
6c9bc3d1
JB
22BuildRequires: libdazzle-devel >= 3.30.0
23BuildRequires: libstdc++-devel >= 6:4.7
5f438423 24BuildRequires: meson >= 0.51.0
6c9bc3d1 25BuildRequires: ninja >= 1.5
4bb9e5d5 26BuildRequires: pango-devel
d1d4f0b8 27BuildRequires: pkgconfig >= 1:0.22
e6c5cc4d 28%{?with_sysprofd:BuildRequires: polkit-devel >= 0.114}
6c9bc3d1 29BuildRequires: rpmbuild(macros) >= 1.736
d1d4f0b8
JB
30%{?with_sysprofd:BuildRequires: systemd-devel >= 1:222}
31BuildRequires: tar >= 1:1.22
32BuildRequires: vala
d1d4f0b8 33BuildRequires: xz
c175f1de 34BuildRequires: yelp-tools
d1d4f0b8 35Requires: %{name}-libs = %{version}-%{release}
e6c5cc4d 36%{?with_sysprofd:Requires: polkit >= 0.114}
d1d4f0b8 37%{?with_sysprofd:Requires: systemd-units >= 1:222}
c85f4c39 38Requires: uname(release) >= 2.6.31
b0b4c66b
AM
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Sysprof is a sampling CPU profiler for Linux that uses a kernel module
43to profile the entire system, not just a single application. Sysprof
44handles shared libraries and applications do not need to be
45recompiled. In fact they don't even have to be restarted.
46
47Just insert the kernel module and start sysprof.
48
4bb9e5d5
JB
49%description -l pl.UTF-8
50Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący
51moduł jądra do profilowania całego systemu, nie tylko pojedynczej
52aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie
53wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować.
54
55Wystarczy załadować moduł jądra i uruchomić sysprof.
56
d1d4f0b8
JB
57%package libs
58Summary: The sysprof profiler library
59Summary(pl.UTF-8): Biblioteka profilera sysprof
60Group: Libraries
6c9bc3d1 61Requires: glib2 >= 1:2.61.3
d1d4f0b8
JB
62
63%description libs
64The sysprof profiler library.
65
66%description libs -l pl.UTF-8
67Biblioteka profilera sysprof.
68
69%package devel
70Summary: Header files for sysprof library
71Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof
72Group: Development/Libraries
73Requires: %{name}-libs = %{version}-%{release}
6c9bc3d1 74Requires: glib2-devel >= 1:2.61.3
3f80004c 75Obsoletes: sysprof-static < 3.28.0
d1d4f0b8
JB
76
77%description devel
78Header files for sysprof library.
79
80%description devel -l pl.UTF-8
81Pliki nagłówkowe biblioteki sysprof.
82
d1d4f0b8
JB
83%package ui
84Summary: The sysprof graphical user interface
85Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
86Group: Applications/System
87Requires(post,postun): desktop-file-utils
6c9bc3d1 88Requires(post,postun): glib2 >= 1:2.61.3
d1d4f0b8
JB
89Requires(post,postun): gtk-update-icon-cache
90Requires: %{name} = %{version}-%{release}
91Requires: %{name}-ui-libs = %{version}-%{release}
92Requires: hicolor-icon-theme
93Requires: shared-mime-info
94
95%description ui
96The sysprof graphical user interface.
97
98%description ui -l pl.UTF-8
99Graficzny interfejs użytkownika profilera sysprof.
100
101%package ui-libs
102Summary: The sysprof library containing reusable GTK+ widgets
103Summary(pl.UTF-8): Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku
104Group: X11/Libraries
105Requires: %{name}-libs = %{version}-%{release}
106Requires: gtk+3 >= 3.22
6c9bc3d1 107Requires: libdazzle >= 3.30.0
d1d4f0b8
JB
108
109%description ui-libs
110The sysprof library containing reusable GTK+ widgets.
111
112%description ui-libs -l pl.UTF-8
113Biblioteka sysprofa zawierająca widgety GTK+ wielokrotnego użytku.
114
115%package ui-devel
116Summary: Header files for sysprof-ui library
117Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof-ui
118Group: X11/Development/Libraries
119Requires: %{name}-devel = %{version}-%{release}
120Requires: %{name}-ui-libs = %{version}-%{release}
121Requires: gtk+3-devel >= 3.22
3f80004c 122Obsoletes: sysprof-ui-static < 3.28.0
d1d4f0b8
JB
123
124%description ui-devel
125Header files for sysprof-ui library.
126
127%description ui-devel -l pl.UTF-8
128Pliki nagłówkowe biblioteki sysprof-ui.
129
b0b4c66b
AM
130%prep
131%setup -q
132
133%build
d61cb3f0 134%meson build \
6c9bc3d1 135 %{!?with_sysprofd:-Dwith_sysprofd=host}
d61cb3f0 136
6c9bc3d1 137%ninja_build -C build
b0b4c66b
AM
138
139%install
140rm -rf $RPM_BUILD_ROOT
d1d4f0b8 141
6c9bc3d1 142%ninja_install -C build
d1d4f0b8
JB
143
144%find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo
145%find_lang %{name}
146
b0b4c66b
AM
147%clean
148rm -rf $RPM_BUILD_ROOT
149
d1d4f0b8
JB
150%if %{with sysprofd}
151%post
152%systemd_post sysprof2.service
153
154%preun
155%systemd_preun sysprof2.service
156
157%postun
158%systemd_reload
159%endif
160
161%post libs -p /sbin/ldconfig
162%postun libs -p /sbin/ldconfig
163
164%post ui
165%glib_compile_schemas
166%update_icon_cache hicolor
167%update_mime_database
168%update_desktop_database
169
170%postun ui
171%glib_compile_schemas
172%update_icon_cache hicolor
173%update_mime_database
174%update_desktop_database
175
176%post ui-libs -p /sbin/ldconfig
177%postun ui-libs -p /sbin/ldconfig
178
179%files -f %{name}.lang
b0b4c66b 180%defattr(644,root,root,755)
e6c5cc4d 181%doc AUTHORS DESIGN.md NEWS README.md
14f69233 182%attr(755,root,root) %{_bindir}/sysprof-cli
d1d4f0b8 183%if %{with sysprofd}
6c9bc3d1 184%attr(755,root,root) %{_libexecdir}/sysprofd
d1d4f0b8 185%{systemdunitdir}/sysprof2.service
6c9bc3d1 186%{systemdunitdir}/sysprof3.service
d1d4f0b8 187%{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
6c9bc3d1 188%{_datadir}/dbus-1/system-services/org.gnome.Sysprof3.service
d1d4f0b8 189%{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
6c9bc3d1
JB
190%{_datadir}/dbus-1/system.d/org.gnome.Sysprof3.conf
191%{_datadir}/polkit-1/actions/org.gnome.sysprof3.policy
d1d4f0b8
JB
192%endif
193
194%files libs
195%defattr(644,root,root,755)
5f438423
JB
196%attr(755,root,root) %{_libdir}/libsysprof-4.so
197%attr(755,root,root) %{_libdir}/libsysprof-memory-4.so
198%attr(755,root,root) %{_libdir}/libsysprof-speedtrack-4.so
d1d4f0b8
JB
199
200%files devel
201%defattr(644,root,root,755)
5f438423
JB
202%{_libdir}/libsysprof-capture-4.a
203%dir %{_includedir}/sysprof-4
204%{_includedir}/sysprof-4/sysprof.h
205%{_includedir}/sysprof-4/sysprof-address.h
206%{_includedir}/sysprof-4/sysprof-battery-source.h
207%{_includedir}/sysprof-4/sysprof-callgraph-profile.h
208%{_includedir}/sysprof-4/sysprof-capture*.h
209%{_includedir}/sysprof-4/sysprof-check.h
210%{_includedir}/sysprof-4/sysprof-clock.h
211%{_includedir}/sysprof-4/sysprof-collector.h
212%{_includedir}/sysprof-4/sysprof-control-source.h
213%{_includedir}/sysprof-4/sysprof-diskstat-source.h
214%{_includedir}/sysprof-4/sysprof-elf-symbol-resolver.h
215%{_includedir}/sysprof-4/sysprof-gjs-source.h
216%{_includedir}/sysprof-4/sysprof-governor-source.h
217%{_includedir}/sysprof-4/sysprof-hostinfo-source.h
218%{_includedir}/sysprof-4/sysprof-jitmap-symbol-resolver.h
219%{_includedir}/sysprof-4/sysprof-kernel-symbol.h
220%{_includedir}/sysprof-4/sysprof-kernel-symbol-resolver.h
221%{_includedir}/sysprof-4/sysprof-local-profiler.h
222%{_includedir}/sysprof-4/sysprof-macros.h
223%{_includedir}/sysprof-4/sysprof-memory-source.h
224%{_includedir}/sysprof-4/sysprof-memprof-profile.h
225%{_includedir}/sysprof-4/sysprof-memprof-source.h
226%{_includedir}/sysprof-4/sysprof-model-filter.h
227%{_includedir}/sysprof-4/sysprof-netdev-source.h
228%{_includedir}/sysprof-4/sysprof-perf-counter.h
229%{_includedir}/sysprof-4/sysprof-perf-source.h
230%{_includedir}/sysprof-4/sysprof-platform.h
231%{_includedir}/sysprof-4/sysprof-preload-source.h
232%{_includedir}/sysprof-4/sysprof-proc-source.h
233%{_includedir}/sysprof-4/sysprof-process-model.h
234%{_includedir}/sysprof-4/sysprof-process-model-item.h
235%{_includedir}/sysprof-4/sysprof-profile.h
236%{_includedir}/sysprof-4/sysprof-profiler.h
237%{_includedir}/sysprof-4/sysprof-proxy-source.h
238%{_includedir}/sysprof-4/sysprof-selection.h
239%{_includedir}/sysprof-4/sysprof-source.h
240%{_includedir}/sysprof-4/sysprof-spawnable.h
241%{_includedir}/sysprof-4/sysprof-symbol-resolver.h
242%{_includedir}/sysprof-4/sysprof-symbols-source.h
243%{_includedir}/sysprof-4/sysprof-tracefd-source.h
244%{_includedir}/sysprof-4/sysprof-version.h
245%{_includedir}/sysprof-4/sysprof-version-macros.h
246%{_pkgconfigdir}/sysprof-4.pc
247%{_pkgconfigdir}/sysprof-capture-4.pc
6c9bc3d1
JB
248%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof2.xml
249%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml
250%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml
d1d4f0b8
JB
251
252%files ui -f %{name}-ui.lang
253%defattr(644,root,root,755)
254%attr(755,root,root) %{_bindir}/sysprof
6c9bc3d1
JB
255%{_datadir}/glib-2.0/schemas/org.gnome.sysprof3.gschema.xml
256%{_datadir}/metainfo/org.gnome.Sysprof3.appdata.xml
d1d4f0b8 257%{_datadir}/mime/packages/sysprof-mime.xml
6c9bc3d1 258%{_desktopdir}/org.gnome.Sysprof3.desktop
e6c5cc4d 259%{_iconsdir}/hicolor/scalable/actions/sysprof-*.svg
e36d5aef
JR
260%{_iconsdir}/hicolor/scalable/apps/org.gnome.Sysprof.svg
261%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Sysprof-symbolic.svg
d1d4f0b8
JB
262
263%files ui-libs
264%defattr(644,root,root,755)
5f438423 265%attr(755,root,root) %{_libdir}/libsysprof-ui-4.so
d1d4f0b8
JB
266
267%files ui-devel
268%defattr(644,root,root,755)
5f438423
JB
269%{_includedir}/sysprof-4/sysprof-display.h
270%{_includedir}/sysprof-4/sysprof-notebook.h
271%{_includedir}/sysprof-4/sysprof-page.h
272%{_includedir}/sysprof-4/sysprof-process-model-row.h
273%{_includedir}/sysprof-4/sysprof-ui.h
274%{_includedir}/sysprof-4/sysprof-visualizer.h
275%{_includedir}/sysprof-4/sysprof-visualizer-group.h
276%{_includedir}/sysprof-4/sysprof-zoom-manager.h
277%{_pkgconfigdir}/sysprof-ui-4.pc
This page took 0.14751 seconds and 4 git commands to generate.