]>
Commit | Line | Data |
---|---|---|
8696548b | 1 | # |
d87d55f4 | 2 | # Conditional build: |
9a69ce4a JB |
3 | %bcond_without systemd # systemd support |
4 | %bcond_with wnck # wnck support, "this will likely make system-monitor segfault" | |
d87d55f4 | 5 | # |
e63001a1 | 6 | Summary: Simple process monitor |
94d5916c | 7 | Summary(pl.UTF-8): Prosty monitor procesów |
e63001a1 | 8 | Name: gnome-system-monitor |
32821523 | 9 | Version: 42.0 |
dde8056b | 10 | Release: 1 |
0efb4948 | 11 | License: GPL v2+ |
e63001a1 | 12 | Group: X11/Applications |
32821523 JB |
13 | Source0: https://download.gnome.org/sources/gnome-system-monitor/42/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 2d9678bb4ea86b40177ac6b28152666f | |
15 | Patch0: %{name}-no-update.patch | |
31e63803 | 16 | URL: https://wiki.gnome.org/Apps/SystemMonitor |
efb18fc7 | 17 | BuildRequires: atkmm-devel >= 2.28 |
25b25557 | 18 | BuildRequires: docbook-dtd412-xml |
adb2452e | 19 | BuildRequires: gettext-tools >= 0.19.8 |
32821523 | 20 | BuildRequires: gcc >= 6:4.7 |
adb2452e | 21 | BuildRequires: glib2-devel >= 1:2.56.0 |
f8a5123b | 22 | BuildRequires: glibmm-devel >= 2.46.0 |
f8a5123b | 23 | BuildRequires: gtk+3-devel >= 3.22.0 |
d87d55f4 | 24 | BuildRequires: gtkmm3-devel >= 3.4.0 |
d1556cef | 25 | BuildRequires: libgtop-devel >= 1:2.38.0 |
32821523 | 26 | BuildRequires: libhandy1-devel >= 1.5.0 |
74e3909c | 27 | BuildRequires: librsvg-devel >= 2.35.0 |
8696548b | 28 | BuildRequires: libstdc++-devel >= 6:4.7 |
9a69ce4a | 29 | %{?with_wnck:BuildRequires: libwnck-devel >= 3.0.0} |
7e8480ac | 30 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2b7b531d | 31 | BuildRequires: libxml2-progs |
32821523 | 32 | BuildRequires: meson >= 0.57.0 |
9a69ce4a | 33 | BuildRequires: ninja >= 1.5 |
c0c20776 | 34 | BuildRequires: pkgconfig >= 1:0.19 |
ea50fb96 | 35 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
9a69ce4a | 36 | BuildRequires: rpmbuild(macros) >= 1.736 |
dde8056b | 37 | %{?with_systemd:BuildRequires: systemd-devel >= 44} |
9a69ce4a JB |
38 | BuildRequires: tar >= 1:1.22 |
39 | BuildRequires: xz | |
ef659639 | 40 | BuildRequires: yelp-tools |
9a69ce4a | 41 | Requires(post,postun): glib2 >= 1:2.56.0 |
efb18fc7 | 42 | Requires: atkmm >= 2.28 |
adb2452e | 43 | Requires: glib2 >= 1:2.56.0 |
f8a5123b | 44 | Requires: glibmm >= 2.46.0 |
f8a5123b | 45 | Requires: gtk+3 >= 3.22.0 |
dde8056b | 46 | Requires: gtkmm3 >= 3.4.0 |
9a69ce4a | 47 | Requires: hicolor-icon-theme |
d1556cef | 48 | Requires: libgtop >= 1:2.38.0 |
32821523 | 49 | Requires: libhandy1 >= 1.5.0 |
8696548b | 50 | Requires: librsvg >= 2.35.0 |
32821523 | 51 | Obsoletes: procman < 1.1 |
e63001a1 | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
e63001a1 | 54 | %description |
55 | This is a simple process and system monitor. | |
56 | ||
43766127 | 57 | %description -l pl.UTF-8 |
f64e776c | 58 | GNOME System Monitor to prosty monitor procesów i systemu. |
e63001a1 | 59 | |
60 | %prep | |
61 | %setup -q | |
32821523 | 62 | %patch0 -p1 |
ea50fb96 | 63 | |
e63001a1 | 64 | %build |
9a69ce4a JB |
65 | %meson build \ |
66 | %{!?with_systemd:-Dsystemd=false} \ | |
67 | %{?with_wnck:-Dwnck=true} | |
68 | ||
cc2c8ece | 69 | %ninja_build -C build |
e63001a1 | 70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
cc2c8ece | 74 | %ninja_install -C build |
e63001a1 | 75 | |
872c223c | 76 | %find_lang %{name} --with-gnome |
e63001a1 | 77 | |
53b28cc2 JB |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
e63001a1 | 81 | %post |
cf67ab28 | 82 | %glib_compile_schemas |
e63001a1 | 83 | |
a2e6a2ed | 84 | %postun |
cf67ab28 | 85 | %glib_compile_schemas |
e63001a1 | 86 | |
e63001a1 | 87 | %files -f %{name}.lang |
88 | %defattr(644,root,root,755) | |
efb18fc7 | 89 | %doc AUTHORS MAINTAINERS NEWS README.md |
e63001a1 | 90 | %attr(755,root,root) %{_bindir}/gnome-system-monitor |
adb2452e MB |
91 | %dir %{_libexecdir}/gnome-system-monitor |
92 | %attr(755,root,root) %{_libexecdir}/gnome-system-monitor/gsm-kill | |
93 | %attr(755,root,root) %{_libexecdir}/gnome-system-monitor/gsm-renice | |
efb18fc7 | 94 | %attr(755,root,root) %{_libexecdir}/gnome-system-monitor/gsm-taskset |
cf67ab28 MB |
95 | %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.enums.xml |
96 | %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.gschema.xml | |
9a69ce4a JB |
97 | %{_datadir}/gnome-system-monitor |
98 | %{_datadir}/metainfo/gnome-system-monitor.appdata.xml | |
74e3909c | 99 | %{_datadir}/polkit-1/actions/org.gnome.gnome-system-monitor.policy |
9a69ce4a JB |
100 | %{_desktopdir}/gnome-system-monitor.desktop |
101 | %{_desktopdir}/gnome-system-monitor-kde.desktop | |
102 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.SystemMonitor.svg | |
bf0136a5 | 103 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.SystemMonitor.Devel.svg |
9a69ce4a | 104 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.SystemMonitor-symbolic.svg |
efb18fc7 | 105 | %{_iconsdir}/hicolor/symbolic/apps/speedometer-symbolic.svg |