]>
Commit | Line | Data |
---|---|---|
8fbf564b ER |
1 | # TODO |
2 | # - evince.desktop provides mimetypes for all possible choices, yet some of | |
3 | # them are in subpackages (backend-foo). multiple .desktop files is possible | |
4 | # for same application? | |
52101646 | 5 | # |
c3049406 | 6 | # Conditional build: |
26832c98 | 7 | %bcond_without dbus # disable DBUS support |
23544f41 | 8 | %bcond_without apidocs # disable gtk-doc |
8fbf564b | 9 | |
87553ab6 | 10 | Summary: Document viewer for multiple document formats |
6c08f70f | 11 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach |
87553ab6 | 12 | Name: evince |
4d341496 | 13 | Version: 3.0.2 |
cea79620 | 14 | Release: 1 |
59aa6ffb | 15 | License: GPL v2 |
87553ab6 | 16 | Group: X11/Applications/Graphics |
cea79620 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.0/%{name}-%{version}.tar.bz2 |
4d341496 | 18 | # Source0-md5: 4eff790d9ba7a0d9e8eda5b4bb91c92b |
87553ab6 | 19 | URL: http://www.gnome.org/projects/evince/ |
a96547b6 | 20 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 21 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 22 | BuildRequires: cairo-devel >= 1.10.0 |
98a7da35 | 23 | BuildRequires: djvulibre-devel >= 3.5.17 |
2b3bf0b6 | 24 | BuildRequires: docbook-dtd412-xml |
a96547b6 | 25 | BuildRequires: gettext-devel |
31d78cfa | 26 | BuildRequires: glib2-devel >= 1:2.26.0 |
4d1cdbff MB |
27 | BuildRequires: gnome-common >= 2.24.0 |
28 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
cea79620 MB |
29 | BuildRequires: gnome-icon-theme >= 3.0.0 |
30 | BuildRequires: gobject-introspection-devel >= 0.6.0 | |
31 | BuildRequires: gsettings-desktop-schemas-devel | |
32 | BuildRequires: gtk+3-devel >= 3.0.0 | |
dcaa156e | 33 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 34 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 35 | BuildRequires: kpathsea-devel |
c4d5ca9c | 36 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
cea79620 | 37 | #BuildRequires: libgxps-devel >= 0.0.1 |
a96547b6 | 38 | BuildRequires: libspectre-devel >= 0.2.0 |
52101646 | 39 | BuildRequires: libtiff-devel |
a96547b6 PZ |
40 | BuildRequires: libtool |
41 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
cea79620 | 42 | BuildRequires: nautilus-devel >= 3.0.0 |
184cd39f | 43 | BuildRequires: pkgconfig |
cea79620 | 44 | BuildRequires: poppler-glib-devel >= 0.16.0 |
16b45cd3 | 45 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 46 | BuildRequires: rpmbuild(macros) >= 1.592 |
a96547b6 | 47 | BuildRequires: t1lib-devel |
cea79620 | 48 | BuildRequires: xorg-lib-libICE-devel |
ef82865f | 49 | BuildRequires: xorg-lib-libSM-devel |
9b07dbc7 | 50 | BuildRequires: zlib-devel |
12600ecc | 51 | Requires(post,postun): desktop-file-utils |
31d78cfa | 52 | Requires(post,postun): glib2 >= 1:2.26.0 |
31d78cfa | 53 | Requires: dconf |
cea79620 MB |
54 | Requires: gnome-icon-theme >= 3.0.0 |
55 | Requires: gsettings-desktop-schemas | |
56 | Requires: gtk+3 >= 3.0.0 | |
57 | Requires: gtk-update-icon-cache | |
58 | Requires: hicolor-icon-theme | |
9b4f4918 MB |
59 | Suggests: evince-backend-djvu |
60 | Suggests: evince-backend-dvi | |
61 | Suggests: evince-backend-pdf | |
62 | Suggests: evince-backend-ps | |
cea79620 | 63 | Suggests: gtk+3-cups |
e9f7e8ef | 64 | Conflicts: evince-gtk |
3e7213f4 | 65 | # sr@Latn vs. sr@latin |
66 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
31d78cfa | 69 | %define backendsdir %{_libdir}/evince/3/backends |
a96547b6 | 70 | |
87553ab6 | 71 | %description |
72 | Evince is a document viewer for multiple document formats like pdf, | |
73 | postscript, and many others. The goal of evince is to replace the | |
74 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
75 | gpdf, and xpdf with a single simple application. | |
76 | ||
2a3b3b99 JR |
77 | %description -l pl.UTF-8 |
78 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
79 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
80 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
81 | xpdf jedną prostą aplikacją. | |
87553ab6 | 82 | |
a96547b6 PZ |
83 | %package devel |
84 | Summary: Header files for Evince | |
85 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
86 | Group: X11/Development/Libraries | |
b42cac85 | 87 | Requires: %{name} = %{version}-%{release} |
cea79620 | 88 | Requires: gtk+3-devel >= 3.0.0 |
dfd5b6aa | 89 | |
a96547b6 PZ |
90 | %description devel |
91 | Header files for Evince. | |
dfd5b6aa | 92 | |
a96547b6 PZ |
93 | %description devel -l pl.UTF-8 |
94 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 95 | |
23544f41 | 96 | %package apidocs |
97 | Summary: Evince API documentation | |
98 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
101 | ||
102 | %description apidocs | |
103 | Evince API documentation. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API aplikacji Evince. | |
107 | ||
a96547b6 PZ |
108 | %package -n nautilus-extension-evince |
109 | Summary: Evince extension for Nautilus | |
110 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
111 | Group: X11/Applications | |
112 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 113 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
114 | |
115 | %description -n nautilus-extension-evince | |
116 | Shows Evince document properties in Nautilus. | |
117 | ||
118 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
119 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
120 | ||
ab458ef2 | 121 | %package backend-djvu |
9b4f4918 | 122 | Summary: View DJVu documents with Evince |
ab458ef2 | 123 | Group: X11/Applications |
9b4f4918 MB |
124 | Requires: %{name} = %{version}-%{release} |
125 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
126 | |
127 | %description backend-djvu | |
9b4f4918 | 128 | View DJVu documents with Evince. |
ab458ef2 | 129 | |
c4d5ca9c | 130 | %package backend-dvi |
9b4f4918 | 131 | Summary: View DVI documents with Evince |
c4d5ca9c | 132 | Group: X11/Applications |
9b4f4918 | 133 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
134 | |
135 | %description backend-dvi | |
9b4f4918 | 136 | View DVI documents with Evince. |
c4d5ca9c | 137 | |
ab458ef2 | 138 | %package backend-pdf |
9b4f4918 | 139 | Summary: View PDF documents with Evince |
ab458ef2 | 140 | Group: X11/Applications |
9b4f4918 | 141 | Requires: %{name} = %{version}-%{release} |
cea79620 | 142 | Requires: poppler-glib >= 0.16.0 |
ab458ef2 ZU |
143 | |
144 | %description backend-pdf | |
9b4f4918 | 145 | View PDF documents with Evince. |
ab458ef2 | 146 | |
c4d5ca9c | 147 | %package backend-ps |
9b4f4918 | 148 | Summary: View Postscript documents with Evince |
c4d5ca9c | 149 | Group: X11/Applications |
9b4f4918 | 150 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
151 | |
152 | %description backend-ps | |
9b4f4918 | 153 | View Postscript documents with Evince. |
c4d5ca9c | 154 | |
87553ab6 | 155 | %prep |
156 | %setup -q | |
58684a44 | 157 | |
87553ab6 | 158 | %build |
08c6a467 | 159 | %{__gtkdocize} |
a0ff1688 | 160 | %{__intltoolize} |
a96547b6 | 161 | %{__libtoolize} |
08c6a467 | 162 | %{__aclocal} -I m4 |
f8be43cb AF |
163 | %{__autoconf} |
164 | %{__autoheader} | |
165 | %{__automake} | |
87553ab6 | 166 | %configure \ |
23544f41 | 167 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 168 | --disable-static \ |
dcaa156e | 169 | --disable-silent-rules \ |
a0ff1688 | 170 | --enable-comics \ |
72e9e2b8 | 171 | --enable-djvu \ |
a5a87d5b | 172 | --enable-dvi \ |
a96547b6 | 173 | --enable-t1lib \ |
a5a87d5b | 174 | --enable-nautilus \ |
a96547b6 | 175 | --enable-pdf \ |
a0ff1688 | 176 | --enable-tiff \ |
cea79620 | 177 | --with-smclient=xsmp \ |
23544f41 | 178 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 179 | %{__make} |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
184 | %{__make} install \ | |
a96547b6 | 185 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 186 | |
cea79620 MB |
187 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
188 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la | |
189 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
87553ab6 | 190 | |
58684a44 | 191 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 192 | |
193 | %clean | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
196 | %post | |
a96547b6 | 197 | /sbin/ldconfig |
4685de83 | 198 | %update_desktop_database_post |
a0ff1688 | 199 | %update_icon_cache hicolor |
d46abe04 | 200 | %glib_compile_schemas |
12600ecc | 201 | |
87553ab6 | 202 | %postun |
a96547b6 | 203 | /sbin/ldconfig |
4685de83 | 204 | %update_desktop_database_postun |
a0ff1688 | 205 | %update_icon_cache hicolor |
d46abe04 | 206 | %glib_compile_schemas |
87553ab6 | 207 | |
208 | %files -f %{name}.lang | |
209 | %defattr(644,root,root,755) | |
210 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 211 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 212 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 213 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
dcaa156e | 214 | %attr(755,root,root) %{_libdir}/evinced |
cea79620 MB |
215 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* |
216 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.3 | |
217 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
218 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
a96547b6 | 219 | %dir %{_libdir}/evince |
31d78cfa | 220 | %dir %{_libdir}/evince/3 |
a96547b6 PZ |
221 | %dir %{backendsdir} |
222 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
223 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
224 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
225 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 226 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 227 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 228 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 229 | %{_datadir}/%{name} |
cea79620 MB |
230 | %dir %{_datadir}/thumbnailers |
231 | %{_datadir}/thumbnailers/evince.thumbnailer | |
a96547b6 PZ |
232 | %{_mandir}/man1/evince.1* |
233 | %{_desktopdir}/evince.desktop | |
234 | %{_iconsdir}/hicolor/*/*/*.png | |
dfd5b6aa | 235 | |
c4d5ca9c ZU |
236 | %files backend-djvu |
237 | %defattr(644,root,root,755) | |
9b4f4918 | 238 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 239 | %{backendsdir}/djvudocument.evince-backend |
c4d5ca9c | 240 | |
ab458ef2 | 241 | %files backend-dvi |
c4d5ca9c | 242 | %defattr(644,root,root,755) |
9b4f4918 | 243 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 244 | %{backendsdir}/dvidocument.evince-backend |
ab458ef2 | 245 | |
c4d5ca9c ZU |
246 | %files backend-ps |
247 | %defattr(644,root,root,755) | |
248 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
249 | %{backendsdir}/psdocument.evince-backend | |
ab458ef2 ZU |
250 | |
251 | %files backend-pdf | |
c4d5ca9c | 252 | %defattr(644,root,root,755) |
9b4f4918 | 253 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 ZU |
254 | %{backendsdir}/pdfdocument.evince-backend |
255 | ||
a96547b6 | 256 | %files devel |
dfd5b6aa | 257 | %defattr(644,root,root,755) |
cea79620 MB |
258 | %attr(755,root,root) %{_libdir}/libevdocument3.so |
259 | %attr(755,root,root) %{_libdir}/libevview3.so | |
ef82865f MB |
260 | %{_includedir}/evince |
261 | %{_pkgconfigdir}/evince-document-*.pc | |
262 | %{_pkgconfigdir}/evince-view-*.pc | |
23544f41 | 263 | |
264 | %if %{with apidocs} | |
265 | %files apidocs | |
266 | %defattr(644,root,root,755) | |
a96547b6 | 267 | %{_gtkdocdir}/evince |
dcaa156e MB |
268 | %{_gtkdocdir}/libevdocument-* |
269 | %{_gtkdocdir}/libevview-* | |
23544f41 | 270 | %endif |
a96547b6 PZ |
271 | |
272 | %files -n nautilus-extension-evince | |
273 | %defattr(644,root,root,755) | |
cea79620 | 274 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |