Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
08f7856c11
!11 Update to 4.18.0
From: @misaka00251 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-01-05 03:43:00 +00:00
misaka00251
d7fbb270ec
Update to 4.18.0 2023-01-04 17:46:26 +08:00
openeuler-ci-bot
68cc47620c
!10 update to 4.16.0
From: @zhang__3125 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
2022-06-23 08:26:05 +00:00
zhang__3125
6a7e9ba493 update to 4.16.0 2022-06-23 15:23:01 +08:00
openeuler-ci-bot
790a1ae558 !3 upgrade to 1.7.1 for xfce 4.16
From: @zhang__3125
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-06-17 14:25:47 +00:00
linz
0c5c8e9434 upgrade to 1.7.1 for xfce 4.16 2021-06-16 11:00:10 +08:00
openeuler-ci-bot
42eab5691d !2 20201127 add yaml file
From: @zhang__3125
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2020-12-01 11:18:56 +08:00
张琳
484add897b update xfce4-power-manager.yaml. 2020-12-01 11:07:10 +08:00
zhang__3125
58a5ff4d49 20201127 add yaml file 2020-11-27 13:46:04 +08:00
openeuler-ci-bot
35bc0752e2 !1 Init package
Merge pull request !1 from 陈棋德/master
2020-07-31 19:45:03 +08:00
dillon chen
a9a352d3b7 Init package 2020-07-12 13:02:18 +08:00
6 changed files with 107 additions and 73 deletions

View File

@ -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/)

View File

@ -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/)

Binary file not shown.

92
xfce4-power-manager.spec Normal file
View 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
View 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
View 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: "."