Init package
This commit is contained in:
parent
73805ed07c
commit
93dd2a07eb
27
01_no-sysctl.patch
Normal file
27
01_no-sysctl.patch
Normal 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"
|
||||||
BIN
xfce4-battery-plugin-1.1.3.tar.bz2
Normal file
BIN
xfce4-battery-plugin-1.1.3.tar.bz2
Normal file
Binary file not shown.
53
xfce4-battery-plugin.spec
Normal file
53
xfce4-battery-plugin.spec
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user