]>
Commit | Line | Data |
---|---|---|
3b6400c7 JB |
1 | Summary: Simple document viewer |
2 | Summary(pl.UTF-8): Prosta przeglądarka dokumentów | |
3 | Name: xreader | |
97c71d24 | 4 | Version: 3.8.1 |
1ae6b9f0 | 5 | Release: 1 |
3b6400c7 JB |
6 | License: GPL v2+ |
7 | Group: X11/Applications | |
8 | #Source0Download: https://github.com/linuxmint/xreader/releases | |
9 | Source0: https://github.com/linuxmint/xreader/archive/%{version}/%{name}-%{version}.tar.gz | |
97c71d24 | 10 | # Source0-md5: 2cdefa53bc0e28d5080314b34118c4de |
3b6400c7 JB |
11 | # remove when we get kpathsea.pc in texlive |
12 | Patch0: %{name}-kpathsea-no-pc.patch | |
13 | Patch1: %{name}-doc.patch | |
1ae6b9f0 | 14 | Patch2: %{name}-meson.patch |
3b6400c7 JB |
15 | URL: https://github.com/linuxmint/xreader |
16 | BuildRequires: appstream-glib | |
97c71d24 | 17 | BuildRequires: cairo-devel >= 1.14.0 |
3b6400c7 JB |
18 | BuildRequires: djvulibre-devel >= 3.5.17 |
19 | BuildRequires: glib2-devel >= 1:2.36.0 | |
20 | BuildRequires: gobject-introspection-devel | |
21 | BuildRequires: gtk+3-devel >= 3.14.0 | |
22 | BuildRequires: gtk-doc | |
97c71d24 | 23 | BuildRequires: gtk-webkit4.1-devel >= 2.34 |
1ae6b9f0 | 24 | BuildRequires: intltool |
3b6400c7 JB |
25 | BuildRequires: kpathsea-devel |
26 | BuildRequires: libgxps-devel >= 0.2.1 | |
27 | # not used actually | |
28 | #BuildRequires: libsecret-devel >= 0.5 | |
29 | BuildRequires: libspectre-devel >= 0.2.0 | |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtiff-devel >= 4 | |
32 | BuildRequires: libxml2-devel >= 1:2.5.0 | |
33 | BuildRequires: meson >= 0.46 | |
34 | BuildRequires: ninja >= 1.5 | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: poppler-glib-devel | |
37 | BuildRequires: rpmbuild(macros) >= 1.736 | |
38 | BuildRequires: t1lib-devel | |
97c71d24 | 39 | BuildRequires: xapps-devel >= 2.5.0 |
3b6400c7 JB |
40 | BuildRequires: xorg-lib-libICE-devel |
41 | BuildRequires: xorg-lib-libSM-devel | |
42 | BuildRequires: xorg-lib-libX11-devel | |
43 | BuildRequires: yelp-tools | |
44 | BuildRequires: zlib-devel | |
45 | Requires(post,postun): desktop-file-utils | |
46 | Requires(post,postun): glib2 >= 1:2.38.0 | |
47 | Requires(post,postun): gtk-update-icon-cache | |
48 | Requires: %{name}-libs = %{version}-%{release} | |
49 | Requires: gsettings-desktop-schemas | |
50 | Requires: hicolor-icon-theme | |
51 | Requires: shared-mime-info | |
97c71d24 | 52 | Requires: xapps >= 2.5.0 |
3b6400c7 JB |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
56 | X-Apps Document Reader is a document viewer capable of displaying | |
57 | multiple and single page document formats like PDF and PostScript. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | X-Apps Document Viewer to przeglądarka dokumentów potrafiąca | |
61 | wyświetlać dokumenty jedno- i wielostronnicowe, takie jak PDF czy | |
62 | PostScript. | |
63 | ||
64 | %package libs | |
65 | Summary: X-Apps Document Reader shared libraries | |
66 | Summary(pl.UTF-8): Biblioteki współdzielone X-Apps Document Reader | |
67 | Group: X11/Libraries | |
97c71d24 | 68 | Requires: cairo >= 1.14.0 |
3b6400c7 JB |
69 | Requires: glib2 >= 1:2.36.0 |
70 | Requires: gtk+3 >= 3.14.0 | |
97c71d24 | 71 | Requires: gtk-webkit4.1 >= 2.34 |
3b6400c7 JB |
72 | |
73 | %description libs | |
74 | X-Apps Document Reader shared libraries. | |
75 | ||
76 | %description libs -l pl.UTF-8 | |
77 | Biblioteki współdzielone X-Apps Document Reader. | |
78 | ||
79 | %package devel | |
80 | Summary: Header files for X-Apps Document Reader | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek X-Apps Document Reader | |
82 | Group: X11/Development/Libraries | |
83 | Requires: %{name}-libs = %{version}-%{release} | |
84 | Requires: glib2-devel >= 1:2.36.0 | |
85 | Requires: gtk+3-devel >= 3.14.0 | |
86 | ||
87 | %description devel | |
88 | Header files for X-Apps Document Reader. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe bibliotek X-Apps Document Reader. | |
92 | ||
93 | %package apidocs | |
94 | Summary: API documentation files for X-Apps Document Reader libraries | |
95 | Summary(pl.UTF-8): Dokumentacja API bibliotek X-Apps Document Reader | |
96 | Group: Documentation | |
3b6400c7 | 97 | BuildArch: noarch |
3b6400c7 JB |
98 | |
99 | %description apidocs | |
100 | API documentation files for X-Apps Document Reader libraries. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API bibliotek X-Apps Document Reader. | |
104 | ||
105 | %package backend-djvu | |
106 | Summary: View DJVu documents with X-Apps Document Reader | |
107 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu w przeglądarce X-Apps Document Reader | |
108 | Group: X11/Applications | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Requires: djvulibre >= 3.5.17 | |
111 | ||
112 | %description backend-djvu | |
113 | View DJVu documents with X-Apps Document Reader. | |
114 | ||
115 | %description backend-djvu -l pl.UTF-8 | |
116 | Przeglądanie dokumentów DjVu w przeglądarce X-Apps Document Reader. | |
117 | ||
118 | %package backend-dvi | |
119 | Summary: View DVI documents with X-Apps Document Reader | |
120 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI w przeglądarce X-Apps Document Reader | |
121 | Group: X11/Applications | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | Requires: libspectre >= 0.2.0 | |
124 | ||
125 | %description backend-dvi | |
126 | View DVI documents with X-Apps Document Reader. | |
127 | ||
128 | %description backend-dvi -l pl.UTF-8 | |
129 | Przeglądanie dokumentów DVI w przeglądarce X-Apps Document Reader. | |
130 | ||
131 | %package backend-epub | |
132 | Summary: View ePub documents with X-Apps Document Reader | |
133 | Summary(pl.UTF-8): Przeglądanie dokumentów ePub w przeglądarce X-Apps Document Reader | |
134 | Group: X11/Applications | |
135 | Requires: %{name} = %{version}-%{release} | |
136 | Requires: libxml2 >= 1:2.5.0 | |
d163fae7 | 137 | Requires: MathJax-base |
3b6400c7 JB |
138 | |
139 | %description backend-epub | |
140 | View ePub documents with X-Apps Document Reader. | |
141 | ||
142 | %description backend-epub -l pl.UTF-8 | |
143 | Przeglądanie dokumentów ePub w przeglądarce X-Apps Document Reader. | |
144 | ||
145 | %package backend-pdf | |
146 | Summary: View PDF documents with X-Apps Document Reader | |
147 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF w przeglądarce X-Apps Document Reader | |
148 | Group: X11/Applications | |
149 | Requires: %{name} = %{version}-%{release} | |
150 | Requires: poppler-glib >= 0.22.0 | |
151 | ||
152 | %description backend-pdf | |
153 | View PDF documents with X-Apps Document Reader. | |
154 | ||
155 | %description backend-pdf -l pl.UTF-8 | |
156 | Przeglądanie dokumentów PDF w przeglądarce X-Apps Document Reader. | |
157 | ||
158 | %package backend-ps | |
159 | Summary: View PostScript documents with X-Apps Document Reader | |
160 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript w przeglądarce X-Apps Document Reader | |
161 | Group: X11/Applications | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | Requires: libspectre >= 0.2.0 | |
164 | ||
165 | %description backend-ps | |
166 | View PostScript documents with X-Apps Document Reader. | |
167 | ||
168 | %description backend-ps -l pl.UTF-8 | |
169 | Przeglądanie dokumentów PostScript w przeglądarce X-Apps Document | |
170 | Reader. | |
171 | ||
172 | %package backend-xps | |
173 | Summary: View XPS documents with X-Apps Document Reader | |
174 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS w przeglądarce X-Apps Document Reader | |
175 | Group: X11/Applications | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | Requires: libgxps >= 0.2.1 | |
178 | ||
179 | %description backend-xps | |
180 | View XPS documents with X-Apps Document Reader. | |
181 | ||
182 | %description backend-xps -l pl.UTF-8 | |
183 | Przeglądanie dokumentów XPS w przeglądarce X-Apps Document Reader. | |
184 | ||
185 | %prep | |
186 | %setup -q | |
187 | %patch0 -p1 | |
188 | %patch1 -p1 | |
1ae6b9f0 | 189 | %patch2 -p1 |
3b6400c7 JB |
190 | |
191 | %build | |
192 | %meson build \ | |
193 | --default-library=shared \ | |
194 | -Dcomics=true \ | |
195 | -Ddocs=true \ | |
196 | -Ddjvu=true \ | |
197 | -Ddvi=true \ | |
198 | -Dhelp_files=true \ | |
199 | -Dintrospection=true \ | |
200 | -Dpixbuf=true \ | |
d163fae7 | 201 | -Dmathjax-directory=%{_datadir}/MathJax \ |
3b6400c7 JB |
202 | -Dt1lib=true |
203 | ||
204 | %ninja_build -C build | |
205 | ||
206 | %install | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
209 | %meson_install -C build | |
210 | ||
df1792ea JB |
211 | # not supported by glibc 2.31 |
212 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ab,ie} | |
213 | ||
3b6400c7 JB |
214 | %find_lang %{name} --with-gnome |
215 | ||
216 | %clean | |
217 | rm -rf $RPM_BUILD_ROOT | |
218 | ||
219 | %post | |
220 | %update_desktop_database_post | |
221 | %update_icon_cache hicolor | |
222 | %glib_compile_schemas | |
223 | ||
224 | %postun | |
225 | %update_desktop_database_postun | |
226 | %update_icon_cache hicolor | |
227 | %glib_compile_schemas | |
228 | ||
229 | %post libs -p /sbin/ldconfig | |
230 | %postun libs -p /sbin/ldconfig | |
231 | ||
232 | %files -f %{name}.lang | |
233 | %defattr(644,root,root,755) | |
97c71d24 | 234 | %doc AUTHORS COPYING README.md debian/{changelog,copyright} |
3b6400c7 JB |
235 | %attr(755,root,root) %{_bindir}/xreader |
236 | %attr(755,root,root) %{_bindir}/xreader-previewer | |
237 | %attr(755,root,root) %{_bindir}/xreader-thumbnailer | |
238 | %attr(755,root,root) %{_libexecdir}/xreaderd | |
239 | %dir %{_libdir}/xreader | |
240 | %dir %{_libdir}/xreader/3 | |
241 | %dir %{_libdir}/xreader/3/backends | |
242 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libcomicsdocument.so | |
243 | %{_libdir}/xreader/3/backends/comicsdocument.xreader-backend | |
244 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libpixbufdocument.so | |
245 | %{_libdir}/xreader/3/backends/pixbufdocument.xreader-backend | |
246 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libtiffdocument.so | |
247 | %{_libdir}/xreader/3/backends/tiffdocument.xreader-backend | |
248 | %{_datadir}/xreader | |
3b6400c7 JB |
249 | %{_datadir}/dbus-1/services/org.x.reader.Daemon.service |
250 | %{_datadir}/glib-2.0/schemas/org.x.reader.gschema.xml | |
97c71d24 | 251 | %{_datadir}/metainfo/xreader.appdata.xml |
3b6400c7 JB |
252 | %{_datadir}/thumbnailers/xreader.thumbnailer |
253 | %{_desktopdir}/xreader.desktop | |
254 | %{_iconsdir}/hicolor/*x*/apps/xreader.png | |
255 | %{_iconsdir}/hicolor/scalable/apps/xreader.svg | |
256 | %{_mandir}/man1/xreader.1* | |
257 | %{_mandir}/man1/xreader-previewer.1* | |
258 | %{_mandir}/man1/xreader-thumbnailer.1* | |
259 | ||
260 | %files libs | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libxreaderdocument.so.*.*.* | |
263 | %attr(755,root,root) %ghost %{_libdir}/libxreaderdocument.so.3 | |
264 | %attr(755,root,root) %{_libdir}/libxreaderview.so.*.*.* | |
265 | %attr(755,root,root) %ghost %{_libdir}/libxreaderview.so.3 | |
266 | %{_libdir}/girepository-1.0/XreaderDocument-1.5.typelib | |
267 | %{_libdir}/girepository-1.0/XreaderView-1.5.typelib | |
268 | ||
269 | %files devel | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_libdir}/libxreaderdocument.so | |
272 | %attr(755,root,root) %{_libdir}/libxreaderview.so | |
273 | %{_includedir}/xreader | |
274 | %{_datadir}/gir-1.0/XreaderDocument-1.5.gir | |
275 | %{_datadir}/gir-1.0/XreaderView-1.5.gir | |
276 | %{_pkgconfigdir}/xreader-document-1.5.pc | |
277 | %{_pkgconfigdir}/xreader-view-1.5.pc | |
278 | ||
279 | %files apidocs | |
280 | %defattr(644,root,root,755) | |
281 | %{_gtkdocdir}/libxreaderdocument-1.5 | |
282 | %{_gtkdocdir}/libxreaderview-1.5 | |
283 | ||
284 | %files backend-djvu | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libdjvudocument.so | |
287 | %{_libdir}/xreader/3/backends/djvudocument.xreader-backend | |
288 | ||
289 | %files backend-dvi | |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libdvidocument.so | |
292 | %{_libdir}/xreader/3/backends/dvidocument.xreader-backend | |
293 | ||
294 | %files backend-epub | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libepubdocument.so | |
297 | %{_libdir}/xreader/3/backends/epubdocument.xreader-backend | |
298 | ||
299 | %files backend-pdf | |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libpdfdocument.so | |
302 | %{_libdir}/xreader/3/backends/pdfdocument.xreader-backend | |
303 | ||
304 | %files backend-ps | |
305 | %defattr(644,root,root,755) | |
306 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libpsdocument.so | |
307 | %{_libdir}/xreader/3/backends/psdocument.xreader-backend | |
308 | ||
309 | %files backend-xps | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_libdir}/xreader/3/backends/libxpsdocument.so | |
312 | %{_libdir}/xreader/3/backends/xpsdocument.xreader-backend |