]> git.pld-linux.org Git - packages/evince.git/blob - evince.spec
- added BR: python-libxml2
[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:  python-libxml2
37 BuildRequires:  rpmbuild(macros) >= 1.197
38 BuildRequires:  scrollkeeper
39 Requires(post,preun):   GConf2
40 Requires(post,postun):  desktop-file-utils
41 Requires(post,postun):  scrollkeeper
42 Requires:       cairo >= 0.9.2-2
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 Evince is a document viewer for multiple document formats like pdf,
47 postscript, and many others. The goal of evince is to replace the
48 multiple document viewers that exist on the GNOME Desktop, like ggv,
49 gpdf, and xpdf with a single simple application.
50
51 %description -l pl
52 Evince jest przegl±dark± dokumentów w wielu formatach takich jak pdf,
53 postscript i wielu innych. W zamierzeniach program ma zast±piæ
54 przegl±darki dokumentów dla ¶rodowiska GNOME, takie jak ggv, gpdf i
55 xpdf jedn± prost± aplikacj±.
56
57 %package -n nautilus-extension-evince
58 Summary:        Evince extension for Nautilus
59 Summary(pl):    Rozszerzenie Evince dla Nautilusa
60 Group:          X11/Applications
61 Requires:       %{name} = %{version}-%{release}
62 Requires:       nautilus
63
64 %description -n nautilus-extension-evince
65 Shows Evince document properties in Nautilus.
66
67 %description -n nautilus-extension-evince -l pl
68 Pokazuje w³a¶ciwo¶ci dokumentu Evince w Nautilusie.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74
75 %build
76 gnome-doc-prepare --copy --force
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         --disable-static \
83         --disable-schemas-install \
84         %{?with_dbus:--enable-dbus} \
85         --enable-djvu \
86         --enable-dvi \
87         --enable-nautilus \
88         --enable-pixbuf \
89         --enable-tiff
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
99 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
100
101 %find_lang %{name} --with-gnome
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post
107 %gconf_schema_install evince-thumbnailer-djvu.schemas
108 %gconf_schema_install evince-thumbnailer-dvi.schemas
109 %gconf_schema_install evince-thumbnailer.schemas
110 %gconf_schema_install evince.schemas
111 %update_desktop_database_post
112 %scrollkeeper_update_post
113
114 %preun
115 %gconf_schema_uninstall evince-thumbnailer-djvu.schemas
116 %gconf_schema_uninstall evince-thumbnailer-dvi.schemas
117 %gconf_schema_uninstall evince-thumbnailer.schemas
118 %gconf_schema_uninstall evince.schemas
119
120 %postun
121 %update_desktop_database_postun
122 %scrollkeeper_update_postun
123
124 %files -f %{name}.lang
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README TODO
127 %attr(755,root,root) %{_bindir}/*
128 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas
129 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas
130 %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas
131 %{_sysconfdir}/gconf/schemas/evince.schemas
132 %{_datadir}/%{name}
133 %{_desktopdir}/*.desktop
134 %{_omf_dest_dir}/evince
135
136 %files -n nautilus-extension-evince
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so*
This page took 0.072375 seconds and 3 git commands to generate.