58 lines
1.5 KiB
RPMSpec
58 lines
1.5 KiB
RPMSpec
%global minorversion 1.1
|
|
%global xfceversion 4.16
|
|
%global _hardened_build 1
|
|
|
|
Name: xfce4-battery-plugin
|
|
Version: 1.1.4
|
|
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}/%{minorversion}/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
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
|
|
|
|
%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
|
|
%{_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.1.4-1
|
|
- Update to 1.1.4
|
|
|
|
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.1.3-1
|
|
- Init package
|