comparison pidgin.spec.in @ 16267:359a12f31098

- Fix pkgconfig Requires - Add ldconfig in pre/post scripts for libpurple & finch - Bump Epoch to 2 because Fedora unfortunately forgot to drop the Epoch during the rename :(
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 20 Apr 2007 00:12:15 +0000
parents a9c75536f0c9
children eae8f64218ba
comparison
equal deleted inserted replaced
16266:a9c75536f0c9 16267:359a12f31098
16 16
17 Summary: A GTK+ based multiprotocol instant messaging client 17 Summary: A GTK+ based multiprotocol instant messaging client
18 Name: @PACKAGE@ 18 Name: @PACKAGE@
19 Version: %pidginver 19 Version: %pidginver
20 Release: 0%{?beta:.beta%{beta}} 20 Release: 0%{?beta:.beta%{beta}}
21 Epoch: 0 21 Epoch: 2
22 License: GPL 22 License: GPL
23 Group: Applications/Internet 23 Group: Applications/Internet
24 URL: http://pidgin.im/ 24 URL: http://pidgin.im/
25 Source: %{name}-@VERSION@.tar.bz2 25 Source: %{name}-@VERSION@.tar.bz2
26 BuildRoot: %{_tmppath}/%{name}-%{version}-root 26 BuildRoot: %{_tmppath}/%{name}-%{version}-root
70 Obsoletes: gaim 70 Obsoletes: gaim
71 71
72 %package devel 72 %package devel
73 Summary: Development headers, documentation, and libraries for Pidgin 73 Summary: Development headers, documentation, and libraries for Pidgin
74 Group: Applications/Internet 74 Group: Applications/Internet
75 Requires: pkgconfig, pidgin = %{epoch}:%{version}, libpurple-devel = %{epoch}:%{version} 75 Requires: pidgin = %{epoch}:%{version}, libpurple-devel = %{epoch}:%{version}
76 Requires: pkgconfig
76 Obsoletes: gaim-devel 77 Obsoletes: gaim-devel
77 78
78 %package -n libpurple 79 %package -n libpurple
79 Summary: libpurple library for IM clients like Pidgin and Finch 80 Summary: libpurple library for IM clients like Pidgin and Finch
80 Group: Applications/Internet 81 Group: Applications/Internet
84 85
85 %package -n libpurple-devel 86 %package -n libpurple-devel
86 Summary: Development headers, documentation, and libraries for libpurple 87 Summary: Development headers, documentation, and libraries for libpurple
87 Group: Applications/Internet 88 Group: Applications/Internet
88 Requires: libpurple = %{epoch}:%{version} 89 Requires: libpurple = %{epoch}:%{version}
90 Requires: pkgconfig
89 91
90 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 92 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
91 %package -n libpurple-bonjour 93 %package -n libpurple-bonjour
92 Summary: Bonjour plugin for Pidgin 94 Summary: Bonjour plugin for Pidgin
93 Group: Applications/Internet 95 Group: Applications/Internet
116 118
117 %package -n finch-devel 119 %package -n finch-devel
118 Summary: Headers etc. for finch stuffs 120 Summary: Headers etc. for finch stuffs
119 Group: Applications/Internet 121 Group: Applications/Internet
120 Requires: finch = %{epoch}:%{version}, libpurple-devel = %{epoch}:%{version} 122 Requires: finch = %{epoch}:%{version}, libpurple-devel = %{epoch}:%{version}
123 Requires: pkgconfig
121 %endif 124 %endif
122 125
123 %description 126 %description
124 Pidgin allows you to talk to anyone using a variety of messaging 127 Pidgin allows you to talk to anyone using a variety of messaging
125 protocols including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu, 128 protocols including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu,
293 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 296 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
294 gconftool-2 --makefile-install-rule \ 297 gconftool-2 --makefile-install-rule \
295 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 298 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
296 killall -HUP gconfd-2 || : 299 killall -HUP gconfd-2 || :
297 fi 300 fi
298 /sbin/ldconfig 301
302 %post -n libpurple -p /sbin/ldconfig
303
304 %post -n finch -p /sbin/ldconfig
299 305
300 %preun 306 %preun
301 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then 307 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then
302 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 308 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
303 gconftool-2 --makefile-uninstall-rule \ 309 gconftool-2 --makefile-uninstall-rule \
304 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 310 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
305 killall -HUP gconfd-2 || : 311 killall -HUP gconfd-2 || :
306 fi 312 fi
307 313
308 %postun -p /sbin/ldconfig 314 %postun -n libpurple -p /sbin/ldconfig
315
316 %postun -n finch -p /sbin/ldconfig
309 317
310 %files -f %{name}-%{version}-pidginplugins 318 %files -f %{name}-%{version}-pidginplugins
311 %defattr(-, root, root) 319 %defattr(-, root, root)
312 320
313 %doc AUTHORS 321 %doc AUTHORS
423 %{_libdir}/libgnt.so 431 %{_libdir}/libgnt.so
424 432
425 %endif 433 %endif
426 434
427 %changelog 435 %changelog
436 * Thu Apr 19 2007 Stu Tomlinson <stu@nosnilmot.com>
437 - Fix pkgconfig Requires
438 - Add ldconfig in pre/post scripts for libpurple & finch
439 - Bump Epoch to 2 because Fedora unfortunately forgot to drop the Epoch
440 during the rename :(
441
428 * Tue Apr 17 2007 Stu Tomlinson <stu@nosnilmot.com> 442 * Tue Apr 17 2007 Stu Tomlinson <stu@nosnilmot.com>
429 - Add some Obsolete:s to help upgrades 443 - Add some Obsolete:s to help upgrades
430 - Remove explicit Packager: %%{packager} from spec, it was redundant 444 - Remove explicit Packager: %%{packager} from spec, it was redundant
431 445
432 * Sun Apr 15 2007 Stu Tomlinson <stu@nosnilmot.com> 446 * Sun Apr 15 2007 Stu Tomlinson <stu@nosnilmot.com>