]> git.pld-linux.org Git - packages/sysprof.git/blame - sysprof.spec
- updated to 46.0
[packages/sysprof.git] / sysprof.spec
CommitLineData
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 6Summary: Sampling CPU profiler for Linux
4bb9e5d5 7Summary(pl.UTF-8): Próbkujący profiler procesora dla Linuksa
b0b4c66b 8Name: sysprof
ac6775d2 9Version: 46.0
e36d5aef 10Release: 1
d1d4f0b8 11License: GPL v3+
b0b4c66b 12Group: Applications/System
ac6775d2
JB
13Source0: https://download.gnome.org/sources/sysprof/46/%{name}-%{version}.tar.xz
14# Source0-md5: 89d564d00783585922a04c17c60f3794
96be4264 15Patch0: no-cache-update.patch
c2f45e9f 16URL: http://www.sysprof.com/
e38483c0 17BuildRequires: cairo-devel
ac6775d2
JB
18# -std=gnu17
19BuildRequires: gcc >= 6:7
d1d4f0b8 20BuildRequires: gettext-tools >= 0.19.6
cf75ede2
JB
21BuildRequires: glib2-devel >= 1:2.76.0
22BuildRequires: gtk4-devel >= 4.10
e38483c0 23BuildRequires: json-glib-devel
46175a96 24BuildRequires: libadwaita-devel >= 1.2
cf75ede2 25BuildRequires: libdex-devel >= 0.3
37a8d59a 26BuildRequires: libpanel-devel >= 1.3.0
cf75ede2 27BuildRequires: libstdc++-devel >= 6:7
e38483c0 28BuildRequires: libunwind-devel
cf75ede2 29BuildRequires: meson >= 0.62.0
6c9bc3d1 30BuildRequires: ninja >= 1.5
4bb9e5d5 31BuildRequires: pango-devel
d1d4f0b8 32BuildRequires: pkgconfig >= 1:0.22
e6c5cc4d 33%{?with_sysprofd:BuildRequires: polkit-devel >= 0.114}
6c9bc3d1 34BuildRequires: rpmbuild(macros) >= 1.736
d1d4f0b8
JB
35%{?with_sysprofd:BuildRequires: systemd-devel >= 1:222}
36BuildRequires: tar >= 1:1.22
d1d4f0b8 37BuildRequires: xz
c175f1de 38BuildRequires: yelp-tools
d1d4f0b8 39Requires: %{name}-libs = %{version}-%{release}
e6c5cc4d 40%{?with_sysprofd:Requires: polkit >= 0.114}
d1d4f0b8 41%{?with_sysprofd:Requires: systemd-units >= 1:222}
c85f4c39 42Requires: uname(release) >= 2.6.31
b0b4c66b
AM
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46Sysprof is a sampling CPU profiler for Linux that uses a kernel module
47to profile the entire system, not just a single application. Sysprof
48handles shared libraries and applications do not need to be
49recompiled. In fact they don't even have to be restarted.
50
51Just insert the kernel module and start sysprof.
52
4bb9e5d5
JB
53%description -l pl.UTF-8
54Sysprof to próbkujący profiler procesora dla Linuksa wykorzystujący
55moduł jądra do profilowania całego systemu, nie tylko pojedynczej
56aplikacji. Sysprof obsługuje biblioteki współdzielone, a aplikacje nie
57wymagają rekompilacji. Właściwie nawet nie trzeba ich restartować.
58
59Wystarczy załadować moduł jądra i uruchomić sysprof.
60
d1d4f0b8
JB
61%package libs
62Summary: The sysprof profiler library
63Summary(pl.UTF-8): Biblioteka profilera sysprof
64Group: Libraries
cf75ede2
JB
65Requires: glib2 >= 1:2.76.0
66Requires: libdex >= 0.3
67Obsoletes: sysprof-ui-libs < 45
d1d4f0b8
JB
68
69%description libs
70The sysprof profiler library.
71
72%description libs -l pl.UTF-8
73Biblioteka profilera sysprof.
74
75%package devel
76Summary: Header files for sysprof library
77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sysprof
78Group: Development/Libraries
79Requires: %{name}-libs = %{version}-%{release}
cf75ede2
JB
80Requires: glib2-devel >= 1:2.76.0
81Requires: json-glib-devel
82Requires: libdex-devel >= 0.3
83%{?with_sysprofd:Requires: polkit-devel >= 0.114}
84%{?with_sysprofd:Requires: systemd-devel >= 1:222}
3f80004c 85Obsoletes: sysprof-static < 3.28.0
cf75ede2 86Obsoletes: sysprof-ui-devel < 45
d1d4f0b8
JB
87
88%description devel
89Header files for sysprof library.
90
91%description devel -l pl.UTF-8
92Pliki nagłówkowe biblioteki sysprof.
93
d1d4f0b8
JB
94%package ui
95Summary: The sysprof graphical user interface
96Summary(pl.UTF-8): Graficzny interfejs użytkownika profilera sysprof
97Group: Applications/System
98Requires(post,postun): desktop-file-utils
cf75ede2 99Requires(post,postun): glib2 >= 1:2.76.0
d1d4f0b8
JB
100Requires(post,postun): gtk-update-icon-cache
101Requires: %{name} = %{version}-%{release}
cf75ede2 102Requires: gtk4 >= 4.10
d1d4f0b8 103Requires: hicolor-icon-theme
37a8d59a 104Requires: libpanel >= 1.3.0
d1d4f0b8
JB
105Requires: shared-mime-info
106
107%description ui
108The sysprof graphical user interface.
109
110%description ui -l pl.UTF-8
111Graficzny 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
125rm -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
133rm -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
This page took 0.26272 seconds and 4 git commands to generate.