58 lines
1.4 KiB
RPMSpec
58 lines
1.4 KiB
RPMSpec
%global minorversion 1.2
|
|
%global xfceversion 4.16
|
|
%global _hardened_build 1
|
|
|
|
Name: xfce4-cpugraph-plugin
|
|
Version: 1.2.3
|
|
Release: 1
|
|
Summary: CPU load graph plugin for the Xfce4 panel
|
|
License: GPLv2+
|
|
URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
|
|
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libxfce4ui-devel
|
|
BuildRequires: xfce4-panel-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: gettext
|
|
|
|
Requires: xfce4-panel >= %{xfceversion}
|
|
|
|
%description
|
|
It displays a graph of the recent system load using information provided
|
|
by the kernel. The colors and the size of the plugin are customizable.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
|
|
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
make check
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS ChangeLog NEWS
|
|
%license COPYING
|
|
%{_libdir}/xfce4/panel/plugins/*.so
|
|
%{_datadir}/xfce4/panel/plugins/*.desktop
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
%changelog
|
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 1.2.3-1
|
|
- Update to 1.2.3
|
|
|
|
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.1.0-1
|
|
- Init package
|