a494d840f5
OBS-URL: https://build.opensuse.org/package/show/X11:MATE:Factory/mate-system-monitor?expand=0&rev=20
109 lines
3.1 KiB
RPMSpec
109 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package mate-system-monitor
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _version 1.12
|
|
Name: mate-system-monitor
|
|
Version: 1.12.2
|
|
Release: 0
|
|
Summary: MATE Desktop system monitor
|
|
License: GPL-2.0+
|
|
Group: System/GUI/Other
|
|
Url: http://mate-desktop.org/
|
|
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-OPENSUSE mate-system-monitor-xdgsu.patch -- Use xdg-su instead of gksu.
|
|
Patch0: %{name}-xdgsu.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libxml2-python
|
|
BuildRequires: mate-common >= %{_version}
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: yelp-tools
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
BuildRequires: pkgconfig(dconf)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
BuildRequires: pkgconfig(gtkmm-2.4)
|
|
BuildRequires: pkgconfig(libgtop-2.0)
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
BuildRequires: pkgconfig(libwnck-1.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
Requires: xdg-utils
|
|
Recommends: %{name}-lang
|
|
%glib2_gsettings_schema_requires
|
|
%if 0%{?suse_version} > 1310
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
%else
|
|
BuildRequires: pkgconfig(libsystemd-login)
|
|
%endif
|
|
|
|
%description
|
|
Process viewer and system resource monitor for the MATE. This
|
|
package allows you to graphically view and manipulate the running
|
|
processes on your system. It also provides an overview of available
|
|
resources such as CPU and memory.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
NOCONFIGURE=1 mate-autogen
|
|
%configure \
|
|
--disable-static \
|
|
--disable-scrollkeeper \
|
|
--libexecdir=%{_libexecdir}/%{name} \
|
|
--enable-systemd
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
%find_lang %{name} %{?no_lang_C}
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
%fdupes %{buildroot}%{_datadir}/
|
|
|
|
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
|
|
rm -rf %{buildroot}%{_datadir}/MateConf/
|
|
fi
|
|
|
|
%post
|
|
%desktop_database_post
|
|
%glib2_gsettings_schema_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING NEWS
|
|
%doc %{_datadir}/help/C/%{name}/
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/glib-2.0/schemas/*.xml
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}/
|
|
%dir %{_datadir}/appdata/
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
%{_mandir}/man?/%{name}.?%{?ext_man}
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|