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