Init package
This commit is contained in:
parent
92f03fedea
commit
f9b4901eb1
BIN
xfce4-diskperf-plugin-2.6.2.tar.bz2
Normal file
BIN
xfce4-diskperf-plugin-2.6.2.tar.bz2
Normal file
Binary file not shown.
53
xfce4-diskperf-plugin.spec
Normal file
53
xfce4-diskperf-plugin.spec
Normal file
@ -0,0 +1,53 @@
|
||||
%global xfceversion 4.14
|
||||
%global _hardened_build 1
|
||||
|
||||
Name: xfce4-diskperf-plugin
|
||||
Version: 2.6.2
|
||||
Release: 1
|
||||
Summary: Disk performance plugin for the Xfce panel
|
||||
License: BSD
|
||||
#Group: Development/Libraries
|
||||
URL: http://goodies.xfce.org/panel-plugins/{%name}
|
||||
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/2.6/%{name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
#BuildArch: noarch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libxfce4ui-devel >= %{xfceversion}
|
||||
BuildRequires: xfce4-panel-devel >= %{xfceversion}
|
||||
BuildRequires: gettext
|
||||
BuildRequires: intltool
|
||||
Requires: xfce4-panel >= %{xfceversion}
|
||||
|
||||
%description
|
||||
The DiskPerf plugin displays disk/partition performance statistics
|
||||
based on the rsect/wsect data provided by the Linux kernel.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
sed -i '36i#include <sys\/sysmacros.h>' panel-plugin/devperf.c
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# remove la file
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
# make sure debuginfo is generated properly
|
||||
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS ChangeLog NEWS README
|
||||
%license COPYING
|
||||
%{_libdir}/xfce4/panel/plugins/*.so
|
||||
%{_datadir}/xfce4/panel/plugins/*.desktop
|
||||
|
||||
%changelog
|
||||
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 2.6.2-1
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user