[packages/upower] - added libplist patch (adjust pkgconfig name for libplist 2.2.0+); release 2
qboosh
qboosh at pld-linux.org
Sun Sep 13 09:06:36 CEST 2020
commit f130a49a3df26ef5c35d4fca2705d5d193a1c699
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 13 09:09:21 2020 +0200
- added libplist patch (adjust pkgconfig name for libplist 2.2.0+); release 2
upower-libplist.patch | 11 +++++++++++
upower.spec | 10 ++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/upower.spec b/upower.spec
index 5ddaeba..6b347c8 100644
--- a/upower.spec
+++ b/upower.spec
@@ -2,7 +2,7 @@ Summary: Power management service
Summary(pl.UTF-8): Usługa zarządzania energią
Name: upower
Version: 0.99.11
-Release: 1
+Release: 2
License: GPL v2+
Group: Libraries
# releases <= 0.99.7
@@ -11,6 +11,7 @@ Group: Libraries
#Source0Download: https://gitlab.freedesktop.org/upower/upower/tags
Source0: https://gitlab.freedesktop.org/upower/upower/uploads/93cfe7c8d66ed486001c4f3f55399b7a/%{name}-%{version}.tar.xz
# Source0-md5: abe6acb617f11f2e8dbd9846fcf86e24
+Patch0: %{name}-libplist.patch
URL: https://upower.freedesktop.org/
BuildRequires: autoconf >= 2.65
BuildRequires: automake >= 1:1.11
@@ -20,7 +21,7 @@ BuildRequires: glib2-devel >= 1:2.38.0
BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: gtk-doc >= 1.11
BuildRequires: libimobiledevice-devel >= 0.9.7
-BuildRequires: libplist-devel >= 0.12
+BuildRequires: libplist-devel >= 2.2.0
BuildRequires: libtool >= 2:2
BuildRequires: libusb-devel >= 1.0.0
BuildRequires: pkgconfig
@@ -30,7 +31,7 @@ BuildRequires: udev-glib-devel >= 1:147
BuildRequires: xz
Requires(post,preun,postun): systemd-units >= 38
Requires: libimobiledevice >= 0.9.7
-Requires: libplist >= 0.12
+Requires: libplist >= 2.2.0
Requires: systemd-units >= 38
Requires: udev-glib >= 1:147
Obsoletes: DeviceKit-power < 0.15
@@ -96,7 +97,7 @@ Requires: gtk-doc-common
Obsoletes: DeviceKit-power-apidocs
Obsoletes: UPower-apidocs
Obsoletes: upower-pm-utils-apidocs
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
BuildArch: noarch
%endif
@@ -108,6 +109,7 @@ Dokumentacja API UPower.
%prep
%setup -q
+%patch0 -p1
%build
%{__gtkdocize}
diff --git a/upower-libplist.patch b/upower-libplist.patch
new file mode 100644
index 0000000..d421349
--- /dev/null
+++ b/upower-libplist.patch
@@ -0,0 +1,11 @@
+--- upower-0.9.23/configure.ac.orig 2020-09-13 08:29:33.403011165 +0200
++++ upower-0.9.23/configure.ac 2020-09-13 08:31:53.918916592 +0200
+@@ -200,7 +200,7 @@
+ AC_ARG_WITH(idevice, AS_HELP_STRING([--without-idevice],[Build without libimobiledevice]),
+ with_idevice=$withval,with_idevice=yes)
+ AS_IF([test "x$with_idevice" != "xno"],
+- [PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7 libplist >= 0.12, have_idevice=yes, have_idevice=no)],
++ [PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7 libplist-2.0 >= 0.12, have_idevice=yes, have_idevice=no)],
+ [have_idevice=no])
+ AS_IF([test "x$have_idevice" = "xyes"],
+ [AC_DEFINE(HAVE_IDEVICE, 1, [Define to 1 if AFC is going to be built])])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/upower.git/commitdiff/f130a49a3df26ef5c35d4fca2705d5d193a1c699
More information about the pld-cvs-commit
mailing list