comparison pidgin.spec.in @ 20409:7c0a2ef88018

propagate from branch 'im.pidgin.pidgin' (head cf7db89f6020ededb2d5c948c11c3fd0ef30bba5) to branch 'im.pidgin.cpw.khc.msnp14' (head 6875bbea39f4f9d8251516b02893429d347e3d82)
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 02 May 2007 06:12:13 +0000
parents 728785ce47b7
children 32c2a0c57ecc
comparison
equal deleted inserted replaced
20408:14b8fb8d27b3 20409:7c0a2ef88018
4 %{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} 4 %{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)}
5 5
6 # When not doing betas comment this out 6 # When not doing betas comment this out
7 # NOTE: %defines in spec files are evaluated in comments so the correct 7 # NOTE: %defines in spec files are evaluated in comments so the correct
8 # way to comment it out is to replace the % with # 8 # way to comment it out is to replace the % with #
9 #define beta 7 9 %define beta 7
10 10
11 %if 0%{?beta} 11 %if 0%{?beta}
12 %define pidginver %(echo "@VERSION@"|sed -e 's/dev//; s/beta.*//') 12 %define pidginver %(echo "@VERSION@"|sed -e 's/dev.*//; s/beta.*//')
13 %else 13 %else
14 %define pidginver @VERSION@ 14 %define pidginver @VERSION@
15 %endif 15 %endif
16 16
17 Summary: A GTK+ based multiprotocol instant messaging client 17 Summary: A GTK+ based multiprotocol instant messaging client
82 Summary: libpurple library for IM clients like Pidgin and Finch 82 Summary: libpurple library for IM clients like Pidgin and Finch
83 Group: Applications/Internet 83 Group: Applications/Internet
84 Obsoletes: gaim-silc 84 Obsoletes: gaim-silc
85 Obsoletes: gaim-tcl 85 Obsoletes: gaim-tcl
86 Obsoletes: gaim-gadugadu 86 Obsoletes: gaim-gadugadu
87 Obsoletes: pidgin-tcl < 2.0.0
88 Obsoletes: pidgin-silc < 2.0.0
87 89
88 %package -n libpurple-devel 90 %package -n libpurple-devel
89 Summary: Development headers, documentation, and libraries for libpurple 91 Summary: Development headers, documentation, and libraries for libpurple
90 Group: Applications/Internet 92 Group: Applications/Internet
91 Requires: libpurple = %{version} 93 Requires: libpurple = %{version}
225 %endif 227 %endif
226 228
227 # Delete files that we don't want to put in any of the RPMs 229 # Delete files that we don't want to put in any of the RPMs
228 rm -f $RPM_BUILD_ROOT%{_libdir}/finch/*.la 230 rm -f $RPM_BUILD_ROOT%{_libdir}/finch/*.la
229 rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la 231 rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la
230 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/*.la 232 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la
231 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/private/*.la 233 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/liboscar.so
234 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/libjabber.so
232 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 235 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
233 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod 236 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
234 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' 237 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
235 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' 238 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
236 239
237 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1} 240 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1}
238 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/libbonjour.so 241 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/libbonjour.so
239 %endif 242 %endif
240 243
241 %if 0%{!?_with_meanwhile:1} 244 %if 0%{!?_with_meanwhile:1}
242 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/libsametime.so 245 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/libsametime.so
243 %endif 246 %endif
244 247
245 %if 0%{!?_with_mono:1} 248 %if 0%{!?_with_mono:1}
246 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/mono.so 249 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/mono.so
247 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/*.dll 250 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.dll
248 %endif 251 %endif
249 252
250 %if 0%{?_without_silc:1} 253 %if 0%{?_without_silc:1}
251 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/libsilcpurple.so 254 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/libsilcpurple.so
252 %endif 255 %endif
253 256
254 %if 0%{?_without_tcl:1} 257 %if 0%{?_without_tcl:1}
255 rm -f $RPM_BUILD_ROOT%{_libdir}/libpurple/tcl.so 258 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/tcl.so
256 %endif 259 %endif
257 260
258 %if 0%{?_without_text:1} 261 %if 0%{?_without_text:1}
259 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/finch.* 262 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/finch.*
260 rm -rf $RPM_BUILD_ROOT%{_bindir}/finch 263 rm -rf $RPM_BUILD_ROOT%{_bindir}/finch
261 rm -f $RPM_BUILD_ROOT%{_libdir}/libgnt.so.* 264 rm -f $RPM_BUILD_ROOT%{_libdir}/libgnt.so.*
262 %endif 265 %endif
263 266
264 %find_lang %{name} 267 %find_lang %{name}
265 268
266 find $RPM_BUILD_ROOT%{_libdir}/libpurple -xtype f -print | \ 269 find $RPM_BUILD_ROOT%{_libdir}/purple-2 -xtype f -print | \
267 sed "s@^$RPM_BUILD_ROOT@@g" | \ 270 sed "s@^$RPM_BUILD_ROOT@@g" | \
268 grep -v /libbonjour.so | \ 271 grep -v /libbonjour.so | \
269 grep -v /libsametime.so | \ 272 grep -v /libsametime.so | \
270 grep -v /mono.so | \ 273 grep -v /mono.so | \
271 grep -v ".dll$" > %{name}-%{version}-purpleplugins 274 grep -v ".dll$" > %{name}-%{version}-purpleplugins
285 rm -rf %{buildroot} 288 rm -rf %{buildroot}
286 289
287 %pre 290 %pre
288 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then 291 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then
289 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 292 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
290 gconftool-2 --makefile-uninstall-rule \ 293 if [ -f %{_sysconfdir}/gconf/schemas/purple.schemas ]; then
291 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || : 294 gconftool-2 --makefile-uninstall-rule \
292 killall -HUP gconfd-2 || : 295 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || :
296 killall -HUP gconfd-2 || :
297 fi
293 fi 298 fi
294 299
295 %post 300 %post
296 if [ -n "`which gconftool-2 2>/dev/null`" ]; then 301 if [ -n "`which gconftool-2 2>/dev/null`" ]; then
297 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 302 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
298 gconftool-2 --makefile-install-rule \ 303 gconftool-2 --makefile-install-rule \
299 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 304 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
300 killall -HUP gconfd-2 || : 305 killall -HUP gconfd-2 || :
301 fi 306 fi
307 touch --no-create %{_datadir}/icons/hicolor || :
308 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
302 309
303 %post -n libpurple -p /sbin/ldconfig 310 %post -n libpurple -p /sbin/ldconfig
304 311
305 %post -n finch -p /sbin/ldconfig 312 %post -n finch -p /sbin/ldconfig
306 313
309 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 316 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
310 gconftool-2 --makefile-uninstall-rule \ 317 gconftool-2 --makefile-uninstall-rule \
311 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 318 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
312 killall -HUP gconfd-2 || : 319 killall -HUP gconfd-2 || :
313 fi 320 fi
321
322 %postun
323 touch --no-create %{_datadir}/icons/hicolor || :
324 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
314 325
315 %postun -n libpurple -p /sbin/ldconfig 326 %postun -n libpurple -p /sbin/ldconfig
316 327
317 %postun -n finch -p /sbin/ldconfig 328 %postun -n finch -p /sbin/ldconfig
318 329
329 %doc doc/the_penguin.txt 340 %doc doc/the_penguin.txt
330 %doc %{_mandir}/man1/pidgin.* 341 %doc %{_mandir}/man1/pidgin.*
331 %doc %{_mandir}/man3*/* 342 %doc %{_mandir}/man3*/*
332 343
333 %dir %{_libdir}/pidgin 344 %dir %{_libdir}/pidgin
334 %dir %{perl_vendorarch}/Purple 345 %attr(755, root, root) %{perl_vendorarch}/Pidgin.pm
335 %attr(755, root, root) %{perl_vendorarch}/Purple/* 346 %attr(755, root, root) %{perl_vendorarch}/auto/Pidgin
336 %attr(755, root, root) %{perl_vendorarch}/auto/Purple/GtkUI*
337 347
338 %{_bindir}/pidgin 348 %{_bindir}/pidgin
339 %{_datadir}/pixmaps/pidgin 349 %{_datadir}/pixmaps/pidgin
350 %{_datadir}/icons/hicolor/*/apps/pidgin.*
340 %dir %{_datadir}/sounds/pidgin 351 %dir %{_datadir}/sounds/pidgin
341 %{_datadir}/sounds/pidgin/* 352 %{_datadir}/sounds/pidgin/*
342 %{_datadir}/applications/* 353 %{_datadir}/applications/*
343 %{_sysconfdir}/gconf/schemas/purple.schemas 354 %{_sysconfdir}/gconf/schemas/purple.schemas
344 355
345 356
346 %files -f %{name}-%{version}-purpleplugins -n libpurple 357 %files -f %{name}-%{version}-purpleplugins -n libpurple
347 %defattr(-, root, root) 358 %defattr(-, root, root)
348 359
349 %{_libdir}/libpurple.so.* 360 %{_libdir}/libpurple.so.*
350 %dir %{_libdir}/libpurple 361 %dir %{_libdir}/purple-2
351 %attr(755, root, root) %{perl_vendorarch}/Purple.pm 362 %attr(755, root, root) %{perl_vendorarch}/Purple.pm
352 %dir %{perl_vendorarch}/auto/Purple 363 %attr(755, root, root) %{perl_vendorarch}/auto/Purple
353 %attr(755, root, root) %{perl_vendorarch}/auto/Purple/Purple.so
354 %attr(755, root, root) %{perl_vendorarch}/auto/Purple/autosplit.ix
355 364
356 %{_datadir}/pixmaps/purple 365 %{_datadir}/pixmaps/purple
357 366
358 %if 0%{?_with_dbus:1} 367 %if 0%{?_with_dbus:1}
359 %{_bindir}/purple-client-example 368 %{_bindir}/purple-client-example
360 %{_bindir}/purple-remote 369 %{_bindir}/purple-remote
361 %{_bindir}/purple-send 370 %{_bindir}/purple-send
362 %{_bindir}/purple-send-async 371 %{_bindir}/purple-send-async
363 %{_bindir}/purple-url-handler 372 %{_bindir}/purple-url-handler
364 %{_libdir}/libpurple-client.so.* 373 %{_libdir}/libpurple-client.so.*
365 %doc README.dbus
366 %doc libpurple/purple-notifications-example 374 %doc libpurple/purple-notifications-example
367 %endif 375 %endif
368 376
369 %files devel 377 %files devel
370 %defattr(-, root, root) 378 %defattr(-, root, root)
376 %defattr(-, root, root) 384 %defattr(-, root, root)
377 385
378 %doc ChangeLog.API 386 %doc ChangeLog.API
379 %doc HACKING 387 %doc HACKING
380 %doc PLUGIN_HOWTO 388 %doc PLUGIN_HOWTO
381 %doc PROGRAMMING_NOTES
382 389
383 %dir %{_includedir}/libpurple 390 %dir %{_includedir}/libpurple
384 %{_includedir}/libpurple/*.h 391 %{_includedir}/libpurple/*.h
385 %{_libdir}/libpurple.so 392 %{_libdir}/libpurple.so
386 %{_libdir}/pkgconfig/purple.pc 393 %{_libdir}/pkgconfig/purple.pc
392 399
393 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 400 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
394 %files -n libpurple-bonjour 401 %files -n libpurple-bonjour
395 %defattr(-, root, root) 402 %defattr(-, root, root)
396 403
397 %{_libdir}/libpurple/libbonjour.* 404 %{_libdir}/purple-2/libbonjour.*
398 %endif 405 %endif
399 406
400 %if 0%{?_with_meanwhile:1} 407 %if 0%{?_with_meanwhile:1}
401 %files -n libpurple-meanwhile 408 %files -n libpurple-meanwhile
402 %defattr(-, root, root) 409 %defattr(-, root, root)
403 410
404 %{_libdir}/libpurple/libsametime.* 411 %{_libdir}/purple-2/libsametime.*
405 %endif 412 %endif
406 413
407 %if 0%{?_with_mono:1} 414 %if 0%{?_with_mono:1}
408 %files libpurple-mono 415 %files libpurple-mono
409 %defattr(-, root, root) 416 %defattr(-, root, root)
410 417
411 %{_libdir}/libpurple/mono.so 418 %{_libdir}/purple-2/mono.so
412 %{_libdir}/libpurple/*.dll 419 %{_libdir}/purple-2/*.dll
413 %endif 420 %endif
414 421
415 %if 0%{!?_without_text:1} 422 %if 0%{!?_without_text:1}
416 %files -f %{name}-%{version}-finchplugins -n finch 423 %files -f %{name}-%{version}-finchplugins -n finch
417 %defattr(-, root, root) 424 %defattr(-, root, root)
431 %{_libdir}/libgnt.so 438 %{_libdir}/libgnt.so
432 439
433 %endif 440 %endif
434 441
435 %changelog 442 %changelog
443 * Tue May 1 2007 Stu Tomlinson <stu@nosnilmot.com>
444 - Run gtk-update-icon-cache on installation/uninstallation
445 - Guard against errors when upgrading from Gaim/Pidgin 1.5.x which had
446 no schemas file
447
448 * Sun Apr 29 2007 Stu Tomlinson <stu@nosnilmot.com>
449 - Update to reflect perl Purple::GtkUI -> Pidgin change
450
451 * Wed Apr 25 2007 Stu Tomlinson <stu@nosnilmot.com>
452 - Update libpurple to pick up plugins in %%{_libdir}/purple
453
436 * Sun Apr 22 2007 Stu Tomlinson <stu@nosnilmot.com> 454 * Sun Apr 22 2007 Stu Tomlinson <stu@nosnilmot.com>
437 - Remove Epoch because it's gone in Fedora now 455 - Remove Epoch because it's gone in Fedora now
438 - Add virtual provides for gaim & gaim-devel 456 - Add virtual provides for gaim & gaim-devel
439 457
440 * Thu Apr 19 2007 Stu Tomlinson <stu@nosnilmot.com> 458 * Thu Apr 19 2007 Stu Tomlinson <stu@nosnilmot.com>