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