]> git.pld-linux.org Git - packages/evince-gtk.git/blame - evince-gtk.spec
- Requires(post,postun): gtk-update-icon-cache
[packages/evince-gtk.git] / evince-gtk.spec
CommitLineData
c257d14f 1#
f70c2e57 2# - are schemas (thus GConf) needed?
3#
c257d14f 4# Conditional build:
19208715 5%bcond_without dbus # disable DBUS support
c257d14f 6%bcond_without apidocs # disable gtk-doc
7b3a1913
ER
7
8%define realname evince
c257d14f 9Summary: Document viewer for multiple document formats -- the no libgnome version
10Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome
c257d14f 11Name: evince-gtk
7eef4fda 12Version: 2.32.0
c7f93c0b 13Release: 4
e4e5eb0d 14License: GPL v2+
c257d14f 15Group: X11/Applications/Graphics
7b3a1913 16Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/%{realname}-%{version}.tar.bz2
7eef4fda 17# Source0-md5: ebc3ce6df8dcbf29cb9492f8dd031319
c257d14f 18URL: http://www.gnome.org/projects/evince/
c62f899d 19BuildRequires: GConf2-devel
c257d14f 20BuildRequires: autoconf
21BuildRequires: automake
7eef4fda 22BuildRequires: cairo-devel >= 1.10.0
c257d14f 23%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
24BuildRequires: djvulibre-devel >= 3.5.17
c62f899d 25BuildRequires: docbook-dtd412-xml
26BuildRequires: gettext-devel
c257d14f 27BuildRequires: ghostscript
c62f899d 28BuildRequires: gnome-common
e8d563e8 29%{?with_apidocs:BuildRequires: gnome-doc-utils >= 0.3.2}
c62f899d 30BuildRequires: gnome-icon-theme
7eef4fda 31BuildRequires: gtk+2-devel >= 2:2.22.0
c62f899d 32BuildRequires: gtk-doc-automake
c257d14f 33BuildRequires: intltool >= 0.35.0
34BuildRequires: kpathsea-devel
e4e5eb0d 35BuildRequires: lcms-devel
c257d14f 36BuildRequires: libglade2-devel >= 1:2.6.0
e4e5eb0d 37BuildRequires: libgnome-keyring-devel
c62f899d 38BuildRequires: libspectre-devel >= 0.2.0
c257d14f 39BuildRequires: libstdc++-devel
40BuildRequires: libtiff-devel
c62f899d 41BuildRequires: libtool
42BuildRequires: libxml2-progs
c257d14f 43BuildRequires: libxslt-progs >= 1.1.17
44BuildRequires: pkgconfig
7eef4fda 45BuildRequires: poppler-glib-devel >= 0.14.0
c257d14f 46BuildRequires: python-libxml2
47BuildRequires: rpmbuild(macros) >= 1.197
48BuildRequires: scrollkeeper
c62f899d 49BuildRequires: xorg-lib-libSM-devel
c7f93c0b 50Requires(post,postun): /sbin/ldconfig
c257d14f 51Requires(post,postun): desktop-file-utils
c7f93c0b
AF
52Requires(post,postun): gtk-update-icon-cache
53Requires(post,postun): hicolor-icon-theme
c257d14f 54Requires(post,postun): scrollkeeper
55Requires: cairo >= 1.2.4
56Requires: djvulibre >= 3.5.17
7eef4fda 57Requires: gtk+2 >= 2:2.22.0
5aca2354 58Requires: poppler-glib >= 0.6
c257d14f 59Conflicts: evince
60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
7eef4fda 62%define backendsdir %{_libdir}/evince/3/backends
4cfdd350 63
c257d14f 64%description
65Evince is a document viewer for multiple document formats like pdf,
66postscript, and many others. The goal of evince is to replace the
67multiple document viewers that exist on the GNOME Desktop, like ggv,
68gpdf, and xpdf with a single simple application.
69
70This version doesn't use GNOME libraries, but only GTK+.
71
72%description -l pl.UTF-8
73Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
74postscript i wielu innych. W zamierzeniach program ma zastąpić
75przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
76xpdf jedną prostą aplikacją.
77
78Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
79
eb0cdbfd 80%package devel
81Summary: Header files for Evince GTK+
82Summary(pl.UTF-8): Pliki nagłówkowe Evince GTK+
83Group: X11/Development/Libraries
84Requires: %{name} = %{version}-%{release}
7eef4fda 85Requires: gtk+2-devel >= 2:2.22.0
eb0cdbfd 86
87%description devel
88Header files for Evince GTK+.
89
90%description devel -l pl.UTF-8
91Pliki nagłówkowe Evince GTK+.
92
c257d14f 93%package apidocs
94Summary: Evince API documentation
95Summary(pl.UTF-8): Dokumentacja API aplikacji Evince
96Group: Documentation
97Requires: gtk-doc-common
98
99%description apidocs
100Evince API documentation.
101
102This version doesn't use GNOME libraries, but only GTK+.
103
104%description apidocs -l pl.UTF-8
105Dokumentacja API aplikacji Evince.
106
107Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
108
109%prep
7b3a1913 110%setup -q -n %{realname}-%{version}
c257d14f 111
112%build
4cfdd350 113%{__intltoolize}
37fe52f9 114%{__libtoolize}
e4e5eb0d 115%{__aclocal} -I m4
4cfdd350 116%{__autoconf}
117%{__autoheader}
118%{__automake}
c257d14f 119%configure \
f70c2e57 120 %{!?with_apidocs:--disable-gtk-doc} \
121 %{!?with_apidocs:--disable-scrollkeeper} \
c257d14f 122 --disable-nautilus \
123 --disable-static \
124 --disable-schemas-install \
125 --enable-comics \
f70c2e57 126 %{!?with_dbus:--disable-dbus} \
c257d14f 127 --enable-djvu \
128 --enable-dvi \
129 --enable-impress \
f70c2e57 130 --enable-pdf \
c257d14f 131 --enable-pixbuf \
f70c2e57 132 --enable-ps \
133 --enable-t1lib \
134 --enable-thumbnailer \
c257d14f 135 --enable-tiff \
c62f899d 136 --with-html-dir=%{_gtkdocdir}
c257d14f 137
138%{__make}
139
140%install
141rm -rf $RPM_BUILD_ROOT
142
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT \
145 HTML_DIR=%{_gtkdocdir}
146
4cfdd350 147%{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la
148
586c66a2 149# unsupported
150rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en@shaw
151
7b3a1913 152%find_lang %{realname}
c257d14f 153
154%clean
155rm -rf $RPM_BUILD_ROOT
156
157%post
4cfdd350 158/sbin/ldconfig
c257d14f 159%update_desktop_database_post
160%scrollkeeper_update_post
161%update_icon_cache hicolor
162
c257d14f 163%postun
4cfdd350 164/sbin/ldconfig
c257d14f 165%update_desktop_database_postun
166%scrollkeeper_update_postun
167%update_icon_cache hicolor
168
7b3a1913 169%files -f %{realname}.lang
c257d14f 170%defattr(644,root,root,755)
171%doc AUTHORS ChangeLog NEWS README TODO
4cfdd350 172%attr(755,root,root) %{_bindir}/evince
173%attr(755,root,root) %{_bindir}/evince-previewer
174%attr(755,root,root) %{_bindir}/evince-thumbnailer
175%attr(755,root,root) %{_libdir}/libevdocument.so.*.*.*
7eef4fda 176%attr(755,root,root) %ghost %{_libdir}/libevdocument.so.3
4cfdd350 177%attr(755,root,root) %{_libdir}/libevview.so.*.*.*
7eef4fda 178%attr(755,root,root) %ghost %{_libdir}/libevview.so.3
eb0cdbfd 179%dir %{_libdir}/evince
7eef4fda 180%dir %{_libdir}/evince/3
4cfdd350 181%dir %{backendsdir}
eb0cdbfd 182%attr(755,root,root) %{backendsdir}/libcomicsdocument.so
4cfdd350 183%{backendsdir}/comicsdocument.evince-backend
eb0cdbfd 184%attr(755,root,root) %{backendsdir}/libdjvudocument.so
4cfdd350 185%{backendsdir}/djvudocument.evince-backend
eb0cdbfd 186%attr(755,root,root) %{backendsdir}/libdvidocument.so*
4cfdd350 187%{backendsdir}/dvidocument.evince-backend
4cfdd350 188%attr(755,root,root) %{backendsdir}/libimpressdocument.so
eb0cdbfd 189%{backendsdir}/impressdocument.evince-backend
4cfdd350 190%attr(755,root,root) %{backendsdir}/libpdfdocument.so
eb0cdbfd 191%{backendsdir}/pdfdocument.evince-backend
4cfdd350 192%attr(755,root,root) %{backendsdir}/libpixbufdocument.so
eb0cdbfd 193%{backendsdir}/pixbufdocument.evince-backend
4cfdd350 194%attr(755,root,root) %{backendsdir}/libpsdocument.so
eb0cdbfd 195%{backendsdir}/psdocument.evince-backend
4cfdd350 196%attr(755,root,root) %{backendsdir}/libtiffdocument.so
eb0cdbfd 197%{backendsdir}/tiffdocument.evince-backend
c257d14f 198%{_mandir}/man1/*
7b3a1913 199%{_datadir}/%{realname}
c257d14f 200%{_desktopdir}/*.desktop
201%{_iconsdir}/*/*/*/*
202%{_omf_dest_dir}/evince
203
4cfdd350 204%files devel
205%defattr(644,root,root,755)
206%attr(755,root,root) %{_libdir}/libevdocument.so
207%attr(755,root,root) %{_libdir}/libevview.so
208%{_libdir}/libevdocument.la
209%{_libdir}/libevview.la
eb0cdbfd 210%{_includedir}/evince
4cfdd350 211%{_pkgconfigdir}/evince-document-*.pc
212%{_pkgconfigdir}/evince-view-*.pc
eb0cdbfd 213
214%if %{with apidocs}
215%files apidocs
216%defattr(644,root,root,755)
217%{_gtkdocdir}/*
218%endif
This page took 0.085887 seconds and 4 git commands to generate.