xfce4-power-manager/xfce4-power-manager.spec

93 lines
2.8 KiB
RPMSpec
Raw Normal View History

2023-01-04 17:46:26 +08:00
%global xfceversion 4.18
2021-06-16 11:00:10 +08:00
2020-07-12 13:02:18 +08:00
Name: xfce4-power-manager
2023-01-04 17:46:26 +08:00
Version: 4.18.0
2021-06-16 11:00:10 +08:00
Release: 1
Summary: Power management for the Xfce desktop environment
2020-07-12 13:02:18 +08:00
License: GPLv2+
URL: http://goodies.xfce.org/projects/applications/%{name}
2021-06-16 11:00:10 +08:00
#VCS: git:git://git.xfce.org/xfce/xfce4-power-manager
2022-06-23 15:23:01 +08:00
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
2020-07-12 13:02:18 +08:00
Source1: %{name}.xml
2021-06-16 11:00:10 +08:00
BuildRequires: make
2020-07-12 13:02:18 +08:00
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libxfconf-0) >= %{xfceversion}
BuildRequires: pkgconfig(libxfce4ui-2) >= %{xfceversion}
2021-06-16 11:00:10 +08:00
BuildRequires: pkgconfig(libxfce4panel-2.0) >= %{xfceversion}
2020-07-12 13:02:18 +08:00
BuildRequires: pkgconfig(dbus-1) >= 0.60
BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
BuildRequires: pkgconfig(libnotify) >= 0.4.1
BuildRequires: pkgconfig(xrandr) >= 1.2.0
2021-06-16 11:00:10 +08:00
BuildRequires: xorg-x11-proto-devel >= 1.0.0
2020-07-12 13:02:18 +08:00
BuildRequires: gettext
BuildRequires: intltool
2021-06-16 11:00:10 +08:00
BuildRequires: desktop-file-utils
2020-07-12 13:02:18 +08:00
BuildRequires: upower-devel
2021-06-16 11:00:10 +08:00
BuildRequires: libappstream-glib
2020-07-12 13:02:18 +08:00
Requires: xfce4-panel >= %{xfceversion}
Requires: polkit
Requires: upower >= 0.99
%description
2021-06-16 11:00:10 +08:00
Xfce Power Manager uses the information and facilities provided by HAL to
display icons and handle user callbacks in an interactive Xfce session.
Xfce Power Preferences allows authorised users to set policy and change
preferences.
2020-07-12 13:02:18 +08:00
%prep
%setup -q
%build
%configure
%make_build
%install
%make_install
# install xfpm default config
mkdir -p %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
cp -p %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/
%find_lang %{name}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-settings.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%files -f %{name}.lang
%license COPYING
2021-06-16 11:00:10 +08:00
%doc AUTHORS ChangeLog NEWS TODO
2020-07-12 13:02:18 +08:00
%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/%{name}.xml
%{_bindir}/%{name}
%{_bindir}/%{name}-settings
%{_sbindir}/xfce4-pm-helper
%{_metainfodir}/%{name}.appdata.xml
%{_libdir}/xfce4/panel/plugins/libxfce4powermanager.so
%{_datadir}/xfce4/panel/plugins/power-manager-plugin.desktop
%{_sbindir}/xfpm-power-backlight-helper
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_datadir}/applications/%{name}-settings.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{_datadir}/polkit-1/actions/org.xfce.power.policy
%doc
%{_mandir}/man1/%{name}-settings.1.*
%{_mandir}/man1/%{name}.1.*
%changelog
2023-01-04 17:46:26 +08:00
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-1
- Update to 4.18.0
2022-06-23 15:23:01 +08:00
* Mon Jun 20 2022 zhanglin <lin.zhang@turbolinux.com.cn> - 4.16.0-1
- Update to 4.16.0
2021-06-16 11:00:10 +08:00
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 1.7.1-1
- Update to 1.7.1
2020-07-12 13:02:18 +08:00
* Sun Jul 12 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.6.6-1
- Init package