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