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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 114165 - (hide annotations) (download)
Sun Jun 26 19:26:59 2011 UTC (12 years, 9 months ago) by wally
File size: 4857 byte(s)
- new version 3.1.2
- use tar.xz source
- enable introspection
- create a subpackage for gir .typelibs
- disable static build
- clean .spec a bit

1 tv 81593 %define build_dvi 0
2 pterjan 35314
3 wally 114165 %define major 3
4     %define api 3.0
5     %define gir_major 3.0
6     %define libname %mklibname %{name} %{major}
7     %define devname %mklibname -d %{name}
8     %define girname %mklibname %{name}-gir %{gir_major}
9    
10     Summary: GNOME Document viewer
11     Name: evince
12     Version: 3.1.2
13     Release: %mkrel 1
14     License: GPLv2+ and GFDL+
15     Group: Graphical desktop/GNOME
16     URL: http://www.gnome.org
17     Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
18     Requires: ghostscript
19     Requires: ghostscript-module-X
20     BuildRequires: gtk+3-devel
21     BuildRequires: libgail-3.0-devel
22     BuildRequires: libgnome-keyring-devel
23     BuildRequires: libxt-devel
24     BuildRequires: libpoppler-glib-devel >= 0.14.0
25     BuildRequires: libspectre-devel
26     BuildRequires: nautilus-devel
27     BuildRequires: libtiff-devel
28     BuildRequires: libxslt-proc
29     BuildRequires: gobject-introspection-devel
30     BuildRequires: glib2-devel >= 2.25.3
31     BuildRequires: cairo-devel
32 pterjan 35314 #BuildRequires: t1lib-devel
33 wally 114165
34 pterjan 35314 %if %build_dvi
35 wally 114165 BuildRequires: texlive
36 pterjan 35314 #gw just like xdvi, needed for rendering the fonts
37 wally 114165 Suggests: texlive
38 pterjan 35314 %endif
39 wally 114165
40     BuildRequires: djvulibre-devel >= 3.5.17
41     BuildRequires: libgcrypt-devel
42     BuildRequires: scrollkeeper
43     BuildRequires: ghostscript
44     BuildRequires: intltool
45 pterjan 35314 #gw if we run autoconf
46 wally 114165 BuildRequires: gnome-doc-utils
47     BuildRequires: gnome-common
48     BuildRequires: gnome-icon-theme
49     BuildRequires: gtk-doc
50     Requires(post): scrollkeeper desktop-file-utils
51     Requires(postun): scrollkeeper desktop-file-utils
52 pterjan 35314
53     %description
54     Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats.
55    
56 cjw 113251 %package -n %{libname}
57 wally 114165 Group: System/Libraries
58     Summary: GNOME Document viewer library
59 pterjan 35314
60 cjw 113251 %description -n %{libname}
61 pterjan 35314 This is the GNOME Document viewer library, the shared parts of evince.
62    
63 wally 114165 %package -n %{devname}
64     Group: Development/C
65     Summary: GNOME Document viewer library
66     Requires: %{libname} = %{version}-%{release}
67     Provides: lib%{name}-devel = %{version}-%{release}
68     Provides: %{name}-devel = %{version}-%{release}
69 pterjan 35314
70 wally 114165 %description -n %{devname}
71 pterjan 35314 This is the GNOME Document viewer library, the shared parts of evince.
72    
73 wally 114165 %package -n %{girname}
74     Summary: GObject Introspection interface description for %{name}
75     Group: System/Libraries
76     Requires: %{libname} = %{version}-%{release}
77    
78     %description -n %{girname}
79     GObject Introspection interface description for %{name}.
80    
81 pterjan 35314 %prep
82     %setup -q
83     %apply_patches
84    
85     %build
86 cjw 113251 autoreconf -fi
87 wally 114165 %configure2_5x \
88     --enable-tiff \
89     --enable-djvu \
90     --enable-comics \
91 pterjan 35314 %if %build_dvi
92 wally 114165 --enable-dvi \
93 pterjan 35314 %endif
94 wally 114165 --enable-gtk-doc \
95     --enable-introspection \
96     --disable-static
97 pterjan 35314
98 wally 114165 %make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas
99 pterjan 35314
100     %install
101 wally 114165 rm -rf %{buildroot}
102 pterjan 35314 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas
103    
104     %find_lang Evince --with-gnome
105 wally 114165 %find_lang %{name} --with-gnome
106 pterjan 35314
107 wally 114165 cat %{name}.lang >> Evince.lang
108    
109 cjw 113251 rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \
110 wally 114165 %{buildroot}%{_libdir}/evince/*/backends/lib*a \
111     %{buildroot}%{_libdir}/libev*.{a,la} \
112     %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled
113 pterjan 35314
114     %clean
115 wally 114165 rm -rf %{buildroot}
116 pterjan 35314
117     %files -f Evince.lang
118     %defattr(-,root,root,-)
119     %doc NEWS AUTHORS TODO
120     %{_bindir}/*
121     %{_datadir}/evince
122     %{_datadir}/applications/*
123 cjw 113251 %{_datadir}/icons/hicolor/*/apps/evince*
124     %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml
125     %{_datadir}/GConf/gsettings/evince.convert
126     %{_mandir}/man1/evince.1*
127     %{_libdir}/nautilus/extensions-3.0/libevince*so*
128     %dir %{_libdir}/evince/%{major}/
129     %dir %{_libdir}/evince/%{major}/backends
130     %{_libdir}/evince/%{major}/backends/lib*
131     %{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend
132     %{_libdir}/evince/%{major}/backends/djvudocument.evince-backend
133 wally 114165
134 tv 81612 %if %build_dvi
135 cjw 113251 %{_libdir}/evince/%{major}/backends/dvidocument.evince-backend
136 tv 81612 %endif
137 wally 114165
138 cjw 113251 %{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend
139     #{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend
140     %{_libdir}/evince/%{major}/backends/psdocument.evince-backend
141     %{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend
142     #{_libexecdir}/evince-convert-metadata
143     %{_libexecdir}/evinced
144     %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service
145     %{_datadir}/thumbnailers/evince.thumbnailer
146 pterjan 35314
147 cjw 113251 %files -n %{libname}
148 pterjan 35314 %defattr(-,root,root,-)
149 cjw 113251 %{_libdir}/libevdocument3.so.%{major}*
150     %{_libdir}/libevview3.so.%{major}*
151 pterjan 35314
152 wally 114165 %files -n %{girname}
153     %defattr(-,root,root)
154     %{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib
155     %{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib
156    
157     %files -n %{devname}
158 pterjan 35314 %defattr(-,root,root,-)
159     %doc ChangeLog
160 cjw 113251 %{_datadir}/gtk-doc/html/evince
161     %{_datadir}/gtk-doc/html/libevdocument-%{api}
162     %{_datadir}/gtk-doc/html/libevview-%{api}
163     %{_libdir}/libevdocument3.so
164     %{_libdir}/libevview3.so
165     %{_libdir}/pkgconfig/evince*pc
166     %{_includedir}/evince*
167 wally 114165 %{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir
168     %{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir

  ViewVC Help
Powered by ViewVC 1.1.30