]>
Commit | Line | Data |
---|---|---|
03008618 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
4 | ||
31a4f9c9 JB |
5 | Summary: Process and resource monitor for MATE desktop |
6 | Summary(pl.UTF-8): Monitor procesów w zasobów dla środowiska MATE | |
c2412cac | 7 | Name: mate-system-monitor |
147efeb7 | 8 | Version: 1.10.1 |
97175843 | 9 | Release: 1 |
c2412cac ER |
10 | License: GPL v2+ |
11 | Group: X11/Applications | |
97175843 | 12 | Source0: http://pub.mate-desktop.org/releases/1.10/%{name}-%{version}.tar.xz |
147efeb7 | 13 | # Source0-md5: bf2335591e9810b1c8cad162cde8d3ee |
c2412cac | 14 | URL: http://mate-desktop.org/ |
97175843 JB |
15 | BuildRequires: autoconf >= 2.63 |
16 | BuildRequires: automake >= 1:1.11 | |
31a4f9c9 | 17 | BuildRequires: dbus-glib-devel >= 0.70 |
c2412cac | 18 | BuildRequires: desktop-file-utils |
90ee71f8 | 19 | BuildRequires: docbook-dtd412-xml |
f853f222 | 20 | BuildRequires: gettext-tools >= 0.10.40 |
97175843 | 21 | BuildRequires: glib2-devel >= 1:2.36.0 |
31a4f9c9 | 22 | BuildRequires: glibmm-devel >= 2.26.0 |
03008618 JB |
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} | |
97175843 | 27 | BuildRequires: intltool >= 0.41.0 |
31a4f9c9 | 28 | BuildRequires: libgtop-devel >= 1:2.23.1 |
97175843 JB |
29 | BuildRequires: librsvg-devel >= 2.35 |
30 | BuildRequires: libtool >= 2:2.2 | |
03008618 JB |
31 | %{?with_gtk3:BuildRequires: libwnck-devel >= 3.0.0} |
32 | %{!?with_gtk3:BuildRequires: libwnck2-devel >= 2.5.0} | |
31a4f9c9 | 33 | BuildRequires: libxml2-devel >= 2.0 |
c2412cac | 34 | BuildRequires: mate-common |
31a4f9c9 JB |
35 | BuildRequires: mate-icon-theme-devel >= 1.1.0 |
36 | BuildRequires: pkgconfig >= 1:0.19 | |
c2412cac ER |
37 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
38 | BuildRequires: rpmbuild(macros) >= 1.311 | |
39 | BuildRequires: startup-notification-devel | |
97175843 | 40 | BuildRequires: systemd-devel >= 44 |
c2412cac ER |
41 | BuildRequires: tar >= 1:1.22 |
42 | BuildRequires: xz | |
2fffd0d7 | 43 | BuildRequires: yelp-tools |
97175843 | 44 | Requires: glib2 >= 1:2.36.0 |
31a4f9c9 | 45 | Requires: glibmm >= 2.26.0 |
03008618 JB |
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} | |
31a4f9c9 | 50 | Requires: libgtop >= 1:2.23.1 |
97175843 | 51 | Requires: librsvg >= 2.35 |
03008618 JB |
52 | %{?with_gtk3:Requires: libwnck >= 3.0.0} |
53 | %{!?with_gtk3:Requires: libwnck2 >= 2.5.0} | |
c2412cac | 54 | Requires: mate-desktop |
31a4f9c9 | 55 | Requires: mate-icon-theme >= 1.1.0 |
c2412cac ER |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
58 | %description | |
90ee71f8 ER |
59 | mate-system-monitor allows to graphically view and manipulate the |
60 | running processes on your system. It also provides an overview of | |
61 | available resources such as CPU and memory. | |
c2412cac | 62 | |
31a4f9c9 JB |
63 | %description -l pl.UTF-8 |
64 | mate-system-monitor pozwala na graficzny podgląd i operowanie na | |
65 | procesach działających w systemie. Zapewnia także widok dostępnych | |
66 | zasobów, takich jak procesor i pamięć. | |
67 | ||
c2412cac ER |
68 | %prep |
69 | %setup -q | |
70 | ||
71 | %build | |
121467d0 ER |
72 | %{__libtoolize} |
73 | %{__aclocal} | |
74 | %{__autoconf} | |
75 | %{__autoheader} | |
76 | %{__automake} | |
c2412cac | 77 | %configure \ |
121467d0 | 78 | --disable-silent-rules \ |
c2412cac | 79 | --disable-static \ |
03008618 JB |
80 | --enable-compile-warnings=minimum \ |
81 | %{?with_gtk3:--with-gtk=3.0} | |
c2412cac ER |
82 | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
91 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/%{name}.convert | |
92 | ||
03008618 JB |
93 | # not supported by glibc (as of 2.19-3) |
94 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nah | |
8c23930a | 95 | |
c2412cac ER |
96 | desktop-file-install \ |
97 | --delete-original \ | |
98 | --remove-category=MATE \ | |
99 | --add-category=X-Mate \ | |
100 | --dir $RPM_BUILD_ROOT%{_desktopdir} \ | |
101 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
102 | ||
03008618 | 103 | %find_lang %{name} --with-mate |
c2412cac ER |
104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post | |
109 | %glib_compile_schemas | |
110 | ||
111 | %postun | |
112 | %glib_compile_schemas | |
113 | ||
114 | %files -f %{name}.lang | |
115 | %defattr(644,root,root,755) | |
31a4f9c9 | 116 | %doc AUTHORS ChangeLog NEWS README TODO |
c2412cac | 117 | %attr(755,root,root) %{_bindir}/%{name} |
121467d0 | 118 | %{_mandir}/man1/mate-system-monitor.1* |
c2412cac ER |
119 | %{_desktopdir}/%{name}.desktop |
120 | %{_pixmapsdir}/%{name} | |
97175843 | 121 | %{_datadir}/appdata/mate-system-monitor.appdata.xml |
c2412cac | 122 | %{_datadir}/glib-2.0/schemas/org.mate.system-monitor.*.xml |