]> git.pld-linux.org Git - packages/evince.git/blob - evince.spec
17055e5e35666d1e63b51b1d7a209b95bc44fce2
[packages/evince.git] / evince.spec
1 Summary:        Document viewer for multiple document formats
2 Summary(pl):    Przegl±darka dokumentów w wielu formatach
3 Name:           evince
4 Version:        0.2.0
5 Release:        2
6 License:        GPL v2
7 Group:          X11/Applications/Graphics
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/evince/0.2/%{name}-%{version}.tar.bz2
9 # Source0-md5:  ad7bd39d29c66d34e37b9da311d5e94d
10 Patch0:         %{name}-desktop.patch
11 Patch1:         %{name}-gs8.patch
12 URL:            http://www.gnome.org/projects/evince/
13 BuildRequires:  GConf2-devel >= 2.10.0
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  ghostscript
17 BuildRequires:  gnome-vfs2-devel >= 2.10.0-2
18 BuildRequires:  gtk+2-devel >= 2:2.6.4
19 BuildRequires:  intltool
20 BuildRequires:  libglade2-devel >= 1:2.5.1
21 BuildRequires:  libgnomeprintui-devel >= 2.10.0
22 BuildRequires:  libgnomeui-devel >= 2.10.0-2
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  poppler-devel >= 0.2.0
26 BuildRequires:  rpmbuild(macros) >= 1.196
27 Requires(post,preun):   GConf2
28 Requires(post,postun):  desktop-file-utils
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Evince is a document viewer for multiple document formats like pdf,
33 postscript, and many others. The goal of evince is to replace the
34 multiple document viewers that exist on the GNOME Desktop, like ggv,
35 gpdf, and xpdf with a single simple application.
36
37 %description -l pl
38 Evince jest przegl±dark± dokumentów w wielu formatach takich jak pdf,
39 postscript i wielu innych. W zamierzeniach program ma zast±piæ
40 przegl±darki dokumentów dla ¶rodowiska GNOME, takie jak ggv, gpdf i
41 xpdf jedn± prost± aplikacj±.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p1
47
48 %build
49 %{__aclocal}
50 %{__autoconf}
51 %{__autoheader}
52 %{__automake}
53 %configure \
54         --disable-schemas-install \
55         --enable-a4-paper
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
65
66 %find_lang %{name}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 umask 022
73 %gconf_schema_install /etc/gconf/schemas/evince-thumbnailer.schemas
74 %gconf_schema_install /etc/gconf/schemas/evince.schemas
75 /usr/bin/update-desktop-database
76
77 %preun
78 if [ $1 = 0 ]; then
79         %gconf_schema_uninstall /etc/gconf/schemas/evince-thumbnailer.schemas
80         %gconf_schema_uninstall /etc/gconf/schemas/evince.schemas
81 fi
82
83 %postun
84 if [ $1 = 0 ]; then
85         umask 022
86         /usr/bin/update-desktop-database
87 fi
88
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc AUTHORS ChangeLog NEWS README TODO
92 %attr(755,root,root) %{_bindir}/*
93 %{_sysconfdir}/gconf/schemas/*.schemas
94 %{_datadir}/%{name}
95 %{_desktopdir}/*.desktop
This page took 0.096035 seconds and 2 git commands to generate.