]> git.pld-linux.org Git - packages/evince-gtk.git/blame - evince-gtk.spec
- up to 2.19.92 (wtf with the verison changes?)
[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
7#
8Summary: Document viewer for multiple document formats -- the no libgnome version
9Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome
10%define _realname evince
11Name: evince-gtk
5aca2354 12Version: 2.19.92
c257d14f 13Release: 1
14License: GPL v2
15Group: X11/Applications/Graphics
afc35885 16Source0: http://ftp.gnome.org/pub/gnome/sources/evince/2.19/%{_realname}-%{version}.tar.bz2
5aca2354 17# Source0-md5: 274db35fee7c46b7d081e1ae86f495c2
c257d14f 18Patch0: %{_realname}-desktop.patch
19Patch1: %{_realname}-gs8.patch
c257d14f 20URL: http://www.gnome.org/projects/evince/
21BuildRequires: autoconf
22BuildRequires: automake
23%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
24BuildRequires: djvulibre-devel >= 3.5.17
25BuildRequires: ghostscript
26BuildRequires: gtk+2-devel >= 2:2.10.6
27BuildRequires: intltool >= 0.35.0
28BuildRequires: kpathsea-devel
29BuildRequires: libglade2-devel >= 1:2.6.0
30BuildRequires: libstdc++-devel
31BuildRequires: libtiff-devel
32BuildRequires: libxslt-progs >= 1.1.17
33BuildRequires: pkgconfig
5aca2354 34BuildRequires: poppler-glib-devel >= 0.6
c257d14f 35BuildRequires: python-libxml2
36BuildRequires: rpmbuild(macros) >= 1.197
37BuildRequires: scrollkeeper
38Requires(post,postun): desktop-file-utils
39Requires(post,postun): gtk+2 >= 2:2.10.6
40Requires(post,postun): scrollkeeper
41Requires: cairo >= 1.2.4
42Requires: djvulibre >= 3.5.17
43Requires: gtk+2 >= 2:2.10.6
5aca2354 44Requires: poppler-glib >= 0.6
c257d14f 45Conflicts: evince
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49Evince is a document viewer for multiple document formats like pdf,
50postscript, and many others. The goal of evince is to replace the
51multiple document viewers that exist on the GNOME Desktop, like ggv,
52gpdf, and xpdf with a single simple application.
53
54This version doesn't use GNOME libraries, but only GTK+.
55
56%description -l pl.UTF-8
57Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
58postscript i wielu innych. W zamierzeniach program ma zastąpić
59przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
60xpdf jedną prostą aplikacją.
61
62Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
63
64%package apidocs
65Summary: Evince API documentation
66Summary(pl.UTF-8): Dokumentacja API aplikacji Evince
67Group: Documentation
68Requires: gtk-doc-common
69
70%description apidocs
71Evince API documentation.
72
73This version doesn't use GNOME libraries, but only GTK+.
74
75%description apidocs -l pl.UTF-8
76Dokumentacja API aplikacji Evince.
77
78Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
79
80%prep
81%setup -q -n %{_realname}-%{version}
82%patch0 -p1
83%patch1 -p1
c257d14f 84
85%build
f70c2e57 86#%%{__intltoolize}
87#%%{__aclocal}
88#%%{__autoconf}
89#%%{__autoheader}
90#%%{__automake}
c257d14f 91%configure \
f70c2e57 92 %{!?with_apidocs:--disable-gtk-doc} \
93 %{!?with_apidocs:--disable-scrollkeeper} \
c257d14f 94 --disable-nautilus \
95 --disable-static \
96 --disable-schemas-install \
97 --enable-comics \
f70c2e57 98 %{!?with_dbus:--disable-dbus} \
c257d14f 99 --enable-djvu \
100 --enable-dvi \
101 --enable-impress \
f70c2e57 102 --enable-pdf \
c257d14f 103 --enable-pixbuf \
f70c2e57 104 --enable-ps \
105 --enable-t1lib \
106 --enable-thumbnailer \
c257d14f 107 --enable-tiff \
108 --with-print=gtk \
109 --with-html-dir=%{_gtkdocdir} \
110 --without-libgnome
111
112%{__make}
113
114%install
115rm -rf $RPM_BUILD_ROOT
116
117%{__make} install \
118 DESTDIR=$RPM_BUILD_ROOT \
119 HTML_DIR=%{_gtkdocdir}
120
121%find_lang %{_realname}
122
123%clean
124rm -rf $RPM_BUILD_ROOT
125
126%post
127%update_desktop_database_post
128%scrollkeeper_update_post
129%update_icon_cache hicolor
130
131%preun
132
133%postun
134%update_desktop_database_postun
135%scrollkeeper_update_postun
136%update_icon_cache hicolor
137
138%files -f %{_realname}.lang
139%defattr(644,root,root,755)
140%doc AUTHORS ChangeLog NEWS README TODO
141%attr(755,root,root) %{_bindir}/*
142%{_mandir}/man1/*
143%{_datadir}/%{_realname}
144%{_desktopdir}/*.desktop
145%{_iconsdir}/*/*/*/*
146%{_omf_dest_dir}/evince
147
148%if %{with apidocs}
149%files apidocs
150%defattr(644,root,root,755)
151%{_gtkdocdir}/*
152%endif
This page took 0.084564 seconds and 4 git commands to generate.