Name:           gnome-system-monitor
Version:        3.28.2
Release:        2
Summary:        A process and system monitor for the GNOME desktop
License:        GPLv2+
URL:            http://www.gnome.org/
Source0:        http://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz

BuildRequires:  gcc-c++ pkgconfig(libgtop-2.0) pkgconfig(gtk+-3.0) pkgconfig(gtkmm-3.0) pkgconfig(libsystemd)
BuildRequires:  pkgconfig(librsvg-2.0) pkgconfig(libxml-2.0) itstool polkit-devel
Requires:       libgtop2%{?_isa} >= 2.37.2

%description
gnome-system-monitor is a system and process monitor for the GNOME
desktop. It shows running processses and available resources on
the system.

%prep
%autosetup -n %{name}-%{version} -p1

%build
%configure --enable-systemd
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} --with-gnome

%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS NEWS
%license COPYING
%{_bindir}/gnome-system-monitor
%{_datadir}/applications/gnome-system-monitor*.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.*.xml
%{_datadir}/gnome-system-monitor/
%{_datadir}/metainfo/*.xml
%{_datadir}/polkit-1/actions/*.policy
%{_libexecdir}/gnome-system-monitor/

%changelog
* Fri Nov 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.28.2-2
- Delete unused buildrequires

* Thu Nov 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.28.2-1
- Package init
