]> git.pld-linux.org Git - packages/evince.git/blob - evince.spec
- disable dbus for now; reenable when new dbus goes into ac; rel 2
[packages/evince.git] / evince.spec
1 #
2 # TODO: fix t1lib build time misdetection (very low prio)
3 #
4 %bcond_with     dbus
5 Summary:        Document viewer for multiple document formats
6 Summary(pl):    Przegl±darka dokumentów w wielu formatach
7 Name:           evince
8 Version:        0.4.0
9 Release:        2
10 License:        GPL v2
11 Group:          X11/Applications/Graphics
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/evince/0.4/%{name}-%{version}.tar.bz2
13 # Source0-md5:  cc41e30108bc54a345bd6ca2556ab857
14 Patch0:         %{name}-desktop.patch
15 Patch1:         %{name}-gs8.patch
16 URL:            http://www.gnome.org/projects/evince/
17 BuildRequires:  GConf2-devel >= 2.10.0
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 %{?with_dbus:BuildRequires:     dbus-glib-devel >= 0.36}
21 BuildRequires:  djvulibre-devel >= 3.5.15
22 BuildRequires:  ghostscript
23 BuildRequires:  gnome-doc-utils >= 0.3.2
24 BuildRequires:  gnome-vfs2-devel >= 2.10.0-2
25 BuildRequires:  gtk+2-devel >= 2:2.6.4
26 BuildRequires:  intltool
27 BuildRequires:  kpathsea-devel
28 BuildRequires:  libglade2-devel >= 1:2.5.1
29 BuildRequires:  libgnomeprintui-devel >= 2.10.0
30 BuildRequires:  libgnomeui-devel >= 2.10.0-2
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtiff-devel
33 BuildRequires:  nautilus-devel
34 BuildRequires:  pkgconfig
35 BuildRequires:  poppler-glib-devel >= 0.4.1
36 BuildRequires:  rpmbuild(macros) >= 1.197
37 BuildRequires:  scrollkeeper
38 Requires(post,preun):   GConf2
39 Requires(post,postun):  desktop-file-utils
40 Requires(post,postun):  scrollkeeper
41 Requires:       cairo >= 0.9.2-2
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 Evince is a document viewer for multiple document formats like pdf,
46 postscript, and many others. The goal of evince is to replace the
47 multiple document viewers that exist on the GNOME Desktop, like ggv,
48 gpdf, and xpdf with a single simple application.
49
50 %description -l pl
51 Evince jest przegl±dark± dokumentów w wielu formatach takich jak pdf,
52 postscript i wielu innych. W zamierzeniach program ma zast±piæ
53 przegl±darki dokumentów dla ¶rodowiska GNOME, takie jak ggv, gpdf i
54 xpdf jedn± prost± aplikacj±.
55
56 %package -n nautilus-extension-evince
57 Summary:        Evince extension for Nautilus
58 Summary(pl):    Rozszerzenie Evince dla Nautilusa
59 Group:          X11/Applications
60 Requires:       %{name} = %{version}-%{release}
61 Requires:       nautilus
62
63 %description -n nautilus-extension-evince
64 Shows Evince document properties in Nautilus.
65
66 %description -n nautilus-extension-evince -l pl
67 Pokazuje w³a¶ciwo¶ci dokumentu Evince w Nautilusie.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73
74 %build
75 gnome-doc-prepare --copy --force
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --disable-static \
82         --disable-schemas-install \
83         %{?with_dbus:--enable-dbus} \
84         --enable-djvu \
85         --enable-dvi \
86         --enable-nautilus \
87         --enable-pixbuf \
88         --enable-tiff
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
98 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
99
100 %find_lang %{name} --with-gnome
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post
106 %gconf_schema_install evince-thumbnailer-djvu.schemas
107 %gconf_schema_install evince-thumbnailer-dvi.schemas
108 %gconf_schema_install evince-thumbnailer.schemas
109 %gconf_schema_install evince.schemas
110 %update_desktop_database_post
111 %scrollkeeper_update_post
112
113 %preun
114 %gconf_schema_uninstall evince-thumbnailer-djvu.schemas
115 %gconf_schema_uninstall evince-thumbnailer-dvi.schemas
116 %gconf_schema_uninstall evince-thumbnailer.schemas
117 %gconf_schema_uninstall evince.schemas
118
119 %postun
120 %update_desktop_database_postun
121 %scrollkeeper_update_postun
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README TODO
126 %attr(755,root,root) %{_bindir}/*
127 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas
128 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas
129 %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas
130 %{_sysconfdir}/gconf/schemas/evince.schemas
131 %{_datadir}/%{name}
132 %{_desktopdir}/*.desktop
133 %{_omf_dest_dir}/evince
134
135 %files -n nautilus-extension-evince
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so*
This page took 0.128818 seconds and 4 git commands to generate.