From 7110137e91d6d4603242db78f2bce4647a779f6a Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 15 Sep 2017 23:09:34 +0200 Subject: [PATCH] Initial import https://bugzilla.redhat.com/show_bug.cgi?id=1491725 --- .gitignore | 1 + README.md | 3 - sources | 1 + tracker-miners.spec | 138 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 sources create mode 100644 tracker-miners.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8314df5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tracker-miners-2.0.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 2e266b7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# tracker-miners - -The tracker-miners package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..99b720c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tracker-miners-2.0.0.tar.xz) = de702229a2398dca4b862407a6b0631c76fce129f45731be741c0e0110670e2f1e7450ebe23683094269e051766a92060768fafebf32df6d846d765dd0d2cc68 diff --git a/tracker-miners.spec b/tracker-miners.spec new file mode 100644 index 0000000..3590530 --- /dev/null +++ b/tracker-miners.spec @@ -0,0 +1,138 @@ +%if 0%{?rhel} +%global with_enca 0 +%global with_libcue 0 +%global with_rss 0 +%else +%global with_enca 1 +%global with_libcue 1 +%global with_rss 1 +%endif + +%global tracker_version 1.99 + +%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.0.0 +Release: 2%{?dist} +Summary: Tracker miners and metadata extractors + +# libtracker-extract is LGPLv2+; the miners are a mix of GPLv2+ and LGPLv2+ code +License: GPLv2+ and LGPLv2+ +URL: https://wiki.gnome.org/Projects/Tracker +Source0: https://download.gnome.org/sources/%{name}/2.0/%{name}-%{version}.tar.xz + +BuildRequires: giflib-devel +BuildRequires: intltool +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: systemd +BuildRequires: vala +%if 0%{?with_enca} +BuildRequires: pkgconfig(enca) +%endif +BuildRequires: pkgconfig(exempi-2.0) +BuildRequires: pkgconfig(flac) +BuildRequires: pkgconfig(gstreamer-1.0) +BuildRequires: pkgconfig(gstreamer-pbutils-1.0) +BuildRequires: pkgconfig(gstreamer-tag-1.0) +BuildRequires: pkgconfig(icu-i18n) +BuildRequires: pkgconfig(icu-uc) +%if 0%{?with_libcue} +BuildRequires: pkgconfig(libcue) +%endif +BuildRequires: pkgconfig(libexif) +%if 0%{?with_rss} +BuildRequires: pkgconfig(libgrss) +%endif +BuildRequires: pkgconfig(libgsf-1) +BuildRequires: pkgconfig(libgxps) +BuildRequires: pkgconfig(libiptcdata) +BuildRequires: pkgconfig(libosinfo-1.0) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libseccomp) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(poppler-glib) +BuildRequires: pkgconfig(taglib_c) +BuildRequires: pkgconfig(totem-plparser) +BuildRequires: pkgconfig(tracker-sparql-2.0) >= %{tracker_version} +BuildRequires: pkgconfig(upower-glib) +BuildRequires: pkgconfig(vorbisfile) + +%{?systemd_requires} +Requires: tracker%{?_isa} >= %{tracker_version} + +# tracker-miners was split out from tracker in 1.99.2 +Obsoletes: tracker < 1.99.2 +Conflicts: tracker < 1.99.2 + +%description +Tracker is a powerful desktop-neutral first class object database, +tag/metadata database and search tool. + +This package contains various miners and metadata extractors for tracker. + + +%prep +%autosetup -p1 + + +%build +# Disable the functional tests for now, they use python bytecodes. +%configure --disable-static \ + --enable-libflac \ + --enable-libvorbis \ + --disable-mp3 \ + --disable-functional-tests \ + --disable-silent-rules +%make_build + + +%install +%make_install + +find %{buildroot} -type f -name "*.la" -delete +rm -rf %{buildroot}%{_datadir}/tracker-tests + +# Remove .so symlinks for private libraries -- no external users are supposed +# to link with them. +rm -f %{buildroot}%{_libdir}/tracker-miners-2.0/*.so + +%find_lang %{name} + + +%post +%systemd_user_post %{systemd_units} + +%preun +%systemd_user_preun %{systemd_units} + +%postun +%systemd_user_postun_with_restart %{systemd_units} + + +%files -f %{name}.lang +%license COPYING +%doc AUTHORS NEWS README +%{_libdir}/tracker-miners-2.0/ +%{_libexecdir}/tracker* +%{_datadir}/dbus-1/services/org.freedesktop.Tracker* +%{_datadir}/glib-2.0/schemas/* +%{_datadir}/tracker/ +%{_datadir}/tracker-miners/ +%{_mandir}/man1/tracker-*.1* +%config(noreplace) %{_sysconfdir}/xdg/autostart/tracker*.desktop +%{_userunitdir}/tracker*.service + + +%changelog +* Fri Sep 15 2017 Kalev Lember - 2.0.0-2 +- Package review fixes (#1491725): +- Pass --disable-mp3 to use the generic gstreamer extractor +- Disable libstemmer support to match the previous behaviour +- Fix removing .so symlinks for private libraries +- Remove ldconfig rpm scripts as we don't install any shared libraries +- Correct license tag and add comment explaining mixed source licensing + +* Thu Sep 14 2017 Kalev Lember - 2.0.0-1 +- Initial Fedora packaging