1
0
mate-system-monitor/mate-system-monitor.spec

110 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for mate-system-monitor
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Nelson Marques <nmarques@gmail.com>
#
# 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/
Name: mate-system-monitor
Version: 1.5.0
Release: 0
License: GPL-2.0+
Summary: MATE Desktop system monitor
Url: http://mate-desktop.org
Group: System/GUI/Other
Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
# openSUSE branded image to replace original
Source1: side-openSUSE.png
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
# PATCH-FIX-UPSTREAM mate-system-monitor-1.5.0-fix_desktop_file.patch nmarques@mate-desktop.org
# add missing semi-colon to OnlyShowIn in desktop file - upstreamed
Patch0: %{name}-1.5.0-fix_desktop_file.patch
BuildRequires: gcc-c++
BuildRequires: fdupes
BuildRequires: libxml2-python
BuildRequires: mate-common
BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libmatewnck)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(glibmm-2.4)
BuildRequires: pkgconfig(giomm-2.4)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtkmm-2.4)
BuildRequires: pkgconfig(mate-doc-utils)
BuildRequires: pkgconfig(mate-icon-theme)
BuildRequires: pkgconfig(gtkmm-2.4)
BuildRequires: update-desktop-files
BuildRequires: xz
%lang_package
%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.
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-static \
--libexecdir=%{_libexecdir}/${name} \
--disable-scrollkeeper
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}%{_datadir}/mate
if [ -f %{buildroot}%{_datadir}/pixmaps/%{name}/side.png ]; then
rm %{buildroot}%{_datadir}/pixmaps/%{name}/side.png
install -D -m 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}/side.png
fi
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_post
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%dir %{_datadir}/omf/%{name}
%{_bindir}/mate-system-monitor
%{_datadir}/applications/mate-system-monitor.desktop
%{_datadir}/pixmaps/%{name}/
%{_datadir}/mate/help/
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/omf/%{name}/%{name}-C.omf
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog