]> git.pld-linux.org Git - packages/evolution.git/blob - evolution.spec
- up to version 1.5.94
[packages/evolution.git] / evolution.spec
1 #
2 # todo:
3 # - splitting mail, addressbook and calendar:
4 #   - etspec?
5 #   - ui?
6 #   - dependencies, i.e.: mail should require addressbook?
7 #
8 # Conditionals:
9 %bcond_without  ldap            # build without ldap support
10 %bcond_without  kerberos5       # build without kerberos5 support
11
12 %define         mver            1.5
13 %define         subver  94
14
15 Summary:        The GNOME2 Email/Calendar/Addressbook Suite
16 Summary(pl):    Klient poczty dla GNOME2/Kalendarz/Ksi±¿ka Adresowa
17 Summary(pt_BR): Cliente de email integrado com calendário e catálogo de endereços
18 Summary(zh_CN): Evolution - GNOME2¸öÈ˺͹¤×÷×éÐÅÏ¢¹ÜÀí¹¤¾ß(°üÀ¨µç×ÓÓʼþ£¬ÈÕÀúºÍµØÖ·±¡)
19 Name:           evolution
20 Version:        %{mver}.%{subver}
21 Release:        1
22 License:        GPL
23 Group:          Applications/Mail
24 Source0:        http://ftp.gnome.org/pub/gnome/sources/evolution/%{mver}/%{name}-%{version}.tar.bz2
25 # Source0-md5:  ce59d18b6e40f67077b95fbdec8f12c4
26 Patch0:         %{name}-nolibs.patch
27 Patch1:         %{name}-gnome-icon-theme.patch
28 Patch2:         %{name}-GG-IM.patch
29 Patch3:         %{name}-desktop.patch
30 URL:            http://www.ximian.com/products/ximian_evolution/
31 BuildRequires:  GConf2-devel >= 2.6.2
32 BuildRequires:  ORBit2-devel >= 1:2.10.3
33 BuildRequires:  autoconf
34 BuildRequires:  automake
35 BuildRequires:  bison
36 BuildRequires:  evolution-data-server-devel >= 0.0.99
37 BuildRequires:  flex
38 BuildRequires:  freetype-devel >= 2.0.5
39 BuildRequires:  gal-devel >= 1:2.2.0
40 BuildRequires:  gettext-devel
41 BuildRequires:  gnome-common
42 BuildRequires:  gnome-pilot-devel >= 2.0.0
43 BuildRequires:  gnome-vfs2-devel >= 2.6.1.1
44 BuildRequires:  gtk-doc >= 1.1
45 BuildRequires:  gtkhtml-devel >= 3.2.0
46 %{?with_kerberos5:BuildRequires:        heimdal-devel}
47 BuildRequires:  intltool >= 0.30
48 BuildRequires:  libglade2-devel >= 1:2.4.0
49 BuildRequires:  libgnomeprintui-devel >= 2.6.1
50 BuildRequires:  libgnomeui-devel >= 2.6.1.1
51 BuildRequires:  libsoup-devel >= 2.2.0
52 BuildRequires:  libtool
53 BuildRequires:  libxml2
54 BuildRequires:  nspr-devel
55 BuildRequires:  nss-devel
56 %{?with_ldap:BuildRequires:     openldap-devel >= 2.0.0}
57 #BuildRequires: openssl-devel >= 0.9.7d
58 BuildRequires:  pilot-link-devel >= 0.11.4
59 BuildRequires:  pkgconfig
60 BuildRequires:  psmisc
61 BuildRequires:  python
62 BuildRequires:  scrollkeeper >= 0.1.4
63 BuildRequires:  which
64 Requires(post,postun):  /sbin/ldconfig
65 Requires(post,postun):  /usr/bin/scrollkeeper-update
66 Requires(post):         GConf2
67 Requires:       %{name}-component = %{version}-%{release}
68 Requires:       GConf2 >= 2.6.2
69 Requires:       bonobo-activation
70 Requires:       evolution-data-server >= 0.0.99
71 Requires:       gal >= 1:2.2.0
72 Requires:       gtkhtml >= 3.2.0
73 Requires:       libglade2 >= 1:2.4.0
74 Requires:       psmisc
75 Requires:       scrollkeeper >= 0.1.4
76 Obsoletes:      evolution2
77 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
78
79 %description
80 Evolution is the GNOME2 mailer, calendar, contact manager and
81 communications tool. The tools which make up Evolution will be tightly
82 integrated with one another and act as a seamless personal
83 information-management tool.
84
85 %description -l pl
86 Evolution to program pocztowy GNOME2, kalendarz, ksi±¿ka adresowa i
87 narzêdzie komunikacyjne.
88
89 %description -l pt_BR
90 Evolution é um cliente de email para o GNOME2 com calendário e outras
91 ferramentas interessantes.
92
93 %package devel
94 Summary:        Header files for evolution
95 Summary(pl):    Pliki nag³ówkowe i dokumentacja
96 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento
97 Summary(zh_CN): Evolution×é¼þ¿ª·¢¿â
98 Group:          Development/Libraries
99 Requires:       %{name} = %{version}-%{release}
100 Requires:       cyrus-sasl-devel
101 Requires:       freetype-devel
102 Requires:       gal-devel >= 1:2.2.0
103 Requires:       gnome-vfs2-devel >= 2.6.1.1
104 Requires:       gtkhtml-devel >= 3.2.0
105 Requires:       libglade2-devel >= 1:2.4.0
106 Requires:       libgnomeprintui-devel >= 2.6.1
107 Requires:       libgnomeui-devel >= 2.6.1.1
108 Requires:       libsoup-devel >= 2.2.0
109 Requires:       nspr-devel
110 Requires:       nss-devel
111 %{?with_ldap:Requires:  openldap-devel >= 2.0.0}
112 #Requires:      openssl-devel >= 0.9.7c
113 Obsoletes:      evolution2-devel
114
115 %description devel
116 This package contains the files necessary to develop applications
117 using Evolution's libraries.
118
119 %description devel -l pl
120 Pakiet zawiera pliki potrzebne do rozwoju aplikacji u¿ywaj±cych
121 bibliotek programu Evolution.
122
123 %description devel -l pt_BR
124 Este pacote contém os arquivos necessários para desenvolvimento de
125 aplicações utilizando as bibliotecas do Evolution.
126
127 %package static
128 Summary:        Static libraries for evolution
129 Summary(pl):    Biblioteki statyczne dla evolution
130 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento
131 Group:          Development/Libraries
132 Requires:       %{name}-devel = %{version}-%{release}
133 Obsoletes:      evolution2-static
134
135 %description static
136 This package contains static libraries for Evolution.
137
138 %description static -l pl
139 Pakiet zawiera statyczne biblioteki Evolution.
140
141 %description static -l pt_BR
142 Este pacote contém as bibliotecas estáticas para desenvolvimento de
143 aplicações.
144
145 %package mail
146 Summary:        Evolution mail component
147 Summary(pl):    Modu³ pocztowy Evolution
148 Group:          X11/Applications
149 # mail composer requires addressbook component
150 Requires:       %{name}-addressbook = %{version}-%{release}
151 Requires(post,postun):  /sbin/ldconfig
152 Requires(post):         GConf2
153 Provides:       %{name}-component = %{version}-%{release}
154
155 %description mail
156 Evolution mail.
157
158 %description mail -l pl
159 Modu³ pocztowy Evolution.
160
161 %package addressbook
162 Summary:        Evolution addressbook component
163 Summary(pl):    Modu³ ksi±¿ki adresowej Evolution
164 Group:          X11/Applications
165 Requires:       %{name} = %{version}-%{release}
166 Requires(post): /sbin/ldconfig
167 Requires(post): GConf2
168 Provides:       %{name}-component = %{version}-%{release}
169
170 %description addressbook
171 Evolution addressbook.
172
173 %description addressbook -l pl
174 Ksi±¿ka adresowa Evolution.
175
176 %package calendar
177 Summary:        Evolution calendar and todo component
178 Summary(pl):    Modu³ kalendarza i listy zadañ Evolution
179 Group:          X11/Applications
180 Requires:       %{name} = %{version}-%{release}
181 Requires(post): /sbin/ldconfig
182 Requires(post): GConf2
183 Provides:       %{name}-component = %{version}-%{release}
184
185 %description calendar
186 Evolution calendar and todo component.
187
188 %description calendar -l pl
189 Kalendarz i lista zadañ Evolution.
190
191 %package pilot
192 Summary:        Evolution conduits for gnome-pilot
193 Summary(pl):    Dodatki do wymiany danych z gnome-pilot
194 Group:          X11/Applications
195 Requires:       %{name} = %{version}-%{release}
196 Obsoletes:      evolution2-pilot
197
198 %description pilot
199 This package contains conduits needed by gnome-pilot to synchronize
200 your Palm with Evolution.
201
202 %description pilot -l pl
203 Ten pakiet zawiera dodatki do synchronizacji danych Evolution z
204 Palmem.
205
206 %prep
207 %setup -q
208 %patch0 -p1
209 %patch1 -p1
210 %patch2 -p1
211 %patch3 -p1
212
213 %build
214 glib-gettextize --copy --force
215 intltoolize --copy --force
216 %{__libtoolize}
217 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
218 %{__autoheader}
219 %{__autoconf}
220 %{__automake}
221 %configure \
222         --enable-gtk-doc \
223         --enable-pilot-conduits=yes \
224         %{?with_ldap:--with-openldap=yes} \
225         %{!?with_ldap:--with-openldap=no} \
226         %{?with_kerberos5:--with-krb5=%{_prefix}} \
227         %{!?with_kerberos5:--with-krb5=no} \
228         --without-static-ldap \
229         --enable-nntp=yes \
230         --enable-file-locking=fcntl \
231         --enable-dot-locking=no \
232         --with-nspr-includes="%{_includedir}/nspr" \
233         --with-nss-includes="%{_includedir}/nss" \
234         --with-nspr-libs="%{_libdir}" \
235         --with-nss-libs="%{_libdir}" \
236         --enable-ipv6=yes \
237         --with-html-dir=%{_gtkdocdir} \
238         --with-kde-applnk-path=no \
239         --disable-schemas-install \
240         --enable-nss=yes \
241         --enable-smime=yes \
242         --enable-static \
243         --enable-file-chooser
244
245 # hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
246 # (required if you use ORBit2-devel 2.7.2)
247 find -name \*.idl -exec touch {} \;
248
249 %{__make} \
250         GTKHTML_DATADIR=%{_datadir}/idl
251
252 %install
253 rm -rf $RPM_BUILD_ROOT
254
255 %{__make} install \
256         DESTDIR=$RPM_BUILD_ROOT \
257         KDE_APPLNK_DIR=%{_applnkdir}/Network/Mail \
258         omf_dest_dir=%{_omf_dest_dir}/%{name} \
259         GTKHTML_DATADIR=%{_datadir}/idl \
260         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
261
262 # strip doesn't pass these files and they aren't necessary, so remove them
263 # probably this should be done differently, but I have no idea
264 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/*/*.a
265 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/libemiscwidgets.a
266 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
267
268 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
269
270 %find_lang %{name} --all-name --with-gnome
271
272 %clean
273 rm -rf $RPM_BUILD_ROOT
274
275 %post
276 /sbin/ldconfig
277 /usr/bin/scrollkeeper-update
278 %gconf_schema_install
279
280 %postun
281 /sbin/ldconfig
282 /usr/bin/scrollkeeper-update
283
284 %post mail
285 /sbin/ldconfig
286 %gconf_schema_install
287
288 %postun mail
289 /sbin/ldconfig
290
291 %post addressbook
292 /sbin/ldconfig
293 %gconf_schema_install
294
295 %postun addressbook -p /sbin/ldconfig
296
297 %post calendar
298 /sbin/ldconfig
299 %gconf_schema_install
300
301 %postun calendar -p /sbin/ldconfig
302
303 %files -f evolution.lang
304 %defattr(644,root,root,755)
305 %doc AUTHORS ChangeLog NEWS* README
306 %attr(755,root,root) %{_bindir}/*
307 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeconduit.so.*
308 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libemiscwidgets.so.*
309 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeselectnames.so.*
310 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeshell.so.*
311 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeutil.so.*
312 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-a11y.so.*
313 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-importer.so.*
314 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-widgets-a11y.so.*
315 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-alarm-notify
316 %attr(755,root,root) %{_libdir}/evolution/%{mver}/killev
317 # addressbook requires it:
318 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libcamel*.so.*
319 %dir %{_libdir}/evolution
320 %dir %{_libdir}/evolution/%{mver}
321 %dir %{_libdir}/evolution/%{mver}/components
322 %{_libdir}/bonobo/servers/GNOME_Evolution_Shell_1.5.server
323 %dir %{_datadir}/idl/evolution-%{mver}
324 %dir %{_datadir}/evolution
325 %dir %{_datadir}/evolution/%{mver}
326 %dir %{_datadir}/evolution/%{mver}/views
327 %{_datadir}/evolution/%{mver}/*.xml
328 %dir %{_datadir}/evolution/%{mver}/default
329 %dir %{_datadir}/evolution/%{mver}/default/C
330 %{_datadir}/evolution/%{mver}/errors
331 %{_datadir}/evolution/%{mver}/etspec
332 %{_datadir}/evolution/%{mver}/glade
333 %{_datadir}/evolution/%{mver}/help
334 %{_datadir}/evolution/%{mver}/images
335 %{_datadir}/evolution/%{mver}/ui
336 %{_datadir}/mime-info/*
337 %{_datadir}/idl/evolution-%{mver}/Evolution-Component.idl
338 %{_datadir}/idl/evolution-%{mver}/Evolution-ConfigControl.idl
339 %{_datadir}/idl/evolution-%{mver}/Evolution-Offline.idl
340 %{_datadir}/idl/evolution-%{mver}/Evolution-Shell.idl
341 %{_datadir}/idl/evolution-%{mver}/Evolution-Wizard.idl
342 %{_datadir}/idl/evolution-%{mver}/Evolution-common.idl
343 %{_datadir}/idl/evolution-%{mver}/Evolution.idl
344 %{_datadir}/idl/evolution-%{mver}/GNOME_Evolution_Importer.idl
345 %{_desktopdir}/*
346 %{_pixmapsdir}/*
347 %{_sysconfdir}/gconf/schemas/apps_evolution_shell-1.5.schemas
348 %{_omf_dest_dir}/%{name}
349
350 %files devel
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so
353 %{_libdir}/evolution/%{mver}/*.la
354 %{_libdir}/evolution/*/*/*.la
355 %{_includedir}/*
356 %{_pkgconfigdir}/*
357
358 %files static
359 %defattr(644,root,root,755)
360 %{_libdir}/evolution/%{mver}/*.a
361
362 %files mail
363 %defattr(644,root,root,755)
364 %dir %{_libdir}/evolution/%{mver}/camel*
365 %dir %{_libdir}/evolution/%{mver}/evolution-calendar-importers
366 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-mail-importers.so*
367 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel/*
368 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-mail.so
369 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel-providers/*.so
370 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-calendar-importers/*.so
371 %{_libdir}/bonobo/servers/GNOME_Evolution_Mail_1.5.server
372 %{_libdir}/bonobo/servers/GNOME_Evolution_Mail_Importers_1.5.server
373 %{_libdir}/evolution/%{mver}/camel-providers/*.urls
374 %{_datadir}/evolution/%{mver}/views/mail*
375 %{_datadir}/evolution/%{mver}/default/C/mail
376 %{_datadir}/idl/evolution-%{mver}/Composer.idl
377 %{_datadir}/idl/evolution-%{mver}/Evolution-Composer.idl
378 %{_sysconfdir}/gconf/schemas/evolution-mail-1.5.schemas
379
380 %files addressbook
381 %defattr(644,root,root,755)
382 %dir %{_libdir}/evolution/%{mver}/evolution-addressbook-importers
383 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-clean
384 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-export
385 %attr(755,root,root) %{_libdir}/evolution/%{mver}/csv2vcard
386 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-addressbook.so
387 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-addressbook-a11y.so.*
388 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-importers/lib*.so
389 %{_libdir}/bonobo/servers/GNOME_Evolution_Addressbook*
390 %{_datadir}/evolution/%{mver}/views/addressbook*
391 %{_datadir}/evolution/%{mver}/ecps
392 %{_datadir}/idl/evolution-%{mver}/Evolution-Addressbook-SelectNames.idl
393 %{_sysconfdir}/gconf/schemas/apps_evolution_addressbook-1.5.schemas
394
395 %files calendar
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-calendar.so
398 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-calendar-a11y.so.*
399 %{_libdir}/bonobo/servers/GNOME_Evolution_Calendar*
400 %{_datadir}/evolution/%{mver}/views/calendar*
401 %{_datadir}/evolution/%{mver}/views/tasks*
402 %{_datadir}/idl/evolution-%{mver}/evolution-calendar.idl
403 %{_sysconfdir}/gconf/schemas/apps_evolution_calendar-1.5.schemas
404
405 %files pilot
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/evolution/%{mver}/conduits/*
408 %{_datadir}/gnome-pilot/conduits/*
This page took 0.061782 seconds and 4 git commands to generate.