Package init

This commit is contained in:
overweight 2019-09-30 11:18:46 -04:00
commit 5a4084a2ca
3 changed files with 79 additions and 0 deletions

BIN
tracker-miners-2.1.5.tar.xz Normal file

Binary file not shown.

1
tracker-miners.conf Normal file
View File

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

78
tracker-miners.spec Normal file
View File

@ -0,0 +1,78 @@
%global systemd_units tracker-extract.service tracker-miner-apps.service tracker-miner-fs.service tracker-miner-rss.service tracker-writeback.service
Name: tracker-miners
Version: 2.1.5
Release: 2
Summary: the indexer daemon (tracker-miner-fs) and tools to extract metadata from many different filetypes.
License: GPLv2+ and LGPLv2+
URL: https://wiki.gnome.org/Projects/Tracker
Source0: https://download.gnome.org/sources/%{name}/2.1/%{name}-%{version}.tar.xz
Source1: tracker-miners.conf
BuildRequires: giflib-devel intltool libjpeg-devel libtiff-devel systemd vala
BuildRequires: pkgconfig(exempi-2.0) pkgconfig(flac) pkgconfig(gexiv2) pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0) pkgconfig(gstreamer-tag-1.0) pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc) pkgconfig(libexif) pkgconfig(libgsf-1) pkgconfig(libgxps)
BuildRequires: pkgconfig(libiptcdata) pkgconfig(libosinfo-1.0) pkgconfig(libpng) pkgconfig(libseccomp)
BuildRequires: pkgconfig(libxml-2.0) pkgconfig(poppler-glib) pkgconfig(taglib_c) pkgconfig(totem-plparser)
BuildRequires: pkgconfig(tracker-sparql-2.0) >= 2.1.0 pkgconfig(upower-glib) pkgconfig(vorbisfile)
Requires: tracker%{?_isa} >= 2.1.0
Obsoletes: tracker < 1.99.2
Conflicts: tracker < 1.99.2
%description
tracker-miners containsthe indexer daemon (tracker-miner-fs) and tools to extract metadata
from many different filetypes.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static --enable-libflac --enable-libvorbis --disable-mp3 \
--disable-functional-tests --disable-silent-rules
%make_build
%install
%make_install
%delete_la
rm -rf %{buildroot}%{_datadir}/tracker-tests
rm -rf %{buildroot}%{_libdir}/tracker-miners-2.0/*.so
%find_lang %{name}
# remove rpath info
find %{buildroot}/ -type f -exec file {} ';' | grep "\<ELF\>" | grep -v 'libwriteback\|libtracker-extract' | awk -F ':' '{print $1}' | xargs -i chrpath --delete {}
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%preun
%systemd_user_preun %{systemd_units}
%post
%systemd_user_post %{systemd_units}
%postun
%systemd_user_postun_with_restart %{systemd_units}
%files -f %{name}.lang
%doc AUTHORS NEWS README
%license COPYING
%config(noreplace) %{_sysconfdir}/xdg/autostart/tracker*.desktop
%{_userunitdir}/tracker*.service
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%{_libdir}/tracker-miners-2.0/
%{_libexecdir}/tracker*
%{_datadir}/dbus-1/services/org.freedesktop.Tracker*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/tracker/
%{_datadir}/tracker-miners/
%files help
%{_mandir}/man1/tracker-*.1*
%changelog
* Thu Sep 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.5-2
- Package init