]> git.pld-linux.org Git - packages/evince-gtk.git/blob - evince-gtk.spec
- up to 2.19.92 (wtf with the verison changes?)
[packages/evince-gtk.git] / evince-gtk.spec
1 #
2 # - are schemas (thus GConf) needed?
3 #
4 # Conditional build:
5 %bcond_without  dbus            # disable DBUS support
6 %bcond_without  apidocs         # disable gtk-doc
7 #
8 Summary:        Document viewer for multiple document formats -- the no libgnome version
9 Summary(pl.UTF-8):      Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome
10 %define         _realname       evince
11 Name:           evince-gtk
12 Version:        2.19.92
13 Release:        1
14 License:        GPL v2
15 Group:          X11/Applications/Graphics
16 Source0:        http://ftp.gnome.org/pub/gnome/sources/evince/2.19/%{_realname}-%{version}.tar.bz2
17 # Source0-md5:  274db35fee7c46b7d081e1ae86f495c2
18 Patch0:         %{_realname}-desktop.patch
19 Patch1:         %{_realname}-gs8.patch
20 URL:            http://www.gnome.org/projects/evince/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 %{?with_dbus:BuildRequires:     dbus-glib-devel >= 0.71}
24 BuildRequires:  djvulibre-devel >= 3.5.17
25 BuildRequires:  ghostscript
26 BuildRequires:  gtk+2-devel >= 2:2.10.6
27 BuildRequires:  intltool >= 0.35.0
28 BuildRequires:  kpathsea-devel
29 BuildRequires:  libglade2-devel >= 1:2.6.0
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libtiff-devel
32 BuildRequires:  libxslt-progs >= 1.1.17
33 BuildRequires:  pkgconfig
34 BuildRequires:  poppler-glib-devel >= 0.6
35 BuildRequires:  python-libxml2
36 BuildRequires:  rpmbuild(macros) >= 1.197
37 BuildRequires:  scrollkeeper
38 Requires(post,postun):  desktop-file-utils
39 Requires(post,postun):  gtk+2 >= 2:2.10.6
40 Requires(post,postun):  scrollkeeper
41 Requires:       cairo >= 1.2.4
42 Requires:       djvulibre >= 3.5.17
43 Requires:       gtk+2 >= 2:2.10.6
44 Requires:       poppler-glib >= 0.6
45 Conflicts:      evince
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Evince is a document viewer for multiple document formats like pdf,
50 postscript, and many others. The goal of evince is to replace the
51 multiple document viewers that exist on the GNOME Desktop, like ggv,
52 gpdf, and xpdf with a single simple application.
53
54 This version doesn't use GNOME libraries, but only GTK+.
55
56 %description -l pl.UTF-8
57 Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
58 postscript i wielu innych. W zamierzeniach program ma zastąpić
59 przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
60 xpdf jedną prostą aplikacją.
61
62 Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
63
64 %package apidocs
65 Summary:        Evince API documentation
66 Summary(pl.UTF-8):      Dokumentacja API aplikacji Evince
67 Group:          Documentation
68 Requires:       gtk-doc-common
69
70 %description apidocs
71 Evince API documentation.
72
73 This version doesn't use GNOME libraries, but only GTK+.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API aplikacji Evince.
77
78 Ta 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
84
85 %build
86 #%%{__intltoolize}
87 #%%{__aclocal}
88 #%%{__autoconf}
89 #%%{__autoheader}
90 #%%{__automake}
91 %configure \
92         %{!?with_apidocs:--disable-gtk-doc} \
93         %{!?with_apidocs:--disable-scrollkeeper} \
94         --disable-nautilus \
95         --disable-static \
96         --disable-schemas-install \
97         --enable-comics \
98         %{!?with_dbus:--disable-dbus} \
99         --enable-djvu \
100         --enable-dvi \
101         --enable-impress \
102         --enable-pdf \
103         --enable-pixbuf \
104         --enable-ps \
105         --enable-t1lib \
106         --enable-thumbnailer \
107         --enable-tiff \
108         --with-print=gtk \
109         --with-html-dir=%{_gtkdocdir} \
110         --without-libgnome
111
112 %{__make}
113
114 %install
115 rm -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
124 rm -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.095899 seconds and 4 git commands to generate.