Blame SPECS/tracker-miners.spec

7f1057
%if 0%{?rhel}
7f1057
%global with_enca 0
7f1057
%global with_libcue 0
7f1057
%global with_rss 0
7f1057
%else
7f1057
%global with_enca 1
7f1057
%global with_libcue 1
7f1057
%global with_rss 1
7f1057
%endif
7f1057
7f1057
%global tracker_version 2.1.0
7f1057
7f1057
%global systemd_units tracker-extract.service tracker-miner-apps.service tracker-miner-fs.service tracker-miner-rss.service tracker-writeback.service
7f1057
7f1057
Name:           tracker-miners
7f1057
Version:        2.1.5
7f1057
Release:        1%{?dist}
7f1057
Summary:        Tracker miners and metadata extractors
7f1057
7f1057
# libtracker-extract is LGPLv2+; the miners are a mix of GPLv2+ and LGPLv2+ code
7f1057
License:        GPLv2+ and LGPLv2+
7f1057
URL:            https://wiki.gnome.org/Projects/Tracker
7f1057
Source0:        https://download.gnome.org/sources/%{name}/2.1/%{name}-%{version}.tar.xz
7f1057
7f1057
BuildRequires:  giflib-devel
7f1057
BuildRequires:  intltool
7f1057
BuildRequires:  libjpeg-devel
7f1057
BuildRequires:  libtiff-devel
7f1057
BuildRequires:  systemd
7f1057
BuildRequires:  vala
7f1057
%if 0%{?with_enca}
7f1057
BuildRequires:  pkgconfig(enca)
7f1057
%endif
7f1057
BuildRequires:  pkgconfig(exempi-2.0)
7f1057
BuildRequires:  pkgconfig(flac)
7f1057
BuildRequires:  pkgconfig(gexiv2)
7f1057
BuildRequires:  pkgconfig(gstreamer-1.0)
7f1057
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0)
7f1057
BuildRequires:  pkgconfig(gstreamer-tag-1.0)
7f1057
BuildRequires:  pkgconfig(icu-i18n)
7f1057
BuildRequires:  pkgconfig(icu-uc)
7f1057
%if 0%{?with_libcue}
7f1057
BuildRequires:  pkgconfig(libcue)
7f1057
%endif
7f1057
BuildRequires:  pkgconfig(libexif)
7f1057
%if 0%{?with_rss}
7f1057
BuildRequires:  pkgconfig(libgrss)
7f1057
%endif
7f1057
BuildRequires:  pkgconfig(libgsf-1)
7f1057
BuildRequires:  pkgconfig(libgxps)
7f1057
BuildRequires:  pkgconfig(libiptcdata)
7f1057
BuildRequires:  pkgconfig(libosinfo-1.0)
7f1057
BuildRequires:  pkgconfig(libpng)
7f1057
BuildRequires:  pkgconfig(libseccomp)
7f1057
BuildRequires:  pkgconfig(libxml-2.0)
7f1057
BuildRequires:  pkgconfig(poppler-glib)
7f1057
BuildRequires:  pkgconfig(taglib_c)
7f1057
BuildRequires:  pkgconfig(totem-plparser)
7f1057
BuildRequires:  pkgconfig(tracker-sparql-2.0) >= %{tracker_version}
7f1057
BuildRequires:  pkgconfig(upower-glib)
7f1057
BuildRequires:  pkgconfig(vorbisfile)
7f1057
7f1057
%{?systemd_requires}
7f1057
Requires:       tracker%{?_isa} >= %{tracker_version}
7f1057
7f1057
# tracker-miners was split out from tracker in 1.99.2
7f1057
Obsoletes:      tracker < 1.99.2
7f1057
Conflicts:      tracker < 1.99.2
7f1057
7f1057
%description
7f1057
Tracker is a powerful desktop-neutral first class object database,
7f1057
tag/metadata database and search tool.
7f1057
7f1057
This package contains various miners and metadata extractors for tracker.
7f1057
7f1057
7f1057
%prep
7f1057
%autosetup -p1
7f1057
7f1057
7f1057
%build
7f1057
# Disable the functional tests for now, they use python bytecodes.
7f1057
%configure --disable-static \
7f1057
           --enable-libflac \
