]> git.pld-linux.org Git - packages/evolution.git/blob - evolution.spec
- up to 1.4.5
[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-pilot-devel >= 2.0.0
45 BuildRequires:  gnome-vfs2-devel
46 BuildRequires:  gtk+2-devel
47 Buildrequires:  gtk-doc >= 0.6
48 BuildRequires:  gtkhtml-devel >= 3.0.8
49 BuildRequires:  intltool >= 0.18
50 BuildRequires:  libbonoboui-devel >= 2.3.3-2
51 BuildRequires:  libglade2-devel
52 BuildRequires:  libgnomecanvas-devel
53 BuildRequires:  libgnomeprintui-devel >= 2.2.1
54 BuildRequires:  libgnomeui-devel >= 2.3.3.1-2
55 BuildRequires:  libsoup-devel >= 1.99.23
56 BuildRequires:  libtool
57 BuildRequires:  libxml2
58 BuildRequires:  nspr-devel
59 BuildRequires:  nss-devel
60 %{?with_ldap:BuildRequires:     openldap-devel >= 2.0.0}
61 BuildRequires:  openssl-devel >= 0.9.7
62 BuildRequires:  pilot-link-devel >= 0.11.4
63 BuildRequires:  pkgconfig
64 BuildRequires:  psmisc
65 BuildRequires:  python
66 BuildRequires:  scrollkeeper >= 0.1.4
67 Requires(post,postun):  /sbin/ldconfig
68 Requires(post,postun):  /usr/bin/scrollkeeper-update
69 Requires(post):         GConf2
70 Requires:       GConf2
71 Requires:       bonobo-activation
72 Requires:       db3 = %{_db3ver}
73 Requires:       gal >= 1:1.99.9
74 Requires:       gtkhtml >= 3.0.8
75 Requires:       libglade2
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}
102 Requires:       cyrus-sasl-devel
103 Requires:       freetype-devel
104 Requires:       gal-devel >= 1:1.99.9
105 Requires:       gnome-vfs2-devel
106 Requires:       gtkhtml-devel >= 3.0.8
107 Requires:       libglade2-devel
108 Requires:       libgnomeprintui-devel >= 2.2.1
109 Requires:       libgnomeui-devel >= 2.3.3.1-2
110 Requires:       libsoup-devel
111 Requires:       nspr-devel
112 Requires:       nss-devel
113 %{?with_ldap:Requires:  openldap-devel}
114 Requires:       openssl-devel >= 0.9.7
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}
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 pilot
148 Summary:        Evolution conduits for gnome-pilot
149 Summary(pl):    Dodatki do wymiany danych z gnome-pilot
150 Group:          Development/Libraries
151 Requires:       %{name} = %{version}
152 Obsoletes:      evolution2-pilot
153
154 %description pilot
155 This package contains conduits needed by gnome-pilot to synchronize
156 your Palm with Evolution.
157
158 %description pilot -l pl
159 Ten pakiet zawiera dodatki do synchronizacji danych Evolution z
160 Palmem.
161
162 %prep
163 %setup -q -a1
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167 %patch3 -p1
168 %patch4 -p1
169
170 %build
171 rm -f missing
172 glib-gettextize --copy --force
173 intltoolize --copy --force
174 %{__libtoolize}
175 %{__aclocal} -I %{_aclocaldir}/gnome2-macros
176 %{__autoheader}
177 %{__autoconf}
178 %{__automake}
179 cd libical
180 %{__libtoolize}
181 %{__aclocal}
182 %{__autoheader}
183 %{__autoconf}
184 # don't use -f here
185 automake -a -c --foreign
186 cd ..
187 %configure \
188         --enable-gtk-doc \
189         --enable-pilot-conduits=yes \
190         %{?with_ldap:--with-openldap=yes} \
191         %{!?with_ldap:--with-openldap=no} \
192         --without-static-ldap \
193         --enable-nntp=no \
194         --enable-file-locking=fcntl --enable-dot-locking=no \
195         --with-nspr-includes="%{_includedir}/nspr" \
196         --with-nss-includes="%{_includedir}/nss" \
197         --with-nspr-libs="%{_libdir}" \
198         --with-nss-libs="%{_libdir}" \
199         --enable-ipv6=yes \
200         --with-html-dir=%{_gtkdocdir} \
201         --with-db3-includes=%{_dbdir} \
202         --with-db3-libs=/lib \
203         --with-kde-applnk-path=no
204
205 # hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
206 # (required if you use ORBit2-devel 2.7.2)
207 find -name \*.idl -exec touch {} \;
208
209 %{__make} \
210         GTKHTML_DATADIR=%{_datadir}/idl
211
212 %install
213 rm -rf $RPM_BUILD_ROOT
214
215 %{__make} install \
216         DESTDIR=$RPM_BUILD_ROOT \
217         KDE_APPLNK_DIR=%{_applnkdir}/Network/Mail \
218         omf_dest_dir=%{_omf_dest_dir}/%{name} \
219         GTKHTML_DATADIR=%{_datadir}/idl
220
221 # strip doesn't pass these files and they aren't necessary, so remove them
222 # probably this should be done differently, but I have no idea
223 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/*/*.a
224 rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/libemiscwidgets.a
225 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
226
227 %find_lang evolution-1.4 --with-gnome
228
229 %clean
230 rm -rf $RPM_BUILD_ROOT
231
232 %post
233 /sbin/ldconfig
234 /usr/bin/scrollkeeper-update
235 %gconf_schema_install
236
237 %postun
238 /sbin/ldconfig
239 /usr/bin/scrollkeeper-update
240
241 %files -f evolution-1.4.lang
242 %defattr(644,root,root,755)
243 %doc AUTHORS ChangeLog NEWS* README
244 %attr(755,root,root) %{_bindir}/*
245 %attr(755,root,root) %{_libdir}/evolution/*/*/*.so*
246 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so.*
247 %attr(755,root,root) %{_libdir}/evolution/%{mver}/camel/*
248 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-alarm-notify
249 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-ldif-importer
250 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-vcard-importer
251 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-wombat
252 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-clean
253 %attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-addressbook-import
254 %attr(755,root,root) %{_libdir}/evolution/%{mver}/csv2vcard
255 %attr(755,root,root) %{_libdir}/evolution/%{mver}/killev
256 %attr(755,root,root) %{_libdir}/evolution/%{mver}/load-*
257 %dir %{_libdir}/evolution
258 %dir %{_libdir}/evolution/%{mver}
259 %dir %{_libdir}/evolution/%{mver}/camel*
260 %dir %{_libdir}/evolution/%{mver}/components
261 %dir %{_libdir}/evolution/%{mver}/evolution-mail-importers
262 %{_libdir}/bonobo/servers/*
263 %{_libdir}/evolution/%{mver}/camel-providers/*.urls
264 %dir %{_datadir}/evolution
265 %dir %{_datadir}/evolution/%{mver}
266 %{_datadir}/evolution/%{mver}/*.xml
267 %{_datadir}/evolution/%{mver}/*.schema
268 %{_datadir}/evolution/%{mver}/Locations
269 %{_datadir}/evolution/%{mver}/default_user
270 %{_datadir}/evolution/%{mver}/ecps
271 %{_datadir}/evolution/%{mver}/etspec
272 %{_datadir}/evolution/%{mver}/glade
273 %{_datadir}/evolution/%{mver}/images
274 %{_datadir}/evolution/%{mver}/ui
275 %{_datadir}/evolution/%{mver}/views
276 %{_datadir}/evolution/%{mver}/zoneinfo
277 %{_datadir}/mime-info/*
278 %{_datadir}/idl/*
279 %{_desktopdir}/*
280 %{_pixmapsdir}/*
281 %{_sysconfdir}/gconf/schemas/*
282 %{_omf_dest_dir}/%{name}
283
284 %files devel
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so
287 %{_libdir}/evolution/%{mver}/*.la
288 %{_libdir}/evolution/*/*/*.la
289 %{_includedir}/*
290 %{_pkgconfigdir}/*
291
292 %files static
293 %defattr(644,root,root,755)
294 %{_libdir}/evolution/%{mver}/*.a
295
296 %files pilot
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/gnome-pilot/conduits/*
299 %{_datadir}/gnome-pilot/conduits/*
This page took 0.042238 seconds and 4 git commands to generate.