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