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