%global systemd_units tracker-xdg-portal-3 %global githash 9306fc93df34b444d84652ba1684a70e53380832 Name: tracker Version: 3.3.0.alpha Release: 3%{?dist} Summary: Desktop-neutral metadata database and search tool License: GPLv2+ URL: https://wiki.gnome.org/Projects/Tracker Source: https://gitlab.gnome.org/GNOME/tracker/-/archive/%{githash}/tracker-master.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: asciidoc BuildRequires: gettext BuildRequires: libstemmer-devel BuildRequires: meson BuildRequires: python3-gobject BuildRequires: systemd BuildRequires: vala BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(sqlite3) BuildRequires: /usr/bin/dbus-run-session # renamed in F34 Obsoletes: tracker3 < 3.1.0~rc-2 Conflicts: tracker3 < 3.1.0~rc-2 Provides: tracker3 = %{version}-%{release} Provides: tracker3%{?_isa} = %{version}-%{release} Requires: libtracker-sparql%{?_isa} = %{version}-%{release} Recommends: tracker-miners%{?_isa} %{?systemd_requires} %description Tracker is a powerful desktop-neutral first class object database, tag/metadata database and search tool. It consists of a common object database that allows entities to have an almost infinite number of properties, metadata (both embedded/harvested as well as user definable), a comprehensive database of keywords/tags and links to other entities. It provides additional features for file based objects including context linking and audit trails for a file object. Metadata indexers are provided by the tracker-miners3 package. %package -n libtracker-sparql Summary: Tracker SPARQL library License: LGPLv2+ Recommends: %{name}%{?_isa} = %{version}-%{release} # renamed in F34 Obsoletes: libtracker-sparql3 < 3.1.0~rc-2 Conflicts: libtracker-sparql3 < 3.1.0~rc-2 Provides: libtracker-sparql3 = %{version}-%{release} Provides: libtracker-sparql3%{?_isa} = %{version}-%{release} %description -n libtracker-sparql This package contains the libtracker-sparql library. %package devel Summary: Development files for %{name} Requires: libtracker-sparql%{?_isa} = %{version}-%{release} # renamed in F34 Obsoletes: tracker3-devel < 3.1.0~rc-2 Conflicts: tracker3-devel < 3.1.0~rc-2 Provides: tracker3-devel = %{version}-%{release} Provides: tracker3-devel%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. #%package doc #Summary: Documentation for %{name} #BuildArch: noarch # #%description doc #The %{name}-devel package contains the documentation for %{name}. %prep %autosetup -n tracker-%{githash} -p1 %build %meson \ --buildtype=debugoptimized \ -Dunicode_support=icu \ -Dsystemd_user_services_dir=%{_userunitdir} \ -Ddocs=false \ %{nil} %meson_build %install %meson_install %find_lang tracker3 %post %systemd_user_post %{systemd_units} %preun %systemd_user_preun %{systemd_units} %postun %systemd_user_postun_with_restart %{systemd_units} %files -f tracker3.lang %license COPYING COPYING.GPL %doc AUTHORS NEWS README.md %{_bindir}/tracker3 %{_libexecdir}/tracker3/ %{_libexecdir}/tracker-xdg-portal-3 %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/tracker3 %{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service %{_mandir}/man1/tracker*.1* %{_userunitdir}/tracker-xdg-portal-3.service %files -n libtracker-sparql %license COPYING COPYING.LGPL %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/Tracker-3.0.typelib %{_libdir}/libtracker-sparql-3.0.so.0* %{_libdir}/tracker-3.0/* %{_datadir}/tracker3/ %files devel %{_includedir}/tracker-3.0/ %{_libdir}/libtracker-sparql-3.0.so %{_libdir}/pkgconfig/*.pc %dir %{_libdir}/tracker-3.0 %{_libdir}/tracker-3.0/trackertestutils/ %dir %{_datadir}/vala %dir %{_datadir}/vala/vapi %{_datadir}/vala/vapi/tracker-sparql-3.0.* %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/Tracker-3.0.gir #%files doc #%license docs/reference/COPYING #%dir %{_datadir}/gtk-doc #%dir %{_datadir}/gtk-doc/html #%{_datadir}/gtk-doc/html/libtracker-sparql-3/ #%{_datadir}/gtk-doc/html/ontology-3/ %changelog * Sat Jan 8 2022 Sam Thursfield - 3.3.0.alpha - Remove -docs package for now. Docs require Hotdoc now and this is not yet in Fedora. * Sun Sep 20 2020 Kalev Lember - 3.0.0-2 - Only require the library subpackage from -devel * Mon Sep 14 2020 Carlos Garnacho - 3.0.0-1 - Update to 3.0.0 * Mon Sep 07 2020 Kalev Lember - 2.99.5-1 - Initial Fedora packaging, based on earlier tracker 2 package