From 307e8cc66f4ac2e6344b410ccda16abcfd9539bd Mon Sep 17 00:00:00 2001 From: wzx Date: Wed, 26 Oct 2022 09:33:49 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx (cherry picked from commit 4953edd5ff343f3a8103f930cd40d039d98e23e5) --- tracker-miners-3.0.5-sw.patch | 13 +++++++++++++ tracker-miners.spec | 11 +++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 tracker-miners-3.0.5-sw.patch diff --git a/tracker-miners-3.0.5-sw.patch b/tracker-miners-3.0.5-sw.patch new file mode 100755 index 0000000..e2a3801 --- /dev/null +++ b/tracker-miners-3.0.5-sw.patch @@ -0,0 +1,13 @@ +diff -Naur tracker-miners-3.0.5.org/src/libtracker-miners-common/tracker-ioprio.c tracker-miners-3.0.5.sw/src/libtracker-miners-common/tracker-ioprio.c +--- tracker-miners-3.0.5.org/src/libtracker-miners-common/tracker-ioprio.c 2022-06-14 15:00:54.220000000 +0000 ++++ tracker-miners-3.0.5.sw/src/libtracker-miners-common/tracker-ioprio.c 2022-06-14 15:01:54.590000000 +0000 +@@ -62,6 +62,9 @@ + #elif defined(__ia64__) + #define __NR_ioprio_set 1274 + #define __NR_ioprio_get 1275 ++#elif defined(__sw_64__) ++#define __NR_ioprio_set 442 ++#define __NR_ioprio_get 443 + #elif defined(__alpha__) + #define __NR_ioprio_set 442 + #define __NR_ioprio_get 443 diff --git a/tracker-miners.spec b/tracker-miners.spec index 28d67d0..b947774 100644 --- a/tracker-miners.spec +++ b/tracker-miners.spec @@ -2,12 +2,13 @@ Name: tracker-miners Version: 2.3.5 -Release: 4 +Release: 5 Summary: the indexer daemon (tracker-miner-fs) and tools to extract metadata from many different filetypes. License: GPLv2+ and LGPLv2+ URL: https://wiki.gnome.org/Projects/Tracker Source0: https://download.gnome.org/sources/%{name}/2.3/%{name}-%{version}.tar.xz Source1: tracker-miners.conf +Patch1: tracker-miners-3.0.5-sw.patch BuildRequires: giflib-devel intltool libjpeg-devel libtiff-devel systemd vala gcc meson chrpath BuildRequires: pkgconfig(exempi-2.0) pkgconfig(flac) pkgconfig(gexiv2) pkgconfig(gstreamer-1.0) @@ -29,7 +30,7 @@ from many different filetypes. %package_help %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build %meson \ @@ -76,6 +77,12 @@ find %{buildroot}/ -type f -exec file {} ';' | grep "\" | grep -v 'libwrit %{_mandir}/man1/tracker-*.1* %changelog +* Wed Oct 26 2022 wuzx - 2.3.5-5 +- Type:feature +- CVE:NA +- SUG:NA +- DESC:Add sw64 architecture + * Thu Sep 23 2021 weijin deng - 2.3.5-4 - Ignore tracker-miners's dynamic library search path(file) -- Gitee