Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
4c30e46dee !7 [sync] PR-5: remove unuse files
From: @openeuler-sync-bot
Reviewed-by: @zhang__3125
Signed-off-by: @zhang__3125
2021-12-03 10:26:35 +00:00
cherry530
14dcba44f6 remove unuse files
(cherry picked from commit 6c68d67287ec6da2075e07656fb98248b2496c56)
2021-12-03 18:02:25 +08:00
openeuler-ci-bot
8cfe797e7e !6 [sync] PR-4: Package init
From: @openeuler-sync-bot
Reviewed-by: @zhang__3125
Signed-off-by: @zhang__3125
2021-12-03 09:50:56 +00:00
cherry530
62d3c6606b Package init
(cherry picked from commit 8eadab5ab6fdaf2ed227a31f764adc27abe932e9)
2021-12-03 17:15:05 +08:00
openeuler-ci-bot
2558e91c1d !3 upgrade to 1.1.4 for xfce 4.16
From: @zhang__3125
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-06-25 06:56:34 +00:00
zhang__3125
bfd0e7839c upgrade to 1.1.4 for xfce 4.16 2021-06-25 14:49:32 +08:00
openeuler-ci-bot
cad60d60a4 !2 20201127 add yaml file
From: @zhang__3125
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2020-11-30 17:13:45 +08:00
张琳
0129e923e6 update xfce4-battery-plugin.yaml. 2020-11-30 17:08:34 +08:00
zhang__3125
f9c4dc10cb 20201127 add yaml file 2020-11-27 12:57:10 +08:00
openeuler-ci-bot
4776c2275a !1 Init package
Merge pull request !1 from 陈棋德/master
2020-07-31 20:04:27 +08:00
dillon chen
93dd2a07eb Init package 2020-07-14 16:25:46 +08:00
4 changed files with 84 additions and 0 deletions

27
01_no-sysctl.patch Normal file
View File

@ -0,0 +1,27 @@
From: Yves-Alexis Perez <corsac@debian.org>
Date: Mon, 14 Jan 2019 13:38:45 +0100
Subject: Inconditionnaly include err.h and errno.h
HAVE_SYSCTL is false on new architectures like arm64 or x32, and build
will fail (#766766).
---
panel-plugin/libacpi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/libacpi.c b/panel-plugin/libacpi.c
index 0755585..1789cba 100644
--- a/panel-plugin/libacpi.c
+++ b/panel-plugin/libacpi.c
@@ -54,10 +54,10 @@ static int acpifd;
#ifndef __linux__
#include <sys/sysctl.h>
-#include <err.h>
-#include <errno.h>
#endif
+#include <err.h>
+#include <errno.h>
#endif
#include "libacpi.h"

Binary file not shown.

53
xfce4-battery-plugin.spec Normal file
View File

@ -0,0 +1,53 @@
%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

View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin.git
tag_prefix: "xfce4-battery-plugin-"
seperator: "."