|
|
c442bec |
%global commit c0abadf3cd07eb2b5e5ad694f680705c7b1c764e
|
|
|
fc4fc9d |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
c442bec |
%global checkout .20161118git%{shortcommit}
|
|
|
fc4fc9d |
|
|
|
83016bd |
|
|
|
c5ee0b1 |
Summary: View GPU utilization of AMD/ATI Radeon devices
|
|
|
c5ee0b1 |
Name: radeontop
|
|
|
c5ee0b1 |
Version: 1.0
|
|
|
6ec8839 |
Release: 5%{?dist}
|
|
|
c5ee0b1 |
License: GPLv3
|
|
|
c5ee0b1 |
URL: https://github.com/clbr/%{name}
|
|
|
fc4fc9d |
|
|
|
600343a |
# wget https://github.com/clbr/radeontop/archive/v1.0/radeontop-1.0.tar.gz
|
|
|
600343a |
#Source0: %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
c5ee0b1 |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
c5ee0b1 |
Source1: %{name}.metainfo.xml
|
|
|
fc4fc9d |
|
|
|
c5ee0b1 |
BuildRequires: asciidoc gettext
|
|
|
c5ee0b1 |
BuildRequires: libappstream-glib
|
|
|
c5ee0b1 |
BuildRequires: pkgconfig(ncurses)
|
|
|
c5ee0b1 |
BuildRequires: pkgconfig(pciaccess)
|
|
|
c5ee0b1 |
BuildRequires: pkgconfig(libdrm)
|
|
|
c5ee0b1 |
BuildRequires: libxcb-devel
|
|
|
a97e845 |
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
%description
|
|
|
fc4fc9d |
RadeonTop shows the utilization of your GPU, both in general and by blocks.
|
|
|
fc4fc9d |
Supported cards are R600 and up.
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
%prep
|
|
|
600343a |
%autosetup -n %{name}-%{version}
|
|
|
fc4fc9d |
mkdir .git
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
%build
|
|
|
fc4fc9d |
# configure doesn't exist, but we need the exported CFLAGS and friends
|
|
|
fc4fc9d |
%configure || :
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
# plain=1 prevents stripping
|
|
|
fc4fc9d |
# CC="..." to also pass -g
|
|
|
fc4fc9d |
# Upstream patch: https://github.com/clbr/radeontop/pull/8
|
|
|
fc4fc9d |
make all %{?_smp_mflags} PREFIX=%{_prefix} plain=1 CC="gcc -g"
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
%install
|
|
|
a97e845 |
%make_install PREFIX=%{_prefix} LIBDIR=%{_lib}
|
|
|
fc4fc9d |
%find_lang %{name}
|
|
|
fc4fc9d |
|
|
|
c5ee0b1 |
# Add AppStream metadata
|
|
|
c5ee0b1 |
install -Dm 0644 -p %{SOURCE1} \
|
|
|
c5ee0b1 |
%{buildroot}%{_datadir}/metainfo/%{name}.metainfo.xml
|
|
|
c5ee0b1 |
|
|
|
c5ee0b1 |
%check
|
|
|
c5ee0b1 |
# Validate Appstream metadata
|
|
|
c5ee0b1 |
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/%{name}.metainfo.xml
|
|
|
c5ee0b1 |
|
|
|
fc4fc9d |
%files -f %{name}.lang
|
|
|
fc4fc9d |
%doc README.md
|
|
|
fc4fc9d |
%license COPYING
|
|
|
a97e845 |
%{_sbindir}/%{name}
|
|
|
a97e845 |
# Workaround failure to build on /usr/lib64
|
|
|
a97e845 |
%{_libdir}/libradeontop_xcb.so
|
|
|
a97e845 |
%{_mandir}/man1/%{name}.1*
|
|
|
fc4fc9d |
|
|
|
c5ee0b1 |
#AppStream metadata
|
|
|
c5ee0b1 |
%{_datadir}/metainfo/%{name}.metainfo.xml
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
%changelog
|
|
|
6ec8839 |
* Sat Aug 05 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0-5
|
|
|
c5ee0b1 |
- Add metainfo file
|
|
|
c5ee0b1 |
|
|
|
600343a |
* Thu Jan 19 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0-1
|
|
|
600343a |
- Update to upstream 1.0
|
|
|
600343a |
|
|
|
c442bec |
* Fri Nov 18 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9-5.20161118gitc0abadf
|
|
|
c442bec |
- Latest git snapshot
|
|
|
c442bec |
|
|
|
a97e845 |
* Thu Aug 25 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9-4.20160825git6fb1c5c
|
|
|
a97e845 |
- Latest git snapshot
|
|
|
a97e845 |
- Added libxcb dependency
|
|
|
a97e845 |
|
|
|
a97e845 |
* Wed Jul 20 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9-3.20160704gitbb3ed18
|
|
|
a97e845 |
- Latest git snapshot
|
|
|
a97e845 |
|
|
|
fc4fc9d |
* Fri May 27 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9-2.20160527git2047d13
|
|
|
fc4fc9d |
- Fix Changelog in prescribed format.
|
|
|
fc4fc9d |
- Remove obsolete Group field from spec
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
* Fri May 27 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9-1.20160527git2047d13
|
|
|
fc4fc9d |
- Update to upstream 0.9
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
* Sun Feb 15 2015 Fabian Deutsch <fabiand@fedoraproject.org> - 0.8-1.20150215git281462c
|
|
|
fc4fc9d |
- Update to upstream 0.8
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
* Thu Apr 24 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.7-2.20140421giteadc100
|
|
|
fc4fc9d |
- Fix commit position, BuildRequirements, build, and man page inclusion (thanks mschwendt)
|
|
|
fc4fc9d |
|
|
|
fc4fc9d |
* Mon Apr 21 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.7-1.20140421giteadc100
|
|
|
fc4fc9d |
- Initial package
|
|
|
fc4fc9d |
|