]> git.pld-linux.org Git - packages/evince-gtk.git/blame - evince-gtk.spec
- obsolete
[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
e8d563e8 12Version: 2.23.6
c257d14f 13Release: 1
14License: GPL v2
15Group: X11/Applications/Graphics
e8d563e8
BZ
16Source0: http://ftp.gnome.org/pub/gnome/sources/evince/2.23/%{_realname}-%{version}.tar.bz2
17# Source0-md5: 04763835f04c3c8f52bfcef2041948a9
c257d14f 18Patch0: %{_realname}-desktop.patch
c257d14f 19URL: http://www.gnome.org/projects/evince/
20BuildRequires: autoconf
21BuildRequires: automake
22%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
23BuildRequires: djvulibre-devel >= 3.5.17
24BuildRequires: ghostscript
e8d563e8 25%{?with_apidocs:BuildRequires: gnome-doc-utils >= 0.3.2}
c257d14f 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
c257d14f 83
84%build
f70c2e57 85#%%{__intltoolize}
86#%%{__aclocal}
87#%%{__autoconf}
88#%%{__autoheader}
89#%%{__automake}
c257d14f 90%configure \
f70c2e57 91 %{!?with_apidocs:--disable-gtk-doc} \
92 %{!?with_apidocs:--disable-scrollkeeper} \
c257d14f 93 --disable-nautilus \
94 --disable-static \
95 --disable-schemas-install \
96 --enable-comics \
f70c2e57 97 %{!?with_dbus:--disable-dbus} \
c257d14f 98 --enable-djvu \
99 --enable-dvi \
100 --enable-impress \
f70c2e57 101 --enable-pdf \
c257d14f 102 --enable-pixbuf \
f70c2e57 103 --enable-ps \
104 --enable-t1lib \
105 --enable-thumbnailer \
c257d14f 106 --enable-tiff \
107 --with-print=gtk \
108 --with-html-dir=%{_gtkdocdir} \
109 --without-libgnome
110
111%{__make}
112
113%install
114rm -rf $RPM_BUILD_ROOT
115
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT \
118 HTML_DIR=%{_gtkdocdir}
119
120%find_lang %{_realname}
121
122%clean
123rm -rf $RPM_BUILD_ROOT
124
125%post
126%update_desktop_database_post
127%scrollkeeper_update_post
128%update_icon_cache hicolor
129
130%preun
131
132%postun
133%update_desktop_database_postun
134%scrollkeeper_update_postun
135%update_icon_cache hicolor
136
137%files -f %{_realname}.lang
138%defattr(644,root,root,755)
139%doc AUTHORS ChangeLog NEWS README TODO
140%attr(755,root,root) %{_bindir}/*
e8d563e8
BZ
141%attr(755,root,root) %{_libdir}/*.so.*.*.*
142%attr(755,root,root) %{_libdir}/*.so.*
143%dir %{_libdir}/%{_realname}
144%dir %{_libdir}/%{_realname}/backends
145%attr(755,root,root) %{_libdir}/%{_realname}/backends/*.so
146%{_libdir}/%{_realname}/backends/*.evince-backend
c257d14f 147%{_mandir}/man1/*
148%{_datadir}/%{_realname}
149%{_desktopdir}/*.desktop
150%{_iconsdir}/*/*/*/*
151%{_omf_dest_dir}/evince
152
153%if %{with apidocs}
154%files apidocs
155%defattr(644,root,root,755)
156%{_gtkdocdir}/*
157%endif
This page took 0.079222 seconds and 4 git commands to generate.