Accepting request 116390 from home:dimstar:branches:GNOME:Factory

Update to 0.14.1 - split libs to be able to remove tracker

OBS-URL: https://build.opensuse.org/request/show/116390
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/tracker?expand=0&rev=8
This commit is contained in:
Vincent Untz
2012-05-16 08:32:43 +00:00
committed by Git OBS Bridge
parent 9d41e31327
commit ea7681d613
7 changed files with 155 additions and 9 deletions

View File

@@ -49,7 +49,7 @@
# Do not edit this auto generated file! Edit tracker.spec.
Name: tracker-extras
%define _name tracker
Version: 0.14.0
Version: 0.14.1
Release: 0
Summary: Powerful object database, tag/metadata database, search tool and indexer
License: GPL-2.0+
@@ -64,6 +64,8 @@ Patch1: tracker-removeable-media-off.patch
Patch2: tracker-fix-include-sched-idle.patch
# PATCH-FIX-UPSTREAM tracker-libgrss-0.5.patch bgo#671751 dimstar@opensuse.org -- Support and Require libgrss-0.5
Patch3: tracker-libgrss-0.5.patch
# PATCH-FIX-UPSTREAM tracker-evo-implicit.patch bgo#675413 dimstar@opensuse.org -- Include email-backend.h; fixes brp checks.
Patch4: tracker-evo-implicit.patch
BuildRequires: NetworkManager-devel >= 0.8
BuildRequires: enca-devel
BuildRequires: fdupes
@@ -180,9 +182,25 @@ database, tag/metadata database, search tool and indexer.
This package contains a miner to index files and applications.
# This package name is not correct as per SLPP, but the 'lib' lives in a private folder
# The symbol provided is libtracker-common.so.0() across multiple versions
# Yet, different libtracker-miner-* packages require their explitic version of libtracker-common.so.0
# as they link is done using rpath.
%package -n libtracker-common-0_14-0
Summary: Conveniance libraries for Tracker
Group: System/Libraries
%description -n libtracker-common-0_14-0
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a private conveniance library for the various tracker libraries.
%package -n libtracker-extract-0_14-0
Summary: Extract library for Tracker
Group: System/Libraries
# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%glib2_gsettings_schema_requires
@@ -204,6 +222,8 @@ and search all types of files and other first class objects.
%package -n libtracker-miner-0_14-0
Summary: Miner library for Tracker
Group: System/Libraries
# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%description -n libtracker-miner-0_14-0
@@ -290,6 +310,8 @@ miner library for Tracker.
%package -n libtracker-sparql-0_14-0
Summary: Sparql library for Tracker
Group: System/Libraries
# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%description -n libtracker-sparql-0_14-0
@@ -496,6 +518,7 @@ translation-update-upstream
%patch2
%endif
%patch3 -p1
%patch4 -p1
cp %{S:1} src/miners/flickr/README.SUSE
cp %{S:2} src/miners/rss/README.SUSE
@@ -572,13 +595,16 @@ rm -r %{buildroot}%{_datadir}/tracker-tests
# Only needed by gui tools
rm %{buildroot}%{_datadir}/icons/hicolor/*/apps/tracker.*
# Ensure we have a /usr/share/tracker/icons/ folder, so sub-packages can put their icons in there without having to worry
mkdir -p %{buildroot}%{_datadir}/tracker/icons/
%fdupes %{buildroot}%{_datadir}/gtk-doc/html/
%fdupes %{buildroot}%{_datadir}/vala/
%else
## Extras build: remove files from main, miner-files, devel, lang and lib subpackages
for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-extract-0_14-0 libtracker-miner-0_14-0 libtracker-sparql-0_14-0 typelib-1_0-Tracker-0_14 typelib-1_0-TrackerExtract-0_14 typelib-1_0-TrackerMiner-0_14`; do
for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-extract-0_14-0 libtracker-miner-0_14-0 libtracker-sparql-0_14-0 typelib-1_0-Tracker-0_14 typelib-1_0-TrackerExtract-0_14 typelib-1_0-TrackerMiner-0_14 libtracker-common-0_14-0`; do
# do not remove directories (might contain files we want); -f to not fail if
# file doesn't exist
test ! -d %{buildroot}${file} && rm -f %{buildroot}${file}
@@ -685,7 +711,9 @@ rm -rf %{buildroot}
%{_libexecdir}/tracker-extract
%{_libexecdir}/tracker-store
%{_libexecdir}/tracker-writeback
%{_libdir}/tracker-0.14/
%dir %{_libdir}/tracker-0.14/
%{_libdir}/tracker-0.14/extract-modules/
%{_libdir}/tracker-0.14/writeback-modules/
%{_datadir}/tracker/
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Extract.service
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Writeback.service
@@ -740,6 +768,11 @@ rm -rf %{buildroot}
%{_datadir}/tracker/miners/tracker-miner-files.desktop
%{_mandir}/man1/tracker-miner-fs.1%{ext_man}
%files -n libtracker-common-0_14-0
%defattr(-,root,root)
%{_libdir}/tracker-0.14/libtracker-common.so.*
%{_libdir}/tracker-0.14/libtracker-data.so.*
%files -n libtracker-extract-0_14-0
%defattr(-,root,root)
%{_libdir}/libtracker-extract*.so.*
@@ -769,6 +802,8 @@ rm -rf %{buildroot}
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/tracker-0.14/
%{_libdir}/tracker-0.14/libtracker-common.so
%{_libdir}/tracker-0.14/libtracker-data.so
%{_libdir}/pkgconfig/tracker-extract-0.14.pc
%{_libdir}/pkgconfig/tracker-miner-0.14.pc
%{_libdir}/pkgconfig/tracker-sparql-0.14.pc