]>
Commit | Line | Data |
---|---|---|
434d2067 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with ffmpeg # FFmpeg instead of GStreamer as generic media extractor | |
4 | %bcond_with gupnp # GStreamer gupnp backend instead of discoverer | |
5 | %bcond_with icu # ICU instead of enca for MP3 encoding detection | |
6 | ||
7 | %define abiver 2.0 | |
152f9656 JK |
8 | Summary: Tracker miners and metadata extractors |
9 | Summary(pl.UTF-8): Narzędzia wydobywania danych dla programu Tracker | |
10 | Name: tracker-miners | |
434d2067 | 11 | Version: 2.2.2 |
152f9656 | 12 | Release: 1 |
434d2067 JB |
13 | # see COPYING for details |
14 | License: LGPL v2.1+ (libs), GPL v2+ (miners) | |
152f9656 | 15 | Group: Applications |
434d2067 JB |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/tracker-miners/2.2/%{name}-%{version}.tar.xz |
17 | # Source0-md5: a95842d4cbffb7230bde7cd98f6a9afe | |
152f9656 | 18 | URL: https://wiki.gnome.org/Projects/Tracker |
434d2067 JB |
19 | BuildRequires: dbus-devel >= 1.3.1 |
20 | %{!?with_icu:BuildRequires: enca-devel >= 1.9} | |
21 | BuildRequires: exempi-devel >= 2.1.0 | |
22 | # libavcodec libavformat libavutil | |
23 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.4} | |
24 | BuildRequires: gexiv2-devel | |
25 | BuildRequires: giflib-devel | |
26 | BuildRequires: glib2-devel >= 1:2.40.0 | |
27 | %if %{without ffmpeg} | |
28 | BuildRequires: gstreamer-devel >= 1.0 | |
29 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
30 | %endif | |
31 | %if %{with gupnp} | |
32 | BuildRequires: gupnp-dlna-devel >= 0.9.4 | |
33 | BuildRequires: gupnp-dlna-gst-devel >= 0.9.4 | |
34 | %endif | |
35 | BuildRequires: libcue-devel | |
36 | BuildRequires: libexif-devel >= 0.6 | |
37 | BuildRequires: libgrss-devel >= 0.7 | |
38 | BuildRequires: libgsf-devel >= 1.14.24 | |
39 | BuildRequires: libgxps-devel | |
40 | %{?with_icu:BuildRequires: libicu-devel >= 4.8.1.1} | |
41 | BuildRequires: libiptcdata-devel | |
42 | BuildRequires: libjpeg-devel | |
43 | BuildRequires: libosinfo-devel >= 0.2.9 | |
44 | BuildRequires: libpng-devel | |
45 | %ifnarch alpha ia64 m68k parisc sh4 sparc sparcv9 sparc64 | |
46 | BuildRequires: libseccomp-devel >= 2.0 | |
47 | %endif | |
48 | BuildRequires: libtiff-devel >= 4 | |
49 | BuildRequires: libvorbis-devel >= 0.22 | |
50 | BuildRequires: libxml2-devel >= 1:2.6 | |
51 | BuildRequires: meson >= 0.47 | |
52 | BuildRequires: ninja >= 1.5 | |
152f9656 | 53 | BuildRequires: pkgconfig |
434d2067 JB |
54 | BuildRequires: poppler-glib-devel >= 0.16.0 |
55 | BuildRequires: rpmbuild(macros) >= 1.736 | |
56 | BuildRequires: systemd-units | |
57 | BuildRequires: taglib-devel >= 1.6 | |
58 | BuildRequires: totem-pl-parser-devel | |
59 | BuildRequires: tracker-devel >= 2.2.0 | |
60 | BuildRequires: upower-devel >= 0.9.0 | |
61 | BuildRequires: zlib-devel | |
62 | Requires: dbus >= 1.3.1 | |
63 | %{!?with_icu:Requires: enca-libs >= 1.9} | |
64 | Requires: exempi >= 2.1.0 | |
65 | Requires: glib2 >= 1:2.40.0 | |
66 | %if %{with gupnp} | |
67 | Requires: gupnp-dlna >= 0.9.4 | |
68 | Requires: gupnp-dlna-gst >= 0.9.4 | |
69 | %endif | |
70 | Requires: libexif >= 0.6 | |
71 | Requires: libgrss >= 0.7 | |
72 | Requires: libgsf >= 1.14.24 | |
73 | Requires: libosinfo >= 0.2.9 | |
74 | Requires: libvorbis >= 0.22 | |
75 | Requires: libxml2 >= 1:2.6 | |
76 | Requires: taglib >= 1.6 | |
77 | Requires: tracker >= 2.2.0 | |
152f9656 JK |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79 | ||
80 | %description | |
81 | This package contains various miners and metadata extractors for | |
82 | tracker. | |
83 | ||
84 | %description -l pl.UTF-8 | |
85 | Ten pakiet zawiera narzędzia wydobywania danych dla programu Tracker. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
434d2067 JB |
91 | %meson build \ |
92 | --default-library=shared \ | |
93 | -Dbattery-detection=upower \ | |
94 | -Dcharset_detection=%{?with_icu:icu}%{!?with_icu:enca} \ | |
95 | -Dfunctional_tests=false \ | |
96 | -Dgeneric_media_extractor=%{?with_ffmpeg:libav}%{!?with_ffmpeg:gstreamer} \ | |
97 | -Dgstreamer_backend=%{?with_gupnp:gupnp}%{!?with_gupnp:discoverer} | |
98 | ||
99 | %ninja_build -C build | |
152f9656 JK |
100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
434d2067 | 104 | %ninja_install -C build |
152f9656 JK |
105 | |
106 | %find_lang tracker-miners | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
112 | %glib_compile_schemas | |
113 | ||
114 | %postun | |
115 | %glib_compile_schemas | |
116 | ||
117 | %files -f tracker-miners.lang | |
118 | %defattr(644,root,root,755) | |
434d2067 JB |
119 | %doc AUTHORS COPYING MAINTAINERS NEWS README.md |
120 | %attr(755,root,root) %{_libexecdir}/tracker-extract | |
121 | %attr(755,root,root) %{_libexecdir}/tracker-miner-fs | |
122 | %attr(755,root,root) %{_libexecdir}/tracker-miner-rss | |
123 | %attr(755,root,root) %{_libexecdir}/tracker-writeback | |
124 | %{_sysconfdir}/xdg/autostart/tracker-extract.desktop | |
125 | %{_sysconfdir}/xdg/autostart/tracker-miner-fs.desktop | |
126 | %{_sysconfdir}/xdg/autostart/tracker-miner-rss.desktop | |
127 | %{systemduserunitdir}/tracker-extract.service | |
128 | %{systemduserunitdir}/tracker-miner-fs.service | |
129 | %{systemduserunitdir}/tracker-miner-rss.service | |
130 | %{systemduserunitdir}/tracker-writeback.service | |
131 | %dir %{_libdir}/%{name}-%{abiver} | |
132 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/libtracker-extract.so | |
133 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/libtracker-miners-common.so | |
134 | %dir %{_libdir}/%{name}-%{abiver}/extract-modules | |
135 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-abw.so | |
136 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-bmp.so | |
137 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-desktop.so | |
138 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-dummy.so | |
139 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-dvi.so | |
140 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-epub.so | |
141 | # R: flac | |
142 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-flac.so | |
143 | # R: giflib | |
144 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-gif.so | |
145 | # R: gstreamer gstreamer-plugins-base | |
146 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-gstreamer.so | |
147 | # R: libxml2 | |
148 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-html.so | |
149 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-icon.so | |
150 | # R: libosinfo | |
151 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-iso.so | |
152 | # R: libiptcdata libjpeg | |
153 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-jpeg.so | |
154 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-mp3.so | |
155 | # R: libgsf | |
156 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-msoffice.so | |
157 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-msoffice-xml.so | |
158 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-oasis.so | |
159 | # R: poppler-glib | |
160 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-pdf.so | |
161 | # R: totem-plparser | |
162 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-playlist.so | |
163 | # R: libpng | |
164 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-png.so | |
165 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-ps.so | |
166 | # R: libgexiv2 | |
167 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-raw.so | |
168 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-text.so | |
169 | # R: libtiff | |
170 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-tiff.so | |
171 | # R: libvorbis | |
172 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-vorbis.so | |
173 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-xmp.so | |
174 | # R: libgxps | |
175 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-xps.so | |
176 | %dir %{_libdir}/%{name}-%{abiver}/writeback-modules | |
177 | # R: taglib | |
178 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/writeback-modules/libwriteback-taglib.so | |
179 | # R: exempi | |
180 | %attr(755,root,root) %{_libdir}/%{name}-%{abiver}/writeback-modules/libwriteback-xmp.so | |
152f9656 JK |
181 | %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Extract.service |
182 | %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Files.service | |
183 | %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.RSS.service | |
184 | %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Writeback.service | |
185 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml | |
186 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml | |
187 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Writeback.gschema.xml | |
188 | %{_datadir}/glib-2.0/schemas/org.freedesktop.TrackerMiners.enums.xml | |
152f9656 | 189 | %dir %{_datadir}/tracker/miners |
152f9656 JK |
190 | %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.Extract.service |
191 | %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.Files.service | |
192 | %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.RSS.service | |
434d2067 JB |
193 | %dir %{_datadir}/%{name} |
194 | %dir %{_datadir}/%{name}/extract-rules | |
195 | # standalone (builtin?) rules | |
196 | %{_datadir}/%{name}/extract-rules/10-comics.rule | |
197 | %{_datadir}/%{name}/extract-rules/10-ebooks.rule | |
198 | %{_datadir}/%{name}/extract-rules/10-svg.rule | |
199 | # modules | |
200 | %{_datadir}/%{name}/extract-rules/10-abw.rule | |
201 | %{_datadir}/%{name}/extract-rules/10-bmp.rule | |
202 | %{_datadir}/%{name}/extract-rules/10-desktop.rule | |
203 | %{_datadir}/%{name}/extract-rules/10-dvi.rule | |
204 | %{_datadir}/%{name}/extract-rules/10-epub.rule | |
205 | %{_datadir}/%{name}/extract-rules/10-flac.rule | |
206 | %{_datadir}/%{name}/extract-rules/10-gif.rule | |
207 | %{_datadir}/%{name}/extract-rules/10-html.rule | |
208 | %{_datadir}/%{name}/extract-rules/10-ico.rule | |
209 | %{_datadir}/%{name}/extract-rules/10-jpeg.rule | |
210 | %{_datadir}/%{name}/extract-rules/10-mp3.rule | |
211 | %{_datadir}/%{name}/extract-rules/10-msoffice.rule | |
212 | %{_datadir}/%{name}/extract-rules/10-oasis.rule | |
213 | %{_datadir}/%{name}/extract-rules/10-pdf.rule | |
214 | %{_datadir}/%{name}/extract-rules/10-png.rule | |
215 | %{_datadir}/%{name}/extract-rules/10-ps.rule | |
216 | %{_datadir}/%{name}/extract-rules/10-raw.rule | |
217 | %{_datadir}/%{name}/extract-rules/10-tiff.rule | |
218 | %{_datadir}/%{name}/extract-rules/10-vorbis.rule | |
219 | %{_datadir}/%{name}/extract-rules/10-xmp.rule | |
220 | %{_datadir}/%{name}/extract-rules/10-xps.rule | |
221 | %{_datadir}/%{name}/extract-rules/11-iso.rule | |
222 | %{_datadir}/%{name}/extract-rules/11-msoffice-xml.rule | |
223 | # libextract-gstreamer | |
224 | %{_datadir}/%{name}/extract-rules/15-gstreamer-guess.rule | |
225 | %{_datadir}/%{name}/extract-rules/15-playlist.rule | |
226 | # libextract-text | |
227 | %{_datadir}/%{name}/extract-rules/15-source-code.rule | |
228 | # libextract-gstreamer | |
229 | %{_datadir}/%{name}/extract-rules/90-gstreamer-audio-generic.rule | |
230 | # libextract-gstreamer | |
231 | %{_datadir}/%{name}/extract-rules/90-gstreamer-image-generic.rule | |
232 | # libextract-gstreamer | |
233 | %{_datadir}/%{name}/extract-rules/90-gstreamer-video-generic.rule | |
234 | # libextract-text | |
235 | %{_datadir}/%{name}/extract-rules/90-text-generic.rule | |
236 | %{_mandir}/man1/tracker-extract.1* | |
237 | %{_mandir}/man1/tracker-miner-fs.1* | |
238 | %{_mandir}/man1/tracker-miner-rss.1* | |
239 | %{_mandir}/man1/tracker-writeback.1* |