3 %bcond_with gtk3 # use GTK+ 3.x instead of 2.x
5 Summary: Process and resource monitor for MATE desktop
6 Summary(pl.UTF-8): Monitor procesów w zasobów dla środowiska MATE
7 Name: mate-system-monitor
11 Group: X11/Applications
12 Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
13 # Source0-md5: 632af25880e356f41094f5268f30be14
14 URL: http://mate-desktop.org/
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: dbus-glib-devel >= 0.70
18 BuildRequires: desktop-file-utils
19 BuildRequires: docbook-dtd412-xml
20 BuildRequires: gettext-tools >= 0.10.40
21 BuildRequires: glib2-devel >= 1:2.36.0
22 BuildRequires: glibmm-devel >= 2.26.0
23 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.20.0}
24 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
25 %{!?with_gtk3:BuildRequires: gtkmm-devel >= 2.22}
26 %{?with_gtk3:BuildRequires: gtkmm3-devel >= 3.0.0}
27 BuildRequires: intltool >= 0.50.1
28 BuildRequires: libgtop-devel >= 1:2.23.1
29 BuildRequires: librsvg-devel >= 2.35
30 BuildRequires: libstdc++-devel >= 6:4.7
31 BuildRequires: libtool >= 2:2.2
32 %{?with_gtk3:BuildRequires: libwnck-devel >= 3.0.0}
33 %{!?with_gtk3:BuildRequires: libwnck2-devel >= 2.5.0}
34 BuildRequires: libxml2-devel >= 2.0
35 BuildRequires: mate-common
36 BuildRequires: pkgconfig >= 1:0.19
37 BuildRequires: rpmbuild(find_lang) >= 1.36
38 BuildRequires: rpmbuild(macros) >= 1.311
39 BuildRequires: startup-notification-devel
40 BuildRequires: systemd-devel >= 44
41 BuildRequires: tar >= 1:1.22
43 BuildRequires: yelp-tools
44 Requires: glib2 >= 1:2.36.0
45 Requires: glibmm >= 2.26.0
46 %{!?with_gtk3:Requires: gtk+2 >= 2:2.20.0}
47 %{?with_gtk3:Requires: gtk+3 >= 3.0.0}
48 %{!?with_gtk3:Requires: gtkmm >= 2.22}
49 %{?with_gtk3:Requires: gtkmm3 >= 3.0.0}
50 Requires: libgtop >= 1:2.23.1
51 Requires: librsvg >= 2.35
52 %{?with_gtk3:Requires: libwnck >= 3.0.0}
53 %{!?with_gtk3:Requires: libwnck2 >= 2.5.0}
54 Requires: mate-desktop
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 mate-system-monitor allows to graphically view and manipulate the
59 running processes on your system. It also provides an overview of
60 available resources such as CPU and memory.
62 %description -l pl.UTF-8
63 mate-system-monitor pozwala na graficzny podgląd i operowanie na
64 procesach działających w systemie. Zapewnia także widok dostępnych
65 zasobów, takich jak procesor i pamięć.
77 --disable-silent-rules \
79 --enable-compile-warnings=minimum \
80 %{?with_gtk3:--with-gtk=3.0}
85 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
89 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
90 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/%{name}.convert
92 # not supported by glibc (as of 2.19-3)
93 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nah
95 desktop-file-install \
97 --remove-category=MATE \
98 --add-category=X-Mate \
99 --dir $RPM_BUILD_ROOT%{_desktopdir} \
100 $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
102 %find_lang %{name} --with-mate
105 rm -rf $RPM_BUILD_ROOT
108 %glib_compile_schemas
111 %glib_compile_schemas
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog NEWS README TODO
116 %attr(755,root,root) %{_bindir}/%{name}
117 %{_mandir}/man1/mate-system-monitor.1*
118 %{_desktopdir}/%{name}.desktop
119 %{_pixmapsdir}/%{name}
120 %{_datadir}/appdata/mate-system-monitor.appdata.xml
121 %{_datadir}/glib-2.0/schemas/org.mate.system-monitor.*.xml