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