comparison gaim.spec.in @ 14672:cf7e6b705d1a

[gaim-migrate @ 17418] Spec file updates: - We can build with internal gadugadu again now, so bring it back into the main package - Uninstall gconf schemas as necessary when upgrading or uninstalling - Fix building without text - Use %find_lang for locale files committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 01 Oct 2006 16:11:39 +0000
parents 1f46715c08d9
children 556a112ab6ca
comparison
equal deleted inserted replaced
14671:d347b09626ee 14672:cf7e6b705d1a
26 Source: %{name}-@VERSION@.tar.bz2 26 Source: %{name}-@VERSION@.tar.bz2
27 BuildRoot: %{_tmppath}/%{name}-%{version}-root 27 BuildRoot: %{_tmppath}/%{name}-%{version}-root
28 28
29 # Generic build requirements 29 # Generic build requirements
30 BuildRequires: libtool, pkgconfig, intltool, gettext 30 BuildRequires: libtool, pkgconfig, intltool, gettext
31 %{?_with_avahi:BuildRequires: avahi-compat-howl avahi-compat-howl-devel} 31 %{?_with_avahi:BuildRequires: avahi-compat-howl-devel}
32 %{?_with_dbus:BuildRequires: dbus-devel >= 0.35} 32 %{?_with_dbus:BuildRequires: dbus-devel >= 0.35}
33 %{?_with_gadugadu:BuildRequires: libgadu-devel}
34 %{!?_without_gstreamer:BuildRequires: gstreamer-devel} 33 %{!?_without_gstreamer:BuildRequires: gstreamer-devel}
35 %{!?_without_gtkspell:BuildRequires: gtkspell-devel} 34 %{!?_without_gtkspell:BuildRequires: gtkspell-devel}
36 %{?_with_howl:BuildRequires: howl-devel} 35 %{?_with_howl:BuildRequires: howl-devel}
37 %{?_with_meanwhile:BuildRequires: meanwhile-devel} 36 %{?_with_meanwhile:BuildRequires: meanwhile-devel}
38 %{?_with_mono:BuildRequires: mono-devel} 37 %{?_with_mono:BuildRequires: mono-devel}
62 %endif 61 %endif
63 %endif 62 %endif
64 63
65 # For some reason perl isn't always automatically detected as a requirement :( 64 # For some reason perl isn't always automatically detected as a requirement :(
66 Requires: perl 65 Requires: perl
66 # Gadu-Gadu support was split out temporarily
67 Provides: gaim-gadugadu = %{epoch}:%{version}-%{release}
67 68
68 %package devel 69 %package devel
69 Summary: Development headers, documentation, and libraries for Gaim. 70 Summary: Development headers, documentation, and libraries for Gaim.
70 Group: Applications/Internet 71 Group: Applications/Internet
71 Requires: pkgconfig, gaim = %{epoch}:%{version} 72 Requires: pkgconfig, gaim = %{epoch}:%{version}
72 73
73 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 74 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
74 %package bonjour 75 %package bonjour
75 Summary: Bonjour plugin for Gaim 76 Summary: Bonjour plugin for Gaim
76 Group: Applications/Internet
77 Requires: gaim = %{epoch}:%{version}
78 %endif
79
80 %if 0%{?_with_gadugadu:1}
81 %package gadugadu
82 Summary: Gadu-Gadu plugin for Gaim using the libgadu library
83 Group: Applications/Internet 77 Group: Applications/Internet
84 Requires: gaim = %{epoch}:%{version} 78 Requires: gaim = %{epoch}:%{version}
85 %endif 79 %endif
86 80
87 %if 0%{?_with_meanwhile:1} 81 %if 0%{?_with_meanwhile:1}
139 and plugins. 133 and plugins.
140 134
141 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 135 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
142 %description bonjour 136 %description bonjour
143 Bonjour plugin for Gaim. 137 Bonjour plugin for Gaim.
144 %endif
145
146 %if 0%{?_with_gadugadu:1}
147 %description gadugadu
148 Gadu-Gadu plugin for Gaim using the libgadu library.
149 %endif 138 %endif
150 139
151 %if 0%{?_with_meanwhile:1} 140 %if 0%{?_with_meanwhile:1}
152 %description meanwhile 141 %description meanwhile
153 Lotus Sametime plugin for Gaim using the Meanwhile library. 142 Lotus Sametime plugin for Gaim using the Meanwhile library.
197 %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \ 186 %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \
198 %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \ 187 %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \
199 %{?_with_sasl:--enable-cyrus-sasl} \ 188 %{?_with_sasl:--enable-cyrus-sasl} \
200 %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \ 189 %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \
201 %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \ 190 %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \
202 %{!?_with_tcl:--disable-tcl} 191 %{!?_with_tcl:--disable-tcl} \
192 %{?_without_text:--disable-consoleui}
203 193
204 make %{?_smp_mflags} 194 make %{?_smp_mflags}
205 195
206 %install 196 %install
207 rm -rf %{buildroot} 197 rm -rf %{buildroot}
208 %if 0%{?_with_perlmakehack} 198 %if 0%{?_with_perlmakehack:1}
209 make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \ 199 make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \
210 datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \ 200 datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \
211 libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \ 201 libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \
212 sysconfdir=%{buildroot}%{_sysconfdir} \ 202 sysconfdir=%{buildroot}%{_sysconfdir} \
213 install 203 install
220 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 210 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
221 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod 211 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
222 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' 212 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
223 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' 213 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
224 214
225 %if 0%{!?_with_gadugadu:1}
226 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libgg.so
227 %endif
228
229 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1} 215 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1}
230 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libbonjour.so 216 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libbonjour.so
231 %endif 217 %endif
232 218
233 %if 0%{!?_with_meanwhile:1} 219 %if 0%{!?_with_meanwhile:1}
245 231
246 %if 0%{!?_with_tcl:1} 232 %if 0%{!?_with_tcl:1}
247 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so 233 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so
248 %endif 234 %endif
249 235
236 %if 0%{?_without_text:1}
237 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gaim-text.*
238 rm -f $RPM_BUILD_ROOT%{_bindir}/gaim-text
239 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/gntgf.so
240 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/gnthistory.so
241 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/s.so
242 rm -f $RPM_BUILD_ROOT%{_libdir}/libgnt.so.*
243 %endif
244
245 %find_lang %{name}
250 246
251 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ 247 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \
252 sed "s@^$RPM_BUILD_ROOT@@g" | \ 248 sed "s@^$RPM_BUILD_ROOT@@g" | \
253 grep -v /gntgf.so | \ 249 grep -v /gntgf.so | \
254 grep -v /gnthistory.so | \ 250 grep -v /gnthistory.so | \
255 grep -v /libbonjour.so | \ 251 grep -v /libbonjour.so | \
256 grep -v /libgg.so | \
257 grep -v /libsilcgaim.so | \ 252 grep -v /libsilcgaim.so | \
258 grep -v /libsametime.so | \ 253 grep -v /libsametime.so | \
259 grep -v /mono.so | \ 254 grep -v /mono.so | \
260 grep -v /s.so | \ 255 grep -v /s.so | \
261 grep -v /tcl.so | \ 256 grep -v /tcl.so | \
262 grep -v ".dll$" | \ 257 grep -v ".dll$" | \
263 grep -v ".tcl$" > %{name}-%{version}-coreplugins 258 grep -v ".tcl$" > %{name}-%{version}-coreplugins
264 259
260 # files -f file can only take one filename :(
261 cat %{name}.lang >> %{name}-%{version}-coreplugins
262
265 %clean 263 %clean
266 rm -rf %{buildroot} 264 rm -rf %{buildroot}
267 265
266 %pre
267 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then
268 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
269 gconftool-2 --makefile-uninstall-rule \
270 %{_sysconfdir}/gconf/schemas/gaim.schemas >/dev/null || :
271 killall -HUP gconfd-2 || :
272 fi
273
268 %post 274 %post
269 # Modified from the sample at: http://www.gnome.org/projects/gconf/ 275 if [ -n "`which gconftool-2 2>/dev/null`" ]; then
270 [ -n "`which gconftool-2 2>/dev/null`" ] && GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gaim.schemas > /dev/null 276 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
277 gconftool-2 --makefile-install-rule \
278 %{_sysconfdir}/gconf/schemas/gaim.schemas > /dev/null || :
279 killall -HUP gconfd-2 || :
280 fi
281
282 %preun
283 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then
284 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
285 gconftool-2 --makefile-uninstall-rule \
286 %{_sysconfdir}/gconf/schemas/gaim.schemas > /dev/null || :
287 killall -HUP gconfd-2 || :
288 fi
271 289
272 %files -f %{name}-%{version}-coreplugins 290 %files -f %{name}-%{version}-coreplugins
273 %defattr(-, root, root) 291 %defattr(-, root, root)
274 292
275 %doc AUTHORS 293 %doc AUTHORS
287 %dir %{_libdir}/gaim 305 %dir %{_libdir}/gaim
288 %attr(755, root, root) %{perl_vendorarch}/Gaim* 306 %attr(755, root, root) %{perl_vendorarch}/Gaim*
289 %attr(755, root, root) %{perl_vendorarch}/auto/Gaim 307 %attr(755, root, root) %{perl_vendorarch}/auto/Gaim
290 308
291 %{_bindir}/gaim 309 %{_bindir}/gaim
292 %{_bindir}/gaim-client-example
293 %{_bindir}/gaim-remote
294 %{_bindir}/gaim-send
295 %{_bindir}/gaim-send-async
296 %{_bindir}/gaim-url-handler
297 %{_datadir}/locale/*/*/*
298 %{_datadir}/pixmaps/* 310 %{_datadir}/pixmaps/*
299 %dir %{_datadir}/sounds/gaim 311 %dir %{_datadir}/sounds/gaim
300 %{_datadir}/sounds/gaim/* 312 %{_datadir}/sounds/gaim/*
301 %{_datadir}/applications/* 313 %{_datadir}/applications/*
302 %{_libdir}/libgaim.so.* 314 %{_libdir}/libgaim.so.*
303 %{_sysconfdir}/gconf/schemas/gaim.schemas 315 %{_sysconfdir}/gconf/schemas/gaim.schemas
304 316
305 %if 0%{?_with_dbus:1} 317 %if 0%{?_with_dbus:1}
318 %{_bindir}/gaim-client-example
319 %{_bindir}/gaim-remote
320 %{_bindir}/gaim-send
321 %{_bindir}/gaim-send-async
322 %{_bindir}/gaim-url-handler
306 %{_libdir}/libgaim-client.so.* 323 %{_libdir}/libgaim-client.so.*
307 %{_datadir}/dbus-1/services/gaim.service 324 %{_datadir}/dbus-1/services/gaim.service
308 %doc README.dbus 325 %doc README.dbus
309 %doc libgaim/gaim-notifications-example 326 %doc libgaim/gaim-notifications-example
310 %endif 327 %endif
337 %defattr(-, root, root) 354 %defattr(-, root, root)
338 355
339 %{_libdir}/gaim/libbonjour.* 356 %{_libdir}/gaim/libbonjour.*
340 %endif 357 %endif
341 358
342 %if 0%{?_with_gadugadu:1}
343 %files gadugadu
344 %defattr(-, root, root)
345
346 %{_libdir}/gaim/libgg.*
347 %endif
348
349 %if 0%{?_with_meanwhile:1} 359 %if 0%{?_with_meanwhile:1}
350 %files meanwhile 360 %files meanwhile
351 %defattr(-, root, root) 361 %defattr(-, root, root)
352 362
353 %{_libdir}/gaim/libsametime.* 363 %{_libdir}/gaim/libsametime.*
373 %defattr(-, root, root) 383 %defattr(-, root, root)
374 384
375 %{_libdir}/gaim/tcl.so 385 %{_libdir}/gaim/tcl.so
376 %endif 386 %endif
377 387
378 %if 0%{!?without_text:1} 388 %if 0%{!?_without_text:1}
379 %files text 389 %files text
380 %defattr(-, root, root) 390 %defattr(-, root, root)
381 391
382 %doc %{_mandir}/man1/gaim-text.* 392 %doc %{_mandir}/man1/gaim-text.*
383 %{_bindir}/gaim-text 393 %{_bindir}/gaim-text
386 %{_libdir}/gaim/s.so 396 %{_libdir}/gaim/s.so
387 %{_libdir}/libgnt.so.* 397 %{_libdir}/libgnt.so.*
388 %endif 398 %endif
389 399
390 %changelog 400 %changelog
401 * Sun Oct 1 2006 Stu Tomlinson <stu@nosnilmot.com>
402 - We can build with internal gadu gadu again, so bring it back into the
403 main package
404 - Deal with gconf schame uninstallation on package upgrade and removal
405
391 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com> 406 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com>
392 - Make the gstreamer-devel dependency overridable with '--without-gstreamer' 407 - Make the gstreamer-devel dependency overridable with '--without-gstreamer'
393 to allow building on older distributions without suitable gstreamer 408 to allow building on older distributions without suitable gstreamer
394 409
395 * Tue Aug 15 2006 Mark Doliner <thekingant@users.sourceforge.net> 410 * Tue Aug 15 2006 Mark Doliner <thekingant@users.sourceforge.net>