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