/[packages]/cauldron/evince/current/SPECS/evince.spec
ViewVC logotype

Contents of /cauldron/evince/current/SPECS/evince.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35314 - (show annotations) (download)
Sun Jan 23 21:11:29 2011 UTC (9 years, 9 months ago) by pterjan
File size: 5641 byte(s)
imported package evince
1 %define build_dvi 1
2 %define build_impress 1
3 %define major 3
4 %define api 2.32
5 %define libname %mklibname evince %major
6 %define develname %mklibname -d evince
7
8 Summary: GNOME Document viewer
9 Name: evince
10 Version: 2.32.0
11 Release: %mkrel 2
12 License: GPLv2+ and GFDL+
13 Group: Graphical desktop/GNOME
14 URL: http://www.gnome.org
15 Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17 Requires: ghostscript ghostscript-module-X
18 BuildRequires: libGConf2-devel >= 2.31.2
19 BuildRequires: gtk+2-devel
20 BuildRequires: libgail-devel
21 BuildRequires: libgnome-keyring-devel
22 BuildRequires: libxt-devel
23 BuildRequires: libpoppler-glib-devel >= 0.14.0
24 BuildRequires: libspectre-devel
25 BuildRequires: nautilus-devel
26 BuildRequires: libtiff-devel
27 BuildRequires: libxslt-proc
28 #BuildRequires: gobject-introspection-devel
29 BuildRequires: glib2-devel >= 2.25.3
30 #BuildRequires: t1lib-devel
31 %if %build_dvi
32 BuildRequires: tetex-devel >= tetex-devel-3.0-22mdv
33 #gw just like xdvi, needed for rendering the fonts
34 Suggests: tetex
35 %endif
36 BuildRequires: djvulibre-devel >= 3.5.17
37 BuildRequires: libgcrypt-devel
38 BuildRequires: scrollkeeper
39 BuildRequires: ghostscript
40 BuildRequires: intltool
41 #gw if we run autoconf
42 BuildRequires: gnome-doc-utils
43 BuildRequires: gnome-common
44 BuildRequires: gtk-doc
45 Requires(post): scrollkeeper desktop-file-utils
46 Requires(postun): scrollkeeper desktop-file-utils
47
48 %description
49 Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats.
50
51 %package -n %libname
52 Group:System/Libraries
53 Summary: GNOME Document viewer library
54
55 %description -n %libname
56 This is the GNOME Document viewer library, the shared parts of evince.
57
58 %package -n %develname
59 Group:Development/C
60 Summary: GNOME Document viewer library
61 Requires: %libname = %version
62 Provides: libevince-devel = %version-%release
63
64 %description -n %develname
65 This is the GNOME Document viewer library, the shared parts of evince.
66
67 %prep
68 %setup -q
69 %apply_patches
70
71 %build
72 %configure2_5x --enable-tiff --enable-djvu --enable-pixbuf --enable-comics \
73 %if %build_impress
74 --enable-impress \
75 %endif
76 %if %build_dvi
77 --enable-dvi \
78 %endif
79 --enable-gtk-doc
80 #--enable-introspection
81 #--enable-t1lib
82
83 %make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas
84
85 %install
86 rm -rf $RPM_BUILD_ROOT %name.lang
87
88 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas
89
90 %find_lang Evince --with-gnome
91 %find_lang %name --with-gnome
92 cat %name.lang >> Evince.lang
93 for omf in %buildroot%_datadir/omf/*/{*-??,*-??_??}.omf;do
94 echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%buildroot!!)" >> Evince.lang
95 done
96
97 rm -f %buildroot%_libdir/nautilus/extensions-*/libevince*a \
98 %buildroot%_libdir/evince/*/backends/lib*a %buildroot%_libdir/lib*.a \
99 %buildroot%_datadir/glib-2.0/schemas/gschemas.compiled
100
101
102 %post
103 %if %mdkversion < 200900
104 %update_scrollkeeper
105 %{update_menus}
106 %update_desktop_database
107 %endif
108 %define schemas %name-thumbnailer %name-thumbnailer-djvu %{?build_dvi:%name-thumbnailer-dvi} evince-thumbnailer-comics evince-thumbnailer-ps
109 %if %mdkversion < 200900
110 %post_install_gconf_schemas %schemas
111 %update_icon_cache hicolor
112 %endif
113
114 %preun
115 %preun_uninstall_gconf_schemas %schemas
116
117 %if %mdkversion < 200900
118 %postun
119 %clean_scrollkeeper
120 %{clean_menus}
121 %clean_desktop_database
122 %clean_icon_cache hicolor
123 %endif
124
125 %if %mdkversion < 200900
126 %post -n %libname -p /sbin/ldconfig
127 %endif
128 %if %mdkversion < 200900
129 %postun -n %libname -p /sbin/ldconfig
130 %endif
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files -f Evince.lang
136 %defattr(-,root,root,-)
137 %doc NEWS AUTHORS TODO
138 # README
139 %_sysconfdir/gconf/schemas/%name-thumbnailer.schemas
140 %_sysconfdir/gconf/schemas/%name-thumbnailer-djvu.schemas
141 %_sysconfdir/gconf/schemas/%name-thumbnailer-comics.schemas
142 %if %build_dvi
143 %_sysconfdir/gconf/schemas/%name-thumbnailer-dvi.schemas
144 %endif
145 %_sysconfdir/gconf/schemas/%name-thumbnailer-ps.schemas
146 %{_bindir}/*
147 %{_datadir}/evince
148 %{_datadir}/applications/*
149 %_datadir/icons/hicolor/*/apps/evince*
150 %_datadir/glib-2.0/schemas/org.gnome.Evince.gschema.xml
151 %_datadir/GConf/gsettings/evince.convert
152 %dir %_datadir/omf/%name
153 %_datadir/omf/%name/%name-C.omf
154 %_mandir/man1/evince.1*
155 %_libdir/nautilus/extensions-2.0/libevince*so*
156 %dir %_libdir/evince/%major/
157 %dir %_libdir/evince/%major/backends
158 %_libdir/evince/%major/backends/lib*
159 %_libdir/evince/%major/backends/comicsdocument.evince-backend
160 %_libdir/evince/%major/backends/djvudocument.evince-backend
161 %_libdir/evince/%major/backends/dvidocument.evince-backend
162 %if %build_impress
163 %_libdir/evince/%major/backends/impressdocument.evince-backend
164 %endif
165 %_libdir/evince/%major/backends/pdfdocument.evince-backend
166 %_libdir/evince/%major/backends/pixbufdocument.evince-backend
167 %_libdir/evince/%major/backends/psdocument.evince-backend
168 %_libdir/evince/%major/backends/tiffdocument.evince-backend
169 %_libexecdir/evince-convert-metadata
170 %_libexecdir/evinced
171 %_datadir/dbus-1/services/org.gnome.evince.Daemon.service
172
173 %files -n %libname
174 %defattr(-,root,root,-)
175 %_libdir/libevdocument.so.%{major}*
176 %_libdir/libevview.so.%{major}*
177 #%_libdir/girepository-1.0/EvinceDocument-%api.typelib
178 #%_libdir/girepository-1.0/EvinceView-%api.typelib
179
180 %files -n %develname
181 %defattr(-,root,root,-)
182 %doc ChangeLog
183 %_datadir/gtk-doc/html/evince
184 %_datadir/gtk-doc/html/libevdocument-%api
185 %_datadir/gtk-doc/html/libevview-%api
186 %_libdir/libevdocument.so
187 %_libdir/libevview.so
188 %_libdir/*.la
189 %_libdir/pkgconfig/evince*pc
190 %_includedir/evince*
191 #%_datadir/gir-1.0/EvinceDocument-%api.gir
192 #%_datadir/gir-1.0/EvinceView-%api.gir
193
194
195

  ViewVC Help
Powered by ViewVC 1.1.28