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