Compare commits

..

No commits in common. "9eb1653e7dcd3cbf0c26b3e7a421453555d752ff" and "d2616bc4fdaf431a3338dd7e57942e3eff4357d8" have entirely different histories.

6 changed files with 25 additions and 58 deletions

BIN
tracker-2.1.5.tar.xz Normal file

Binary file not shown.

View File

@ -1,13 +0,0 @@
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

Binary file not shown.

1
tracker.conf Normal file
View File

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

View File

@ -2,16 +2,16 @@
%global systemd_units tracker-store.service
Name: tracker
Version: 2.3.6
Release: 4
Version: 2.1.5
Release: 3
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.3/%{name}-%{version}.tar.xz
Patch1: tracker-2.3.6-sw.patch
Source0: https://download.gnome.org/sources/%{name}/2.1/%{name}-%{version}.tar.xz
Source1: tracker.conf
BuildRequires: graphviz gtk-doc systemd libxslt gettext meson intltool
BuildRequires: libappstream-glib vala libstemmer-devel dbus-daemon chrpath
BuildRequires: graphviz gtk-doc systemd libxslt
BuildRequires: intltool libappstream-glib vala
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(icu-i18n) pkgconfig(icu-uc)
BuildRequires: pkgconfig(json-glib-1.0) pkgconfig(libnm)
@ -56,29 +56,32 @@ 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
%meson \
-Ddocs=true \
-Dfunctional_tests=false \
-Dunicode_support=icu \
-Dsystemd_user_services=%{_userunitdir}
%meson_build
%configure --disable-static \
--enable-gtk-doc \
--with-unicode-support=libicu \
--disable-functional-tests \
--disable-silent-rules
%make_build
%install
%meson_install
%make_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
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
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%pre
@ -94,13 +97,14 @@ echo "%{_libdir}/tracker-2.0" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-
%files -f %{name}.lang
%defattr(-,root,root)
%license COPYING
%license COPYING docs/reference/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
@ -127,7 +131,7 @@ echo "%{_libdir}/tracker-2.0" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-
%files help
%{_mandir}/*/tracker*.gz
%doc NEWS README.md docs/reference/COPYING
%doc NEWS README
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/libtracker-control/
@ -136,27 +140,6 @@ echo "%{_libdir}/tracker-2.0" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-
%{_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

View File

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