tracker-miners-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. %bcond_with systemd
  2. %global with_enca 1
  3. %global with_libcue 1
  4. %global with_rss 0
  5. %global tracker_version 2.2.0
  6. %global systemd_units tracker-extract.service tracker-miner-fs.service tracker-miner-rss.service tracker-writeback.service
  7. # Exclude private libraries from autogenerated provides and requires
  8. %global __provides_exclude_from ^%{_libdir}/tracker-miners-2.0/
  9. %global __requires_exclude ^(libtracker-extract\.so|libtracker-miners-common\.so|libextract-.*\.so|libwriteback-.*\.so)
  10. Name: tracker-miners
  11. Version: 2.3.1
  12. Release: 1%{?_dist_release}
  13. Summary: Tracker miners and metadata extractors
  14. Group: Applications/Services
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. # libtracker-extract is LGPLv2+; the miners are a mix of GPLv2+ and LGPLv2+ code
  18. License: GPLv2+ and LGPLv2+
  19. URL: https://wiki.gnome.org/Projects/Tracker
  20. %define shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
  21. Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz
  22. BuildRequires: gcc
  23. BuildRequires: giflib-devel
  24. BuildRequires: intltool
  25. BuildRequires: meson
  26. %if %{with systemd}
  27. BuildRequires: systemd
  28. %endif
  29. BuildRequires: pkgconfig(dbus-1)
  30. %if 0%{?with_enca}
  31. BuildRequires: pkgconfig(enca)
  32. %endif
  33. BuildRequires: pkgconfig(exempi-2.0)
  34. BuildRequires: flac-devel
  35. BuildRequires: pkgconfig(gexiv2)
  36. BuildRequires: pkgconfig(gstreamer-1.0)
  37. BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
  38. BuildRequires: pkgconfig(gstreamer-tag-1.0)
  39. BuildRequires: pkgconfig(icu-i18n)
  40. BuildRequires: pkgconfig(icu-uc)
  41. %if 0%{?with_libcue}
  42. BuildRequires: pkgconfig(libcue)
  43. %endif
  44. BuildRequires: pkgconfig(libexif)
  45. %if 0%{?with_rss}
  46. BuildRequires: pkgconfig(libgrss)
  47. %endif
  48. BuildRequires: pkgconfig(libgsf-1)
  49. BuildRequires: pkgconfig(libgxps)
  50. #BuildRequires: pkgconfig(libiptcdata)
  51. BuildRequires: pkgconfig(libjpeg)
  52. #BuildRequires: pkgconfig(libosinfo-1.0)
  53. BuildRequires: pkgconfig(libpng)
  54. BuildRequires: pkgconfig(libseccomp)
  55. BuildRequires: pkgconfig(libtiff-4)
  56. BuildRequires: pkgconfig(libxml-2.0)
  57. BuildRequires: pkgconfig(poppler-glib)
  58. BuildRequires: pkgconfig(taglib_c)
  59. BuildRequires: pkgconfig(totem-plparser)
  60. BuildRequires: pkgconfig(tracker-sparql-2.0)
  61. BuildRequires: pkgconfig(upower-glib)
  62. BuildRequires: pkgconfig(vorbisfile)
  63. BuildRequires: pkgconfig(zlib)
  64. %if %{with systemd}
  65. %{?systemd_requires}
  66. %endif
  67. Requires: tracker%{?_isa} >= %{tracker_version}
  68. # tracker-miners was split out from tracker in 1.99.2
  69. Obsoletes: tracker < 1.99.2
  70. Conflicts: tracker < 1.99.2
  71. %description
  72. Tracker is a powerful desktop-neutral first class object database,
  73. tag/metadata database and search tool.
  74. This package contains various miners and metadata extractors for tracker.
  75. %prep
  76. %autosetup -p1
  77. %build
  78. # Disable the functional tests for now, they use python bytecodes.
  79. %meson \
  80. -Dfunctional_tests=false \
  81. -Diptc=disabled \
  82. -Diso=disabled \
  83. -Dminer_rss=false \
  84. %if %{with systemd}
  85. -Dsystemd_user_services=%{_userunitdir}
  86. %endif
  87. %{nil}
  88. %meson_build
  89. %install
  90. %meson_install
  91. rm -rf %{buildroot}%{_datadir}/tracker-tests
  92. %find_lang %{name}
  93. %post
  94. %if %{with systemd}
  95. %systemd_user_post %{systemd_units}
  96. %endif
  97. if [ $1 -eq 1 ]; then
  98. glib-compile-schemas /usr/share/glib-2.0/schemas ||:
  99. update-desktop-database -q > /dev/null || :
  100. fi
  101. %if %{with systemd}
  102. %preun
  103. %systemd_user_preun %{systemd_units}
  104. %endif
  105. %postun
  106. %if %{with systemd}
  107. %systemd_user_postun_with_restart %{systemd_units}
  108. %endif
  109. if [ $1 -eq 0 ]; then
  110. glib-compile-schemas /usr/share/glib-2.0/schemas ||:
  111. update-desktop-database -q > /dev/null || :
  112. fi
  113. %files -f %{name}.lang
  114. %license COPYING
  115. %doc AUTHORS NEWS README.md
  116. %{_libdir}/tracker-miners-2.0/
  117. %{_libexecdir}/tracker*
  118. %{_datadir}/dbus-1/services/org.freedesktop.Tracker*
  119. %{_datadir}/glib-2.0/schemas/*
  120. %{_datadir}/tracker/
  121. %{_datadir}/tracker-miners/
  122. %{_mandir}/man1/tracker-*.1*
  123. %config(noreplace) %{_sysconfdir}/xdg/autostart/tracker*.desktop
  124. %if %{with systemd}
  125. %{_userunitdir}/tracker*.service
  126. %endif
  127. %changelog
  128. * Tue Oct 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.3.1
  129. - initial build for Vine Linux.
  130. - new upstream release.
  131. * Mon Sep 09 2019 Kalev Lember <klember@redhat.com> - 2.3.0-1
  132. - Update to 2.3.0
  133. * Fri Sep 06 2019 Nikola Forró <nforro@redhat.com> - 2.2.99.1-2
  134. - Rebuilt for exempi 2.5.1
  135. * Fri Sep 06 2019 Kalev Lember <klember@redhat.com> - 2.2.99.1-1
  136. - Update to 2.2.99.1
  137. * Mon Aug 12 2019 Kalev Lember <klember@redhat.com> - 2.2.99.0-1
  138. - Update to 2.2.99.0
  139. * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
  140. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  141. * Fri May 03 2019 David King <amigadave@amigadave.com> - 2.2.2-1
  142. - Update to 2.2.2
  143. * Fri Mar 08 2019 Kalev Lember <klember@redhat.com> - 2.2.1-1
  144. - Update to 2.2.1
  145. * Thu Feb 21 2019 Kalev Lember <klember@redhat.com> - 2.2.0-3
  146. - Exclude private libraries from autogenerated provides and requires
  147. * Thu Feb 21 2019 Kalev Lember <klember@redhat.com> - 2.2.0-2
  148. - Fix the package to be installable again
  149. * Wed Feb 20 2019 Kalev Lember <klember@redhat.com> - 2.2.0-1
  150. - Update to 2.2.0
  151. - Switch to the meson build system
  152. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-4
  153. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  154. * Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 2.1.5-3
  155. - Rebuild for ICU 63
  156. * Mon Jan 21 2019 Kevin Fenzi <kevin@scrye.com> - 2.1.5-2
  157. - Rebuild to drop libiptcdata deps
  158. * Fri Sep 28 2018 Kalev Lember <klember@redhat.com> - 2.1.5-1
  159. - Update to 2.1.5
  160. * Wed Sep 05 2018 Kalev Lember <klember@redhat.com> - 2.1.4-2
  161. - Rebuilt with fixed vala
  162. * Tue Sep 04 2018 Kalev Lember <klember@redhat.com> - 2.1.4-1
  163. - Update to 2.1.4
  164. * Mon Sep 03 2018 Kalev Lember <klember@redhat.com> - 2.1.3-1
  165. - Update to 2.1.3
  166. * Sun Aug 19 2018 Kalev Lember <klember@redhat.com> - 2.1.1-1
  167. - Update to 2.1.1
  168. * Wed Jul 25 2018 Kalev Lember <klember@redhat.com> - 2.1.0-1
  169. - Update to 2.1.0
  170. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-3
  171. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  172. * Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 2.0.5-2
  173. - Rebuild for ICU 62
  174. * Tue Jun 26 2018 Kalev Lember <klember@redhat.com> - 2.0.5-1
  175. - Update to 2.0.5
  176. * Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 2.0.4-4
  177. - Rebuild for ICU 61.1
  178. * Sun Feb 11 2018 Sandro Mani <manisandro@gmail.com> - 2.0.4-3
  179. - Rebuild (giflib)
  180. * Thu Feb 08 2018 Kalev Lember <klember@redhat.com> - 2.0.4-2
  181. - Rebuild to really enable the RAW extractor
  182. * Wed Feb 07 2018 Kalev Lember <klember@redhat.com> - 2.0.4-1
  183. - Update to 2.0.4
  184. - Enable new gexiv2 based RAW extractor
  185. * Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 2.0.3-2
  186. - Rebuild for ICU 60.1
  187. * Tue Nov 21 2017 Kalev Lember <klember@redhat.com> - 2.0.3-1
  188. - Update to 2.0.3
  189. * Fri Oct 06 2017 Kalev Lember <klember@redhat.com> - 2.0.2-1
  190. - Update to 2.0.2
  191. * Tue Sep 19 2017 Kalev Lember <klember@redhat.com> - 2.0.0-3
  192. - Backport a fix for a crash when processing virtual elements (#1488707)
  193. * Fri Sep 15 2017 Kalev Lember <klember@redhat.com> - 2.0.0-2
  194. - Package review fixes (#1491725):
  195. - Pass --disable-mp3 to use the generic gstreamer extractor
  196. - Disable libstemmer support to match the previous behaviour
  197. - Fix removing .so symlinks for private libraries
  198. - Remove ldconfig rpm scripts as we don't install any shared libraries
  199. - Correct license tag and add comment explaining mixed source licensing
  200. * Thu Sep 14 2017 Kalev Lember <klember@redhat.com> - 2.0.0-1
  201. - Initial Fedora packaging