Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
9eb1653e7d
!13 [sync] PR-11: 修复非64位架构下编译找不到库路径问题
From: @openeuler-sync-bot 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2023-04-25 00:55:40 +00:00
panchenbo
08746a4644 fix sw_64 build error
(cherry picked from commit f29f32c82531e1f9fd6eb70c8aa946ea3b9eb128)
2023-04-24 18:09:35 +08:00
openeuler-ci-bot
3598405e09
!7 [sync] PR-6: 添加sw架构
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2022-12-11 07:52:36 +00:00
wzx
40468e02a3 Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 0e58b2950d658bf2bde03783129b3afbe73af537)
2022-10-31 11:27:12 +08:00
openeuler-ci-bot
acaaa874f0 !4 [sync] PR-3: 去除编译选项rpath
From: @openeuler-sync-bot
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-09-07 08:50:34 +00:00
rwx403335
c463c19e7c remove rpath
(cherry picked from commit d6d28a0d961f1a963c839c976d80b11f478f8841)
2021-09-07 15:56:53 +08:00
openeuler-ci-bot
273c367266 !2 Upgrade to 2.3.6
From: @weijin-deng
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-06-07 20:55:25 +08:00
weijin-deng
9c52d33a78 Upgrade to 2.3.6
Update Version, Release, Source0, BuildRequires
Use meson build tools, delete configure script
Update stage 'build', 'install', 'files'
2021-06-07 16:58:06 +08:00
openeuler-ci-bot
e017f862b3 !1 add yaml file in package
Merge pull request !1 from Markeryang/master
2020-06-23 20:33:53 +08:00
Markeryang
83b0271dd9 add tracker.yaml. 2020-06-13 11:37:41 +08:00
6 changed files with 58 additions and 25 deletions

Binary file not shown.

13
tracker-2.3.6-sw.patch Executable file
View File

@ -0,0 +1,13 @@
diff -Naur tracker-2.3.6.org/src/libtracker-common/tracker-ioprio.c tracker-2.3.6.sw/src/libtracker-common/tracker-ioprio.c
--- tracker-2.3.6.org/src/libtracker-common/tracker-ioprio.c 2022-05-18 01:57:00.850000000 +0000
+++ tracker-2.3.6.sw/src/libtracker-common/tracker-ioprio.c 2022-05-18 01:58:03.430000000 +0000
@@ -65,6 +65,9 @@
#elif defined(__alpha__)
#define __NR_ioprio_set 442
#define __NR_ioprio_get 443
+#elif defined(__sw_64__)
+#define __NR_ioprio_set 442
+#define __NR_ioprio_get 443
#elif defined(__s390x__) || defined(__s390__)
#define __NR_ioprio_set 282
#define __NR_ioprio_get 283

BIN
tracker-2.3.6.tar.xz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
/usr/lib64/tracker-2.0

View File

@ -2,16 +2,16 @@
%global systemd_units tracker-store.service
Name: tracker
Version: 2.1.5
Release: 3
Version: 2.3.6
Release: 4
Summary: A filesystem indexer, metadata storage system and search tool
License: GPLv2+
URL: https://wiki.gnome.org/Projects/Tracker
Source0: https://download.gnome.org/sources/%{name}/2.1/%{name}-%{version}.tar.xz
Source1: tracker.conf
Source0: https://download.gnome.org/sources/%{name}/2.3/%{name}-%{version}.tar.xz
Patch1: tracker-2.3.6-sw.patch
BuildRequires: graphviz gtk-doc systemd libxslt
BuildRequires: intltool libappstream-glib vala
BuildRequires: graphviz gtk-doc systemd libxslt gettext meson intltool
BuildRequires: libappstream-glib vala libstemmer-devel dbus-daemon chrpath
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(icu-i18n) pkgconfig(icu-uc)
BuildRequires: pkgconfig(json-glib-1.0) pkgconfig(libnm)
@ -56,32 +56,29 @@ Man pages and other related documents for %{name}.
%prep
%autosetup -p1
# unwanted rpaths
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
%build
# Disable the functional tests
%configure --disable-static \
--enable-gtk-doc \
--with-unicode-support=libicu \
--disable-functional-tests \
--disable-silent-rules
%make_build
%meson \
-Ddocs=true \
-Dfunctional_tests=false \
-Dunicode_support=icu \
-Dsystemd_user_services=%{_userunitdir}
%meson_build
%install
%make_install
%meson_install
find %{buildroot} -type f -name "*.la" -delete
# Remove .so symlinks for private libraries
rm -f %{buildroot}%{_libdir}/tracker-2.0/*.so
%find_lang %{name}
# remove rpath info
%chrpath_delete
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
chrpath --delete %{buildroot}/usr/libexec/tracker-store
chrpath --delete %{buildroot}%{_bindir}/tracker
chrpath --delete %{buildroot}%{_libdir}/libtracker-*.so.*
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/tracker-2.0" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%pre
@ -97,14 +94,13 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_ar
%files -f %{name}.lang
%defattr(-,root,root)
%license COPYING docs/reference/COPYING
%license COPYING
%doc AUTHORS
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%dir %{_libdir}/girepository-1.0
%{_datadir}/tracker/
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.service
%config(noreplace) %{_sysconfdir}/xdg/autostart/tracker-store.desktop
%{_datadir}/bash-completion/completions/tracker
%{_datadir}/glib-2.0/schemas/*
%{_userunitdir}/tracker-store.service
@ -131,7 +127,7 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_ar
%files help
%{_mandir}/*/tracker*.gz
%doc NEWS README
%doc NEWS README.md docs/reference/COPYING
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/libtracker-control/
@ -140,6 +136,27 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_ar
%{_datadir}/gtk-doc/html/ontology/
%changelog
* Mon Apr 24 2023 panchenbo <panchenbo@kylinsec.com.cn> - 2.3.6-4
- touch /etc/ld.so.conf.d/%{name}_%{_arch}.conf in spec del SOURCE1
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 2.3.6-3
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Mon Sep 06 2021 Hongxun Ren<renhongxun@huawei.com> - 2.3.6-2
- Type:enhanence
- ID:NA
- SUG:NA
- DESC:remove rpath
* Mon Jun 7 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.3.6-1
- Upgrade to 2.3.6
- Update Version, Release, Source0, BuildRequires
- Use meson build tools, delete sed operation of configure script
- Update stage 'build', 'install', 'files'
* Thu Nov 21 2019 chengquan <chengquan3@huawei.com> - 2.1.5-3
- Type:bugfix
- ID:NA

4
tracker.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: gitlab.gnome
src_repo: tracker
tag_prefix: ^v
seperator: .