]> git.pld-linux.org Git - packages/evince.git/blob - evince.spec
- force popler version
[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.5.0
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Graphics
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/evince/0.5/%{name}-%{version}.tar.bz2
13 # Source0-md5:  9d4507c9370eec37fa96cabf80926f15
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:  libxslt-progs
34 BuildRequires:  nautilus-devel
35 BuildRequires:  pkgconfig
36 BuildRequires:  poppler-glib-devel >= 0.5.0
37 BuildRequires:  python-libxml2
38 BuildRequires:  rpmbuild(macros) >= 1.197
39 BuildRequires:  scrollkeeper
40 Requires(post,preun):   GConf2
41 Requires(post,postun):  desktop-file-utils
42 Requires(post,postun):  scrollkeeper
43 Requires:       cairo >= 0.9.2-2
44 Requires:       poppler-glib >= 0.5.0
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 %description -l pl
54 Evince jest przegl±dark± dokumentów w wielu formatach takich jak pdf,
55 postscript i wielu innych. W zamierzeniach program ma zast±piæ
56 przegl±darki dokumentów dla ¶rodowiska GNOME, takie jak ggv, gpdf i
57 xpdf jedn± prost± aplikacj±.
58
59 %package -n nautilus-extension-evince
60 Summary:        Evince extension for Nautilus
61 Summary(pl):    Rozszerzenie Evince dla Nautilusa
62 Group:          X11/Applications
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       nautilus
65
66 %description -n nautilus-extension-evince
67 Shows Evince document properties in Nautilus.
68
69 %description -n nautilus-extension-evince -l pl
70 Pokazuje w³a¶ciwo¶ci dokumentu Evince w Nautilusie.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76
77 %build
78 gnome-doc-prepare --copy --force
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --disable-static \
85         --disable-schemas-install \
86         %{?with_dbus:--enable-dbus} \
87         --enable-djvu \
88         --enable-dvi \
89         --enable-nautilus \
90         --enable-pixbuf \
91         --enable-tiff
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
101 rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
102
103 %find_lang %{name} --with-gnome
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post
109 %gconf_schema_install evince-thumbnailer-djvu.schemas
110 %gconf_schema_install evince-thumbnailer-dvi.schemas
111 %gconf_schema_install evince-thumbnailer.schemas
112 %gconf_schema_install evince.schemas
113 %update_desktop_database_post
114 %scrollkeeper_update_post
115
116 %preun
117 %gconf_schema_uninstall evince-thumbnailer-djvu.schemas
118 %gconf_schema_uninstall evince-thumbnailer-dvi.schemas
119 %gconf_schema_uninstall evince-thumbnailer.schemas
120 %gconf_schema_uninstall evince.schemas
121
122 %postun
123 %update_desktop_database_postun
124 %scrollkeeper_update_postun
125
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc AUTHORS ChangeLog NEWS README TODO
129 %attr(755,root,root) %{_bindir}/*
130 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas
131 %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas
132 %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas
133 %{_sysconfdir}/gconf/schemas/evince.schemas
134 %{_datadir}/%{name}
135 %{_desktopdir}/*.desktop
136 %{_omf_dest_dir}/evince
137
138 %files -n nautilus-extension-evince
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so*
This page took 0.235786 seconds and 4 git commands to generate.