Репозиторий Sisyphus
Последнее обновление: 14 декабря 2017 | Пакетов: 18212 | Посещений: 10566940
en ru br
Репозитории ALT
S:2.0.2-alt1
5.1: 0.7.2-alt1
4.1: 0.6.6-alt1.1
www.altlinux.org/Changes

Группа :: Офис
Пакет: tracker

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 2.0
%define api_ver 2.0

# since 1.0.3 (see https://bugzilla.gnome.org/show_bug.cgi?id=733857)

%set_verify_elf_method unresolved=relaxed

%def_without bootstrap
%def_enable introspection
%def_disable hal
%def_enable upower
%def_enable network_manager
%def_enable gtk_doc

# Unicode support library? (libunistring|libicu)

%define unicode_support libicu

%define _libexecdir %_prefix/libexec

Name: tracker
Version: %ver_major.1
Release: alt1

Summary: Tracker is a powerfull desktop-oriented search tool and indexer
License: GPLv2+
Group: Office
Url: http://wiki.gnome.org/Projects/Tracker

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz

Obsoletes: lib%name-client
Obsoletes: %name-search-tool < 1.99.0
Obsoletes: nautilus-%name < 1.99.0

Requires: lib%name = %version-%release
%{?_without_bootstrap:Requires: %name-miners >= %ver_major}

%define dbus_ver 1.3.1
%define glib_ver 2.44.0
%define pango_ver 1.0.0
%define gtk_ver 3.0.0
%define hal_ver 0.5
%define upower_ver 0.9.0
%define nm_ver 0.8
%define gst_ver 1.0
%define sqlite_ver 3.20.1-alt2
%define soup_ver 2.40.0
%define gupnp_dlna_ver 0.9.4

Requires: libsqlite3 >= %sqlite_ver

BuildPreReq: gcc-c++ gnome-common rpm-build-gnome
BuildPreReq: gtk-doc docbook-utils python3
BuildPreReq: libxml2-devel
BuildPreReq: libdbus-devel >= %dbus_ver
BuildPreReq: libgio-devel >= %glib_ver
BuildPreReq: libicu-devel libunistring-devel
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildRequires: libsoup-devel >= %soup_ver libjson-glib-devel
%{?_enable_introspection:BuildPreReq: gobject-introspection-devel >= 0.9.5}
%{?_enable_hal:BuildPreReq: libhal-devel >= %hal_ver}
%{?_enable_upower:BuildPreReq: libupower-devel >= %upower_ver}
%{?_enable_network_manager:BuildPreReq: NetworkManager-glib-devel >= %nm_ver libnm-devel}
BuildRequires: libstemmer-devel

BuildPreReq: libuuid-devel
BuildPreReq: vala >= 0.18.0
BuildPreReq: intltool >= 0.35.0
BuildPreReq: sqlite3 libsqlite3-devel >= %sqlite_ver
BuildRequires: gstreamer1.0-devel >= %gst_ver gst-plugins1.0-devel >= %gst_ver
BuildRequires: libgupnp-dlna-devel >= %gupnp_dlna_ver
BuildRequires: systemd-devel libseccomp-devel

%description
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.

%package devel
Summary: Headers for developing programs that will use %name-miner
Group: Development/Other
Requires: lib%name = %version-%release
Requires: %name = %version-%release
Obsoletes: lib%name-client-devel
License: LGPLv2.1+

%description devel
Tracker is a powerfull desktop-oriented search tool and indexer.
This package contains header files for development  and link applications with libtracker-miner.

%package devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Conflicts: %name < %version-%release
BuildArch: noarch

%description devel-doc
This package provides development documentation for %name.

%package -n lib%name
Summary: Tracker shared libraries
Group: System/Libraries
Conflicts: %name < %version-%release

%description -n lib%name
This package contains shred Tracker libraries for applications.

%package -n lib%name-gir
Summary: GObject introspection data for the Tracker library
Group: System/Libraries
Requires: lib%name = %version-%release

%description -n lib%name-gir
GObject introspection data for the Tracker library

%package -n lib%name-gir-devel
Summary: GObject introspection devel data for the Tracker library
Group: System/Libraries
BuildArch: noarch
Requires: lib%name-gir = %version-%release
Provides: gir(Tracker) = 2.0

%description -n lib%name-gir-devel
GObject introspection devel data for the Tracker library

%package search-tool
Summary: Tracker search tool(s)
Group: Graphical desktop/GNOME
Requires: %name = %version-%release

%description search-tool
Graphical frontend to tracker search facilities.

%package utils
Summary: Commandline tools for Tracker
Group: Office
Requires: %name = %version-%release

%description utils
Included utilities for Tracker:
 * tracker-import: imports turtle file data into the database.
 * tracker-info: retrieve all information available for a certain file.
 * tracker-control: manage Tracker processes and data.
 * tracker-search: this perfoms a google like search using SEARCHTERM to
   retrieve all matching files where SEARCHTERM appears in any searchable
   metadata.
 * tracker-stats: retreive some statistics.
 * tracker-sparql: allows  the caller to run an RDF query on the database.
 * tracker-tag: tool to manage tags on files.

%prep
%setup

%build
%autoreconf
%configure \
--disable-static \
%{subst_enable introspection} \
%{subst_enable hal} \
%{subst_enable upower} \
--with-unicode-support=%unicode_support \
%{?_enable_network_manager:--enable-network-manager} \
%{subst_enable unac} \
%{?_enable_gtk_doc:--enable-gtk-doc}

# --enable-guarantee-metadata \


%make_build

%install
%makeinstall_std

find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'

%find_lang %name
rm -rf %buildroot%_datadir/tracker-tests

%files -f %name.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%doc src/libtracker-common/COPYING.LIB
%config(noreplace) %_sysconfdir/xdg/autostart/*
%_datadir/glib-2.0/schemas/*
%dir %_libdir/%name-%api_ver
%_libexecdir/tracker-store
%_datadir/dbus-1/services/*.service
%dir %_datadir/%name
%_datadir/%name/*.xml
%_datadir/%name/stop-words/
%_datadir/%name/ontologies/
%_datadir/%name/domain-ontologies/
%_prefix/lib/systemd/user/tracker-store.service
%_man1dir/tracker-store.*

%exclude %_datadir/bash-completion/completions/%name

%files -n lib%name
%_libdir/*.so.*
%_libdir/%name-%api_ver/*.so.*

%files utils
%_bindir/%name
%_man1dir/tracker-info.*
%_man1dir/tracker-search.*
%_man1dir/tracker-sparql.*
%_man1dir/tracker-tag.*
%_man1dir/tracker-daemon.*
%_man1dir/tracker-index.*
%_man1dir/tracker-reset.*
%_man1dir/tracker-sql.*
%_man1dir/tracker-status.*

%files devel
%_libdir/%name-%api_ver/*.so
%_includedir/%name-%api_ver/
%_pkgconfigdir/*.pc
%_libdir/*.so
%_datadir/vala/vapi/*

%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/*
%endif

%if_enabled introspection
%files -n lib%name-gir
%_typelibdir/Tracker-%api_ver.typelib
%_typelibdir/TrackerControl-%api_ver.typelib
%_typelibdir/TrackerMiner-%api_ver.typelib

%files -n lib%name-gir-devel
%_girdir/Tracker-%api_ver.gir
%_girdir/TrackerControl-%api_ver.gir
%_girdir/TrackerMiner-%api_ver.gir
%endif


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin