]>
Commit | Line | Data |
---|---|---|
757c3d7f | 1 | # TODO: switch to gtk4-update-icon-cache |
d1d4f0b8 JB |
2 | # |
3 | # Conditional build: | |
c374e5bf | 4 | %bcond_without sysprofd # daemon to run UI without root permissions |
d1d4f0b8 | 5 | # |
b0b4c66b | 6 | Summary: Sampling CPU profiler for Linux |
4bb9e5d5 | 7 | Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa |
b0b4c66b | 8 | Name: sysprof |
ac6775d2 | 9 | Version: 46.0 |
e36d5aef | 10 | Release: 1 |
d1d4f0b8 | 11 | License: GPL v3+ |
b0b4c66b | 12 | Group: Applications/System |
ac6775d2 JB |
13 | Source0: https://download.gnome.org/sources/sysprof/46/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 89d564d00783585922a04c17c60f3794 | |
96be4264 | 15 | Patch0: no-cache-update.patch |
c2f45e9f | 16 | URL: http://www.sysprof.com/ |
e38483c0 | 17 | BuildRequires: cairo-devel |
ac6775d2 JB |
18 | # -std=gnu17 |
19 | BuildRequires: gcc >= 6:7 | |
d1d4f0b8 | 20 | BuildRequires: gettext-tools >= 0.19.6 |
cf75ede2 JB |
21 | BuildRequires: glib2-devel >= 1:2.76.0 |
22 | BuildRequires: gtk4-devel >= 4.10 | |
e38483c0 | 23 | BuildRequires: json-glib-devel |
46175a96 | 24 | BuildRequires: libadwaita-devel >= 1.2 |
cf75ede2 | 25 | BuildRequires: libdex-devel >= 0.3 |
37a8d59a | 26 | BuildRequires: libpanel-devel >= 1.3.0 |
cf75ede2 | 27 | BuildRequires: libstdc++-devel >= 6:7 |
e38483c0 | 28 | BuildRequires: libunwind-devel |
cf75ede2 | 29 | BuildRequires: meson >= 0.62.0 |
6c9bc3d1 | 30 | BuildRequires: ninja >= 1.5 |
4bb9e5d5 | 31 | BuildRequires: pango-devel |
d1d4f0b8 | 32 | BuildRequires: pkgconfig >= 1:0.22 |
e6c5cc4d | 33 | %{?with_sysprofd:BuildRequires: polkit-devel >= 0.114} |
6c9bc3d1 | 34 | BuildRequires: rpmbuild(macros) >= 1.736 |
d1d4f0b8 JB |
35 | %{?with_sysprofd:BuildRequires: systemd-devel >= 1:222} |
36 | BuildRequires: tar >= 1:1.22 | |
d1d4f0b8 | 37 | BuildRequires: xz |
c175f1de | 38 | BuildRequires: yelp-tools |
d1d4f0b8 | 39 | Requires: %{name}-libs = %{version}-%{release} |
e6c5cc4d | 40 | %{?with_sysprofd:Requires: polkit >= 0.114} |
d1d4f0b8 | 41 | %{?with_sysprofd:Requires: systemd-units >= 1:222} |
c85f4c39 | 42 | Requires: uname(release) >= 2.6.31 |
b0b4c66b AM |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | Sysprof is a sampling CPU profiler for Linux that uses a kernel module | |
47 | to profile the entire system, not just a single application. Sysprof | |
48 | handles shared libraries and applications do not need to be | |
49 | recompiled. In fact they don't even have to be restarted. | |
50 | ||
51 | Just insert the kernel module and start sysprof. | |
52 | ||
4bb9e5d5 JB |
53 | %description -l pl.UTF-8 |
54 | Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący | |
55 | moduł jądra do profilowania całego systemu, nie tylko pojedynczej | |
56 | aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie | |
57 | wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować. | |
58 | ||
59 | Wystarczy załadować moduł jądra i uruchomić sysprof. | |
60 | ||
d1d4f0b8 JB |
61 | %package libs |
62 | Summary: The sysprof profiler library | |
63 | Summary(pl.UTF-8): Biblioteka profilera sysprof | |
64 | Group: Libraries | |
cf75ede2 JB |
65 | Requires: glib2 >= 1:2.76.0 |
66 | Requires: libdex >= 0.3 | |
67 | Obsoletes: sysprof-ui-libs < 45 | |
d1d4f0b8 JB |
68 | |
69 | %description libs | |
70 | The sysprof profiler library. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteka profilera sysprof. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for sysprof library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
cf75ede2 JB |
80 | Requires: glib2-devel >= 1:2.76.0 |
81 | Requires: json-glib-devel | |
82 | Requires: libdex-devel >= 0.3 | |
83 | %{?with_sysprofd:Requires: polkit-devel >= 0.114} | |
84 | %{?with_sysprofd:Requires: systemd-devel >= 1:222} | |
3f80004c | 85 | Obsoletes: sysprof-static < 3.28.0 |
cf75ede2 | 86 | Obsoletes: sysprof-ui-devel < 45 |
d1d4f0b8 JB |
87 | |
88 | %description devel | |
89 | Header files for sysprof library. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe biblioteki sysprof. | |
93 | ||
d1d4f0b8 JB |
94 | %package ui |
95 | Summary: The sysprof graphical user interface | |
96 | Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof | |
97 | Group: Applications/System | |
98 | Requires(post,postun): desktop-file-utils | |
cf75ede2 | 99 | Requires(post,postun): glib2 >= 1:2.76.0 |
d1d4f0b8 JB |
100 | Requires(post,postun): gtk-update-icon-cache |
101 | Requires: %{name} = %{version}-%{release} | |
cf75ede2 | 102 | Requires: gtk4 >= 4.10 |
d1d4f0b8 | 103 | Requires: hicolor-icon-theme |
37a8d59a | 104 | Requires: libpanel >= 1.3.0 |
d1d4f0b8 JB |
105 | Requires: shared-mime-info |
106 | ||
107 | %description ui | |
108 | The sysprof graphical user interface. | |
109 | ||
110 | %description ui -l pl.UTF-8 | |
111 | Graficzny interfejs użytkownika profilera sysprof. | |
112 | ||
b0b4c66b AM |
113 | %prep |
114 | %setup -q | |
96be4264 | 115 | %patch0 -p1 |
b0b4c66b AM |
116 | |
117 | %build | |
d61cb3f0 | 118 | %meson build \ |
cf75ede2 | 119 | --default-library=shared \ |
6c9bc3d1 | 120 | %{!?with_sysprofd:-Dwith_sysprofd=host} |
d61cb3f0 | 121 | |
6c9bc3d1 | 122 | %ninja_build -C build |
b0b4c66b AM |
123 | |
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
d1d4f0b8 | 126 | |
6c9bc3d1 | 127 | %ninja_install -C build |
d1d4f0b8 JB |
128 | |
129 | %find_lang %{name} -o %{name}-ui.lang --with-gnome --without-mo | |
130 | %find_lang %{name} | |
131 | ||
b0b4c66b AM |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
d1d4f0b8 JB |
135 | %if %{with sysprofd} |
136 | %post | |
137 | %systemd_post sysprof2.service | |
138 | ||
139 | %preun | |
140 | %systemd_preun sysprof2.service | |
141 | ||
142 | %postun | |
143 | %systemd_reload | |
144 | %endif | |
145 | ||
146 | %post libs -p /sbin/ldconfig | |
147 | %postun libs -p /sbin/ldconfig | |
148 | ||
149 | %post ui | |
d1d4f0b8 JB |
150 | %update_icon_cache hicolor |
151 | %update_mime_database | |
152 | %update_desktop_database | |
153 | ||
154 | %postun ui | |
d1d4f0b8 JB |
155 | %update_icon_cache hicolor |
156 | %update_mime_database | |
157 | %update_desktop_database | |
158 | ||
d1d4f0b8 | 159 | %files -f %{name}.lang |
b0b4c66b | 160 | %defattr(644,root,root,755) |
e6c5cc4d | 161 | %doc AUTHORS DESIGN.md NEWS README.md |
757c3d7f | 162 | %attr(755,root,root) %{_bindir}/sysprof-agent |
14f69233 | 163 | %attr(755,root,root) %{_bindir}/sysprof-cli |
d1d4f0b8 | 164 | %if %{with sysprofd} |
6c9bc3d1 | 165 | %attr(755,root,root) %{_libexecdir}/sysprofd |
6c9bc3d1 | 166 | %{systemdunitdir}/sysprof3.service |
6c9bc3d1 | 167 | %{_datadir}/dbus-1/system-services/org.gnome.Sysprof3.service |
6c9bc3d1 JB |
168 | %{_datadir}/dbus-1/system.d/org.gnome.Sysprof3.conf |
169 | %{_datadir}/polkit-1/actions/org.gnome.sysprof3.policy | |
d1d4f0b8 JB |
170 | %endif |
171 | ||
172 | %files libs | |
173 | %defattr(644,root,root,755) | |
cf75ede2 JB |
174 | %attr(755,root,root) %{_libdir}/libsysprof-6.so.*.*.* |
175 | %attr(755,root,root) %ghost %{_libdir}/libsysprof-6.so.6 | |
176 | %attr(755,root,root) %{_libdir}/libsysprof-memory-6.so | |
177 | %attr(755,root,root) %{_libdir}/libsysprof-speedtrack-6.so | |
178 | %attr(755,root,root) %{_libdir}/libsysprof-tracer-6.so | |
d1d4f0b8 JB |
179 | |
180 | %files devel | |
181 | %defattr(644,root,root,755) | |
cf75ede2 | 182 | %attr(755,root,root) %{_libdir}/libsysprof-6.so |
5f438423 | 183 | %{_libdir}/libsysprof-capture-4.a |
cf75ede2 JB |
184 | %{_includedir}/sysprof-6 |
185 | %{_pkgconfigdir}/sysprof-6.pc | |
5f438423 | 186 | %{_pkgconfigdir}/sysprof-capture-4.pc |
757c3d7f | 187 | %{_datadir}/dbus-1/interfaces/org.gnome.Sysprof.Agent.xml |
6c9bc3d1 JB |
188 | %{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml |
189 | %{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml | |
d1d4f0b8 JB |
190 | |
191 | %files ui -f %{name}-ui.lang | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_bindir}/sysprof | |
757c3d7f | 194 | %{_datadir}/metainfo/org.gnome.Sysprof.appdata.xml |
d1d4f0b8 | 195 | %{_datadir}/mime/packages/sysprof-mime.xml |
757c3d7f | 196 | %{_desktopdir}/org.gnome.Sysprof.desktop |
e6c5cc4d | 197 | %{_iconsdir}/hicolor/scalable/actions/sysprof-*.svg |
e36d5aef JR |
198 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Sysprof.svg |
199 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Sysprof-symbolic.svg |