]> git.pld-linux.org Git - packages/evolution.git/blob - evolution.spec
- readded -desktop patch: Encoding field os still missing, rel. 2
[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
11 %define         mver            1.5
12 %define         subver  90
13
14 Summary:        The GNOME2 Email/Calendar/Addressbook Suite
15 Summary(pl):    Klient poczty dla GNOME2/Kalendarz/Ksi±¿ka Adresowa
16 Summary(pt_BR): Cliente de email integrado com calendário e catálogo de endereços
17 Summary(zh_CN): Evolution - GNOME2¸öÈ˺͹¤×÷×éÐÅÏ¢¹ÜÀí¹¤¾ß(°üÀ¨µç×ÓÓʼþ£¬ÈÕÀúºÍµØÖ·±¡)
18 Name:           evolution
19 Version:        %{mver}.%{subver}
20 Release:        2
21 License:        GPL
22 Group:          Applications/Mail
23 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/%{mver}/%{name}-%{version}.tar.bz2
24 # Source0-md5:  c33c6a84de4049202cd72dea934a3240
25 Patch0:         %{name}-locale-names.patch
26 Patch1:         %{name}-nolibs.patch
27 Patch2:         %{name}-schemas.patch
28 Patch3:         %{name}-gnome-icon-theme.patch
29 Patch4:         %{name}-GG-IM.patch
30 Patch5:         %{name}-desktop.patch
31 URL:            http://www.ximian.com/products/ximian_evolution/
32 BuildRequires:  GConf2-devel >= 2.6.2
33 BuildRequires:  ORBit2-devel >= 1:2.10.3
34 BuildRequires:  autoconf
35 BuildRequires:  automake
36 BuildRequires:  bison
37 BuildRequires:  evolution-data-server-devel >= 0.0.95
38 BuildRequires:  flex
39 BuildRequires:  freetype-devel >= 2.0.5
40 BuildRequires:  gal-devel >= 1:2.1.11
41 BuildRequires:  gettext-devel
42 BuildRequires:  gnome-common
43 BuildRequires:  gnome-pilot-devel >= 2.0.0
44 BuildRequires:  gnome-vfs2-devel >= 2.6.1.1
45 BuildRequires:  gtk-doc >= 1.1
46 BuildRequires:  gtkhtml-devel >= 3.1.17
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.1.11
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.95
71 Requires:       gal >= 1:2.1.11
72 Requires:       gtkhtml >= 3.1.17
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.1.11
103 Requires:       gnome-vfs2-devel >= 2.6.1.1
104 Requires:       gtkhtml-devel >= 3.1.17
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.1.11
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 %patch4 -p1
213 %patch5 -p1
214
215 mv po/{no,nb}.po
216
217 %build
218 glib-gettextize --copy --force
219 intltoolize --copy --force
220 %{__libtoolize}
221 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
222 %{__autoheader}
223 %{__autoconf}
224 %{__automake}
225 %configure \
226         --enable-gtk-doc \
227         --enable-pilot-conduits=yes \
228         %{?with_ldap:--with-openldap=yes} \
229         %{!?with_ldap:--with-openldap=no} \
230         --without-static-ldap \
231         --enable-nntp=yes \
232         --enable-file-locking=fcntl \
233         --enable-dot-locking=no \
234         --with-nspr-includes="%{_includedir}/nspr" \
235         --with-nss-includes="%{_includedir}/nss" \
236         --with-nspr-libs="%{_libdir}" \
237         --with-nss-libs="%{_libdir}" \
238         --enable-ipv6=yes \
239         --with-html-dir=%{_gtkdocdir} \
240         --with-kde-applnk-path=no \
241         --disable-schemas-install \
242         --enable-nss=yes \
243         --enable-smime=yes \
244         --enable-static
245
246 # hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
247 # (required if you use ORBit2-devel 2.7.2)
248 find -name \*.idl -exec touch {} \;
249
250 %{__make} \
251         GTKHTML_DATADIR=%{_datadir}/idl
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255
256 %{__make} install \
257         DESTDIR=$RPM_BUILD_ROOT \
258         KDE_APPLNK_DIR=%{_applnkdir}/Network/Mail \
259         omf_dest_dir=%{_omf_dest_dir}/%{name} \
260         GTKHTML_DATADIR=%{_datadir}/idl \
261         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
262
263 # strip doesn't pass these files and they aren't necessary, so remove them
264 # probably this should be done differently, but I have no idea
265 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/*/*.a
266 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/libemiscwidgets.a
267 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
268
269 %find_lang %{name} --all-name --with-gnome
270
271 %clean
272 rm -rf $RPM_BUILD_ROOT
273
274 %post
275 /sbin/ldconfig
276 /usr/bin/scrollkeeper-update
277 %gconf_schema_install
278
279 %postun
280 /sbin/ldconfig
281 /usr/bin/scrollkeeper-update
282
283 %post mail
284 /sbin/ldconfig
285 %gconf_schema_install
286
287 %postun mail
288 /sbin/ldconfig
289
290 %post addressbook
291 /sbin/ldconfig
292 %gconf_schema_install
293
294 %postun addressbook -p /sbin/ldconfig
295
296 %post calendar
297 /sbin/ldconfig
298 %gconf_schema_install
299
300 %postun calendar -p /sbin/ldconfig
301
302 %files -f evolution.lang
303 %defattr(644,root,root,755)
304 %doc AUTHORS ChangeLog NEWS* README
305 %attr(755,root,root) %{_bindir}/*
306 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeconduit.so.*
307 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libemiscwidgets.so.*
308 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeselectnames.so.*
309 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeshell.so.*
310 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libeutil.so.*
311 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-a11y.so.*
312 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-importer.so.*
313 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-widgets-a11y.so.*
314 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-alarm-notify
315 %attr(755,root,root) %{_libdir}/evolution/%{mver}/killev
316 # addressbook requires it:
317 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libcamel*.so.*
318 %dir %{_libdir}/evolution
319 %dir %{_libdir}/evolution/%{mver}
320 %dir %{_libdir}/evolution/%{mver}/components
321 %{_libdir}/bonobo/servers/GNOME_Evolution_Shell_1.5.server
322 %dir %{_datadir}/idl/evolution-%{mver}
323 %dir %{_datadir}/evolution
324 %dir %{_datadir}/evolution/%{mver}
325 %dir %{_datadir}/evolution/%{mver}/views
326 %{_datadir}/evolution/%{mver}/*.xml
327 %dir %{_datadir}/evolution/%{mver}/default
328 %dir %{_datadir}/evolution/%{mver}/default/C
329 %{_datadir}/evolution/%{mver}/errors
330 %{_datadir}/evolution/%{mver}/etspec
331 %{_datadir}/evolution/%{mver}/glade
332 %{_datadir}/evolution/%{mver}/help
333 %{_datadir}/evolution/%{mver}/images
334 %{_datadir}/evolution/%{mver}/ui
335 %{_datadir}/mime-info/*
336 %{_datadir}/idl/evolution-%{mver}/Evolution-Component.idl
337 %{_datadir}/idl/evolution-%{mver}/Evolution-ConfigControl.idl
338 %{_datadir}/idl/evolution-%{mver}/Evolution-Offline.idl
339 %{_datadir}/idl/evolution-%{mver}/Evolution-Shell.idl
340 %{_datadir}/idl/evolution-%{mver}/Evolution-Wizard.idl
341 %{_datadir}/idl/evolution-%{mver}/Evolution-common.idl
342 %{_datadir}/idl/evolution-%{mver}/Evolution.idl
343 %{_datadir}/idl/evolution-%{mver}/GNOME_Evolution_Importer.idl
344 %{_desktopdir}/*
345 %{_pixmapsdir}/*
346 %{_sysconfdir}/gconf/schemas/apps_evolution_shell-1.5.schemas
347 %{_omf_dest_dir}/%{name}
348
349 %files devel
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so
352 %{_libdir}/evolution/%{mver}/*.la
353 %{_libdir}/evolution/*/*/*.la
354 %{_includedir}/*
355 %{_pkgconfigdir}/*
356
357 %files static
358 %defattr(644,root,root,755)
359 %{_libdir}/evolution/%{mver}/*.a
360
361 %files mail
362 %defattr(644,root,root,755)
363 %dir %{_libdir}/evolution/%{mver}/camel*
364 %dir %{_libdir}/evolution/%{mver}/evolution-calendar-importers
365 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-mail-importers.so*
366 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel/*
367 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-mail.so
368 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel-providers/*.so
369 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-calendar-importers/*.so
370 %{_libdir}/bonobo/servers/GNOME_Evolution_Mail_1.5.server
371 %{_libdir}/bonobo/servers/GNOME_Evolution_Mail_Importers_1.5.server
372 %{_libdir}/evolution/%{mver}/camel-providers/*.urls
373 %{_datadir}/evolution/%{mver}/views/mail*
374 %{_datadir}/evolution/%{mver}/default/C/mail
375 %{_datadir}/idl/evolution-%{mver}/Composer.idl
376 %{_datadir}/idl/evolution-%{mver}/Evolution-Composer.idl
377 %{_sysconfdir}/gconf/schemas/evolution-mail-1.5.schemas
378
379 %files addressbook
380 %defattr(644,root,root,755)
381 %dir %{_libdir}/evolution/%{mver}/evolution-addressbook-importers
382 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-clean
383 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-export
384 %attr(755,root,root) %{_libdir}/evolution/%{mver}/csv2vcard
385 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-addressbook.so
386 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-addressbook-a11y.so.*
387 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-importers/lib*.so
388 %{_libdir}/bonobo/servers/GNOME_Evolution_Addressbook*
389 %{_datadir}/evolution/%{mver}/views/addressbook*
390 %{_datadir}/evolution/%{mver}/ecps
391 %{_datadir}/idl/evolution-%{mver}/Evolution-Addressbook-SelectNames.idl
392 %{_sysconfdir}/gconf/schemas/apps_evolution_addressbook-1.5.schemas
393
394 %files calendar
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/evolution/%{mver}/components/libevolution-calendar.so
397 %attr(755,root,root) %{_libdir}/evolution/%{mver}/libevolution-calendar-a11y.so.*
398 %{_libdir}/bonobo/servers/GNOME_Evolution_Calendar*
399 %{_datadir}/evolution/%{mver}/views/calendar*
400 %{_datadir}/evolution/%{mver}/views/tasks*
401 %{_datadir}/idl/evolution-%{mver}/evolution-calendar.idl
402 %{_sysconfdir}/gconf/schemas/apps_evolution_calendar-1.5.schemas
403
404 %files pilot
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/evolution/%{mver}/conduits/*
407 %{_datadir}/gnome-pilot/conduits/*
This page took 0.064089 seconds and 4 git commands to generate.