xfce4-battery-plugin/xfce4-battery-plugin.spec
2020-07-14 16:25:46 +08:00

54 lines
1.5 KiB
RPMSpec

%global xfceversion 4.14
%global _hardened_build 1
Name: xfce4-battery-plugin
Version: 1.1.3
Release: 1
Summary: Battery monitor panel plugin for Xfce
License: GPLv2+
Group: Development/Libraries
URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/1.1/%{name}-%{version}.tar.bz2
Patch0: 01_no-sysctl.patch
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
A battery monitor panel plugin for Xfce4, compatible with APM and ACPI,
using either /proc files or the new sysfs files for recent kernels.
%prep
%autosetup -p1
%build
%configure
%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
%license COPYING
%doc AUTHORS COPYING.LIB ChangeLog README
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/icons/hicolor/*/*/*
%changelog
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.1.3-1
- Init package