File radeontop.spec of Package radeontop

Name: radeontop
Url: https://github.com/clbr/%name
Version: 1.0
Release: 1
Group: System/Monitoring
Summary: View Radeon GPU utilization
License: GPL-3.0
Source: %name-%version.tar.xz
#Patch0: %name-%version-git.patch
Patch1: %name-ncurses.patch

BuildRequires: pkg-config pkgconfig(pciaccess) pkgconfig(libdrm) pkgconfig(xcb)
%if 0%{?suse_version} == 1315
BuildRequires: ncurses-devel
%else
BuildRequires: pkgconfig(ncurses)
%endif

%description
View Radeon GPU utilization, both for the total activity percent and individual
blocks.
Supported cards R600 and up, even Southern Islands should work fine. Works with
both the open drivers and AMD Catalyst.
The total GPU utilization is also valid for OpenCL loads; the other blocks are
only useful in GL loads.


%prep
%setup -q
#patch0 -p1
%patch1 -p1


%build
export CFLAGS="%optflags"
make %{?_smp_mflags}


%install
%make_install LIBDIR=%_lib

%find_lang %name


%files -f %name.lang
%defattr(-,root,root,-)
%doc README*
%_sbindir/*
%_libdir/*
%_mandir/man1/*


%changelog
openSUSE Build Service is sponsored by