Compare commits
11 Commits
6e826a4f2c
...
08f7856c11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08f7856c11 | ||
|
|
d7fbb270ec | ||
|
|
68cc47620c | ||
|
|
6a7e9ba493 | ||
|
|
790a1ae558 | ||
|
|
0c5c8e9434 | ||
|
|
42eab5691d | ||
|
|
484add897b | ||
|
|
58a5ff4d49 | ||
|
|
35bc0752e2 | ||
|
|
a9a352d3b7 |
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# xfce4-power-manager
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
Power management for the Xfce desktop environment
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# xfce4-power-manager
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
Power management for the Xfce desktop environment
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
xfce4-power-manager-4.18.0.tar.bz2
Normal file
BIN
xfce4-power-manager-4.18.0.tar.bz2
Normal file
Binary file not shown.
92
xfce4-power-manager.spec
Normal file
92
xfce4-power-manager.spec
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
%global xfceversion 4.18
|
||||||
|
|
||||||
|
Name: xfce4-power-manager
|
||||||
|
Version: 4.18.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Power management for the Xfce desktop environment
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
|
URL: http://goodies.xfce.org/projects/applications/%{name}
|
||||||
|
#VCS: git:git://git.xfce.org/xfce/xfce4-power-manager
|
||||||
|
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: %{name}.xml
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pkgconfig(libxfconf-0) >= %{xfceversion}
|
||||||
|
BuildRequires: pkgconfig(libxfce4ui-2) >= %{xfceversion}
|
||||||
|
BuildRequires: pkgconfig(libxfce4panel-2.0) >= %{xfceversion}
|
||||||
|
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
|
||||||
|
BuildRequires: xorg-x11-proto-devel >= 1.0.0
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: upower-devel
|
||||||
|
BuildRequires: libappstream-glib
|
||||||
|
|
||||||
|
Requires: xfce4-panel >= %{xfceversion}
|
||||||
|
Requires: polkit
|
||||||
|
Requires: upower >= 0.99
|
||||||
|
|
||||||
|
%description
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
%doc AUTHORS ChangeLog NEWS TODO
|
||||||
|
%{_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
|
||||||
|
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-1
|
||||||
|
- Update to 4.18.0
|
||||||
|
|
||||||
|
* Mon Jun 20 2022 zhanglin <lin.zhang@turbolinux.com.cn> - 4.16.0-1
|
||||||
|
- Update to 4.16.0
|
||||||
|
|
||||||
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 1.7.1-1
|
||||||
|
- Update to 1.7.1
|
||||||
|
|
||||||
|
* Sun Jul 12 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.6.6-1
|
||||||
|
- Init package
|
||||||
11
xfce4-power-manager.xml
Normal file
11
xfce4-power-manager.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<channel name="xfce4-power-manager" version="1.0">
|
||||||
|
<property name="xfce4-power-manager" type="empty">
|
||||||
|
<property name="power-button-action" type="uint" value="3"/>
|
||||||
|
<property name="sleep-button-action" type="uint" value="3"/>
|
||||||
|
<property name="hibernate-button-action" type="uint" value="3"/>
|
||||||
|
<property name="show-tray-icon" type="bool" value="true"/>
|
||||||
|
<property name="logind-handle-lid-switch" type="bool" value="false"/>
|
||||||
|
</property>
|
||||||
|
</channel>
|
||||||
4
xfce4-power-manager.yaml
Normal file
4
xfce4-power-manager.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: https://gitlab.xfce.org/xfce/xfce4-power-manager.git
|
||||||
|
tag_prefix: "xfce4-power-manager-"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user