]> git.pld-linux.org Git - packages/zif.git/commitdiff
- added xattr,rpm4.14 patches to refresh code master
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Mar 2022 19:29:21 +0000 (21:29 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Mar 2022 19:29:21 +0000 (21:29 +0200)
zif-rpm4.14.patch [new file with mode: 0644]
zif-xattr.patch [new file with mode: 0644]
zif.spec

diff --git a/zif-rpm4.14.patch b/zif-rpm4.14.patch
new file mode 100644 (file)
index 0000000..1a4e15c
--- /dev/null
@@ -0,0 +1,10 @@
+--- zif-0.3.6/libzif/zif-state.c.orig  2013-05-08 09:33:04.000000000 +0200
++++ zif-0.3.6/libzif/zif-state.c       2022-03-28 21:13:12.027458197 +0200
+@@ -1246,7 +1246,6 @@ zif_state_cancel_on_signal (ZifState *st
+ #if GLIB_CHECK_VERSION(2,29,19)
+       /* undo librpms attempt to steal SIGINT, and instead fail
+        * the transaction in a nice way */
+-      rpmsqEnable (-SIGINT, NULL);
+       g_unix_signal_add (signum,
+                          zif_state_cancel_on_signal_cb,
+                          state->priv->cancellable);
diff --git a/zif-xattr.patch b/zif-xattr.patch
new file mode 100644 (file)
index 0000000..4d09701
--- /dev/null
@@ -0,0 +1,22 @@
+--- zif-0.3.6/configure.ac.orig        2022-03-28 20:22:46.743847565 +0200
++++ zif-0.3.6/configure.ac     2022-03-28 20:44:48.350021143 +0200
+@@ -130,7 +130,7 @@ PKG_CHECK_MODULES(SOUP, libsoup-2.4)
+ dnl ---------------------------------------------------------------------------
+ dnl - use xattr to speed up checksumming files using the mtime as a key
+ dnl ---------------------------------------------------------------------------
+-AC_CHECK_HEADERS([attr/xattr.h],
++AC_CHECK_HEADERS([sys/xattr.h],
+                HAVE_XATTR_H="yes",
+                HAVE_XATTR_H="no")
+ if test "x$HAVE_XATTR_H" = "xno"; then
+--- zif-0.3.6/libzif/zif-md.c.orig     2013-01-10 14:22:35.000000000 +0100
++++ zif-0.3.6/libzif/zif-md.c  2022-03-28 20:51:50.314401833 +0200
+@@ -37,7 +37,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #include "zif-config.h"
+ #include "zif-md.h"
index ca64a68e0fc4c5c0b1eb18469f44db1788bd75d2..49a05d60cc67c842fcfd481ccaeba6a5d6cb0c76 100644 (file)
--- a/zif.spec
+++ b/zif.spec
@@ -1,4 +1,8 @@
 # NOTE: no longer developed; some code lives in hawkey backend in PackageKit
+#
+# Conditional build:
+%bcond_with    rpm5    # RPM 5.x instead of rpm.org
+
 Summary:       Simple wrapper for rpm and the Fedora package metadata
 Summary(pl.UTF-8):     Proste opakowanie dla rpm-a i metadanych pakietów Fedory
 Name:          zif
@@ -6,11 +10,13 @@ Version:     0.3.6
 Release:       0.2
 License:       GPL v2+
 Group:         Libraries
-Source0:       http://people.freedesktop.org/~hughsient/zif/releases/%{name}-%{version}.tar.xz
+Source0:       https://people.freedesktop.org/~hughsient/zif/releases/%{name}-%{version}.tar.xz
 # Source0-md5: fcec454a8d839cfe4aa9ee7b6e20ed15
 Patch0:                %{name}-rpm5.patch
 Patch1:                %{name}-link.patch
-URL:           http://people.freedesktop.org/~hughsient/zif/
+Patch2:                %{name}-xattr.patch
+Patch3:                %{name}-rpm4.14.patch
+URL:           https://people.freedesktop.org/~hughsient/zif/
 BuildRequires: attr-devel
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.9
@@ -98,10 +104,16 @@ Bashowe dopełnianie parametrów dla polecenia zif.
 
 %prep
 %setup -q
+%if %{with rpm5}
 %patch0 -p1
+%else
+%patch3 -p1
+%endif
 %patch1 -p1
+%patch2 -p1
 
 %build
+%{__gtkdocize}
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
This page took 0.068891 seconds and 4 git commands to generate.