7f1057
           --enable-libvorbis \
7f1057
           --disable-mp3 \
7f1057
           --disable-functional-tests \
7f1057
           --disable-silent-rules
7f1057
%make_build
7f1057
7f1057
7f1057
%install
7f1057
%make_install
7f1057
7f1057
find %{buildroot} -type f -name "*.la" -delete
7f1057
rm -rf %{buildroot}%{_datadir}/tracker-tests
7f1057
7f1057
# Remove .so symlinks for private libraries -- no external users are supposed
7f1057
# to link with them.
7f1057
rm -f %{buildroot}%{_libdir}/tracker-miners-2.0/*.so
7f1057
7f1057
%find_lang %{name}
7f1057
7f1057
7f1057
%post
7f1057
%systemd_user_post %{systemd_units}
7f1057
7f1057
%preun
7f1057
%systemd_user_preun %{systemd_units}
7f1057
7f1057
%postun
7f1057
%systemd_user_postun_with_restart %{systemd_units}
7f1057
7f1057
7f1057
%files -f %{name}.lang
7f1057
%license COPYING
7f1057
%doc AUTHORS NEWS README
7f1057
%{_libdir}/tracker-miners-2.0/
7f1057
%{_libexecdir}/tracker*
7f1057
%{_datadir}/dbus-1/services/org.freedesktop.Tracker*
7f1057
%{_datadir}/glib-2.0/schemas/*
7f1057
%{_datadir}/tracker/
7f1057
%{_datadir}/tracker-miners/
7f1057
%{_mandir}/man1/tracker-*.1*
7f1057
%config(noreplace) %{_sysconfdir}/xdg/autostart/tracker*.desktop
7f1057
%{_userunitdir}/tracker*.service
7f1057
7f1057
7f1057
%changelog
7f1057
* Fri Sep 28 2018 Kalev Lember <klember@redhat.com> - 2.1.5-1
7f1057
- Update to 2.1.5
7f1057
7f1057
* Wed Jul 25 2018 Kalev Lember <klember@redhat.com> - 2.1.0-1
7f1057
- Update to 2.1.0
7f1057
7f1057
* Tue Jun 26 2018 Kalev Lember <klember@redhat.com> - 2.0.5-1
7f1057
- Update to 2.0.5
7f1057
7f1057
* Sun Feb 11 2018 Sandro Mani <manisandro@gmail.com> - 2.0.4-3
7f1057
- Rebuild (giflib)
7f1057
7f1057
* Thu Feb 08 2018 Kalev Lember <klember@redhat.com> - 2.0.4-2
7f1057
- Rebuild to really enable the RAW extractor
7f1057
7f1057
* Wed Feb 07 2018 Kalev Lember <klember@redhat.com> - 2.0.4-1
7f1057
- Update to 2.0.4
7f1057
- Enable new gexiv2 based RAW extractor
7f1057
7f1057
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 2.0.3-2
7f1057
- Rebuild for ICU 60.1
7f1057
7f1057
* Tue Nov 21 2017 Kalev Lember <klember@redhat.com> - 2.0.3-1
7f1057
- Update to 2.0.3
7f1057
7f1057
* Fri Oct 06 2017 Kalev Lember <klember@redhat.com> - 2.0.2-1
7f1057
- Update to 2.0.2
7f1057
7f1057
* Tue Sep 19 2017 Kalev Lember <klember@redhat.com> - 2.0.0-3
7f1057
- Backport a fix for a crash when processing virtual elements (#1488707)
7f1057
7f1057
* Fri Sep 15 2017 Kalev Lember <klember@redhat.com> - 2.0.0-2
7f1057
- Package review fixes (#1491725):
7f1057
- Pass --disable-mp3 to use the generic gstreamer extractor
7f1057
- Disable libstemmer support to match the previous behaviour
7f1057
- Fix removing .so symlinks for private libraries
7f1057
- Remove ldconfig rpm scripts as we don't install any shared libraries
7f1057
- Correct license tag and add comment explaining mixed source licensing
7f1057
7f1057
* Thu Sep 14 2017 Kalev Lember <klember@redhat.com> - 2.0.0-1
7f1057
- Initial Fedora packaging