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