]> git.pld-linux.org Git - packages/evolution.git/blob - evolution.spec
- BR: gnome-common (used in aclocal call)
[packages/evolution.git] / evolution.spec
1
2 #
3 # todo:
4 # - remove from *.pc files or make as shared libpcs and libpas
5 #   (not required or required by multisync pkg)
6 #
7
8 %bcond_without ldap
9
10 %define         mver            1.4
11 %define         subver  5
12 %define         _db3ver 3.1.17
13 %define         _dbdir  $RPM_BUILD_DIR/%{name}-%{version}/db3-headers-%{_db3ver}
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/%{name}/%{mver}/%{name}-%{version}.tar.bz2
25 # Source0-md5:  f16a86d6eaa9d9683f215586fcdac374
26 Source1:        http://www.t17.ds.pwr.wroc.pl/~wiget/%{name}-db3-headers-%{_db3ver}.tar.bz2
27 # Source1-md5:  6e5690aa2f0e5ec3e3bdfeb9106ea42a
28 Patch0:         %{name}-nostaticdb3.patch
29 Patch1:         %{name}-nolibs.patch
30 Patch2:         %{name}-configure_in.patch
31 Patch3:         %{name}-desktop.patch
32 Patch4:         %{name}-pldify.patch
33 URL:            http://www.ximian.com/products/ximian_evolution/
34 BuildRequires:  GConf2-devel
35 BuildRequires:  ORBit2-devel >= 2.7.5-1
36 BuildRequires:  autoconf
37 BuildRequires:  automake
38 BuildRequires:  bison
39 BuildRequires:  db3
40 BuildRequires:  flex
41 BuildRequires:  freetype-devel >= 2.0.5
42 BuildRequires:  gal-devel >= 1:1.99.9
43 BuildRequires:  gettext-devel
44 BuildRequires:  gnome-common
45 BuildRequires:  gnome-pilot-devel >= 2.0.0
46 BuildRequires:  gnome-vfs2-devel
47 BuildRequires:  gtk+2-devel
48 Buildrequires:  gtk-doc >= 0.6
49 BuildRequires:  gtkhtml-devel >= 3.0.8
50 BuildRequires:  intltool >= 0.18
51 BuildRequires:  libbonoboui-devel >= 2.3.3-2
52 BuildRequires:  libglade2-devel
53 BuildRequires:  libgnomecanvas-devel
54 BuildRequires:  libgnomeprintui-devel >= 2.2.1
55 BuildRequires:  libgnomeui-devel >= 2.3.3.1-2
56 BuildRequires:  libsoup-devel >= 1.99.23
57 BuildRequires:  libtool
58 BuildRequires:  libxml2
59 BuildRequires:  nspr-devel
60 BuildRequires:  nss-devel
61 %{?with_ldap:BuildRequires:     openldap-devel >= 2.0.0}
62 BuildRequires:  openssl-devel >= 0.9.7c
63 BuildRequires:  pilot-link-devel >= 0.11.4
64 BuildRequires:  pkgconfig
65 BuildRequires:  psmisc
66 BuildRequires:  python
67 BuildRequires:  scrollkeeper >= 0.1.4
68 Requires(post,postun):  /sbin/ldconfig
69 Requires(post,postun):  /usr/bin/scrollkeeper-update
70 Requires(post):         GConf2
71 Requires:       GConf2
72 Requires:       bonobo-activation
73 Requires:       db3 = %{_db3ver}
74 Requires:       gal >= 1:1.99.9
75 Requires:       gtkhtml >= 3.0.8
76 Requires:       libglade2
77 Requires:       psmisc
78 Requires:       scrollkeeper >= 0.1.4
79 Obsoletes:      evolution2
80 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82 %description
83 Evolution is the GNOME2 mailer, calendar, contact manager and
84 communications tool. The tools which make up Evolution will be tightly
85 integrated with one another and act as a seamless personal
86 information-management tool.
87
88 %description -l pl
89 Evolution to program pocztowy GNOME2, kalendarz, ksi±¿ka adresowa i
90 narzêdzie komunikacyjne.
91
92 %description -l pt_BR
93 Evolution é um cliente de email para o GNOME2 com calendário e outras
94 ferramentas interessantes.
95
96 %package devel
97 Summary:        Header files for evolution
98 Summary(pl):    Pliki nag³ówkowe i dokumentacja
99 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento
100 Summary(zh_CN): Evolution×é¼þ¿ª·¢¿â
101 Group:          Development/Libraries
102 Requires:       %{name} = %{version}
103 Requires:       cyrus-sasl-devel
104 Requires:       freetype-devel
105 Requires:       gal-devel >= 1:1.99.9
106 Requires:       gnome-vfs2-devel
107 Requires:       gtkhtml-devel >= 3.0.8
108 Requires:       libglade2-devel
109 Requires:       libgnomeprintui-devel >= 2.2.1
110 Requires:       libgnomeui-devel >= 2.3.3.1-2
111 Requires:       libsoup-devel
112 Requires:       nspr-devel
113 Requires:       nss-devel
114 %{?with_ldap:Requires:  openldap-devel}
115 Requires:       openssl-devel >= 0.9.7c
116 Obsoletes:      evolution2-devel
117
118 %description devel
119 This package contains the files necessary to develop applications
120 using Evolution's libraries.
121
122 %description devel -l pl
123 Pakiet zawiera pliki potrzebne do rozwoju aplikacji u¿ywaj±cych
124 bibliotek programu Evolution.
125
126 %description devel -l pt_BR
127 Este pacote contém os arquivos necessários para desenvolvimento de
128 aplicações utilizando as bibliotecas do Evolution.
129
130 %package static
131 Summary:        Static libraries for evolution
132 Summary(pl):    Biblioteki statyczne dla evolution
133 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento
134 Group:          Development/Libraries
135 Requires:       %{name}-devel = %{version}
136 Obsoletes:      evolution2-static
137
138 %description static
139 This package contains static libraries for Evolution.
140
141 %description static -l pl
142 Pakiet zawiera statyczne biblioteki Evolution.
143
144 %description static -l pt_BR
145 Este pacote contém as bibliotecas estáticas para desenvolvimento de
146 aplicações.
147
148 %package pilot
149 Summary:        Evolution conduits for gnome-pilot
150 Summary(pl):    Dodatki do wymiany danych z gnome-pilot
151 Group:          Development/Libraries
152 Requires:       %{name} = %{version}
153 Obsoletes:      evolution2-pilot
154
155 %description pilot
156 This package contains conduits needed by gnome-pilot to synchronize
157 your Palm with Evolution.
158
159 %description pilot -l pl
160 Ten pakiet zawiera dodatki do synchronizacji danych Evolution z
161 Palmem.
162
163 %prep
164 %setup -q -a1
165 %patch0 -p1
166 %patch1 -p1
167 %patch2 -p1
168 %patch3 -p1
169 %patch4 -p1
170
171 %build
172 rm -f missing
173 glib-gettextize --copy --force
174 intltoolize --copy --force
175 %{__libtoolize}
176 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
177 %{__autoheader}
178 %{__autoconf}
179 %{__automake}
180 cd libical
181 %{__libtoolize}
182 %{__aclocal}
183 %{__autoheader}
184 %{__autoconf}
185 # don't use -f here
186 automake -a -c --foreign
187 cd ..
188 %configure \
189         --enable-gtk-doc \
190         --enable-pilot-conduits=yes \
191         %{?with_ldap:--with-openldap=yes} \
192         %{!?with_ldap:--with-openldap=no} \
193         --without-static-ldap \
194         --enable-nntp=no \
195         --enable-file-locking=fcntl --enable-dot-locking=no \
196         --with-nspr-includes="%{_includedir}/nspr" \
197         --with-nss-includes="%{_includedir}/nss" \
198         --with-nspr-libs="%{_libdir}" \
199         --with-nss-libs="%{_libdir}" \
200         --enable-ipv6=yes \
201         --with-html-dir=%{_gtkdocdir} \
202         --with-db3-includes=%{_dbdir} \
203         --with-db3-libs=/lib \
204         --with-kde-applnk-path=no
205
206 # hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
207 # (required if you use ORBit2-devel 2.7.2)
208 find -name \*.idl -exec touch {} \;
209
210 %{__make} \
211         GTKHTML_DATADIR=%{_datadir}/idl
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215
216 %{__make} install \
217         DESTDIR=$RPM_BUILD_ROOT \
218         KDE_APPLNK_DIR=%{_applnkdir}/Network/Mail \
219         omf_dest_dir=%{_omf_dest_dir}/%{name} \
220         GTKHTML_DATADIR=%{_datadir}/idl
221
222 # strip doesn't pass these files and they aren't necessary, so remove them
223 # probably this should be done differently, but I have no idea
224 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/*/*.a
225 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/libemiscwidgets.a
226 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
227
228 %find_lang evolution-1.4 --with-gnome
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %post
234 /sbin/ldconfig
235 /usr/bin/scrollkeeper-update
236 %gconf_schema_install
237
238 %postun
239 /sbin/ldconfig
240 /usr/bin/scrollkeeper-update
241
242 %files -f evolution-1.4.lang
243 %defattr(644,root,root,755)
244 %doc AUTHORS ChangeLog NEWS* README
245 %attr(755,root,root) %{_bindir}/*
246 %attr(755,root,root) %{_libdir}/evolution/*/*/*.so*
247 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so.*
248 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel/*
249 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-alarm-notify
250 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-ldif-importer
251 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-vcard-importer
252 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-wombat
253 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-clean
254 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-import
255 %attr(755,root,root) %{_libdir}/evolution/%{mver}/csv2vcard
256 %attr(755,root,root) %{_libdir}/evolution/%{mver}/killev
257 %attr(755,root,root) %{_libdir}/evolution/%{mver}/load-*
258 %dir %{_libdir}/evolution
259 %dir %{_libdir}/evolution/%{mver}
260 %dir %{_libdir}/evolution/%{mver}/camel*
261 %dir %{_libdir}/evolution/%{mver}/components
262 %dir %{_libdir}/evolution/%{mver}/evolution-mail-importers
263 %{_libdir}/bonobo/servers/*
264 %{_libdir}/evolution/%{mver}/camel-providers/*.urls
265 %dir %{_datadir}/evolution
266 %dir %{_datadir}/evolution/%{mver}
267 %{_datadir}/evolution/%{mver}/*.xml
268 %{_datadir}/evolution/%{mver}/*.schema
269 %{_datadir}/evolution/%{mver}/Locations
270 %{_datadir}/evolution/%{mver}/default_user
271 %{_datadir}/evolution/%{mver}/ecps
272 %{_datadir}/evolution/%{mver}/etspec
273 %{_datadir}/evolution/%{mver}/glade
274 %{_datadir}/evolution/%{mver}/images
275 %{_datadir}/evolution/%{mver}/ui
276 %{_datadir}/evolution/%{mver}/views
277 %{_datadir}/evolution/%{mver}/zoneinfo
278 %{_datadir}/mime-info/*
279 %{_datadir}/idl/*
280 %{_desktopdir}/*
281 %{_pixmapsdir}/*
282 %{_sysconfdir}/gconf/schemas/*
283 %{_omf_dest_dir}/%{name}
284
285 %files devel
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so
288 %{_libdir}/evolution/%{mver}/*.la
289 %{_libdir}/evolution/*/*/*.la
290 %{_includedir}/*
291 %{_pkgconfigdir}/*
292
293 %files static
294 %defattr(644,root,root,755)
295 %{_libdir}/evolution/%{mver}/*.a
296
297 %files pilot
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/gnome-pilot/conduits/*
300 %{_datadir}/gnome-pilot/conduits/*
This page took 0.079574 seconds and 4 git commands to generate.