!3 upgrade to 1.4.0 for xfce 4.16

From: @zhang__3125
Reviewed-by: @dwl301
Signed-off-by: @dwl301
This commit is contained in:
openeuler-ci-bot 2021-06-25 04:24:27 +00:00 committed by Gitee
commit 1a5c8fa5ba
3 changed files with 14 additions and 14 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,21 +1,22 @@
%global xfceversion 4.14 %global minorversion 1.4
%global xfceversion 4.16
%global _hardened_build 1 %global _hardened_build 1
Name: xfce4-netload-plugin Name: xfce4-netload-plugin
Version: 1.3.2 Version: 1.4.0
Release: 1 Release: 1
Summary: Network-load monitor for the Xfce panel Summary: Network-load monitor for the Xfce panel
License: GPLv2+ License: GPLv2+
#Group: Development/Libraries
URL: http://goodies.xfce.org/projects/panel-plugins/%{name} URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/1.3/%{name}-%{version}.tar.bz2 Source0: http://archive.xfce.org/src/panel-plugins/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildArch: noarch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkgconfig(libxfce4panel-1.0) >= %{xfceversion} BuildRequires: pkgconfig(libxfce4panel-2.0) >= %{xfceversion}
BuildRequires: pkgconfig(libxfce4ui-1) >= %{xfceversion} BuildRequires: pkgconfig(libxfce4ui-2) >= %{xfceversion}
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: gettext, intltool BuildRequires: gettext, intltool
Requires: xfce4-panel >= %{xfceversion} Requires: xfce4-panel >= %{xfceversion}
%description %description
@ -31,20 +32,19 @@ A network-load monitor plugin for the Xfce panel.
%install %install
%make_install %make_install
%find_lang %{name} %find_lang %{name}
chmod 755 %{buildroot}/%{_libdir}/xfce4/panel/plugins/libnetload.so
# remove la file rm -f %{buildroot}/%{_libdir}/xfce4/panel/plugins/libnetload.la
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# make sure debuginfo is generated properly
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
%files -f %{name}.lang %files -f %{name}.lang
%doc AUTHORS ChangeLog README %doc AUTHORS ChangeLog README
%license COPYING %license COPYING
%{_datadir}/icons/hicolor/*/*/* %{_datadir}/icons/hicolor/*/*/*
%{_libdir}/xfce4/panel/plugins/*.so %{_libdir}/xfce4/panel/plugins/libnetload.so
%{_datadir}/xfce4/panel/plugins/*.desktop %{_datadir}/xfce4/panel/plugins/*.desktop
%changelog %changelog
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 1.4.0-1
- Update to 1.4.0
* Wed Jul 15 2020 <dillon.chen@turbolinux.com.cn> - 1.3.2-1 * Wed Jul 15 2020 <dillon.chen@turbolinux.com.cn> - 1.3.2-1
- Init package - Init package