Mercurial > pidgin.yaz
comparison pidgin.spec.in @ 17319:8a7238fb7905
explicit merge of 'dc4f2ee34039521ae6a198fe7d62f4dca8a84589'
and '9d8bc74c7c13474edcefafedd0af9020b27c9a2f'
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Wed, 30 May 2007 02:56:25 +0000 |
parents | 99a2add7c4f2 |
children | 58a286e231b7 |
comparison
equal
deleted
inserted
replaced
16747:496855295bd7 | 17319:8a7238fb7905 |
---|---|
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@ |
24 Source: %{name}-@VERSION@.tar.bz2 | 24 Source: %{name}-@VERSION@.tar.bz2 |
25 BuildRoot: %{_tmppath}/%{name}-%{version}-root | 25 BuildRoot: %{_tmppath}/%{name}-%{version}-root |
26 | 26 |
27 # Generic build requirements | 27 # Generic build requirements |
28 BuildRequires: libtool, pkgconfig, intltool, gettext, libxml2-devel | 28 BuildRequires: libtool, pkgconfig, intltool, gettext, libxml2-devel |
29 BuildRequires: gtk2-devel | |
30 | |
31 %{!?_without_startupnotification:BuildRequires: startup-notification-devel} | |
29 %{?_with_avahi:BuildRequires: avahi-compat-howl-devel} | 32 %{?_with_avahi:BuildRequires: avahi-compat-howl-devel} |
30 %{!?_without_gtkspell:BuildRequires: gtkspell-devel} | 33 %{!?_without_gtkspell:BuildRequires: gtkspell-devel} |
31 %{?_with_howl:BuildRequires: howl-devel} | 34 %{?_with_howl:BuildRequires: howl-devel} |
32 %{?_with_meanwhile:BuildRequires: meanwhile-devel} | 35 %{?_with_meanwhile:BuildRequires: meanwhile-devel} |
33 %{?_with_mono:BuildRequires: mono-devel} | 36 %{?_with_mono:BuildRequires: mono-devel} |
47 %endif | 50 %endif |
48 | 51 |
49 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?) | 52 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?) |
50 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva" | 53 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva" |
51 # For Mandrake/Mandriva: | 54 # For Mandrake/Mandriva: |
52 BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel | 55 BuildRequires: libnss3-devel, perl-devel |
53 Obsoletes: libgaim-remote0 | 56 Obsoletes: libgaim-remote0 |
57 %{!?_without_modularx:BuildRequires: libsm-devel, libxscrnsaver-devel} | |
54 %else | 58 %else |
59 # For !Mandriva | |
60 %{!?_without_modularx:BuildRequires: libSM-devel, libXScrnSaver-devel} | |
55 # For SuSE, Red Hat, Fedora and others: | 61 # For SuSE, Red Hat, Fedora and others: |
56 BuildRequires: gtk2-devel | |
57 %if "%{_vendor}" != "suse" | 62 %if "%{_vendor}" != "suse" |
58 # For Red Hat, Fedora and others: | 63 # For Red Hat, Fedora and others: |
59 # let's assume RH & FC1 are the only brain-dead distros missing the | 64 # let's assume RH & FC1 are the only brain-dead distros missing the |
60 # perl-XML-Parser dependency on intltool and that other RH/FC releases | 65 # perl-XML-Parser dependency on intltool and that other RH/FC releases |
61 # don't care if we specify it here | 66 # don't care if we specify it here |
65 %endif | 70 %endif |
66 | 71 |
67 # For some reason perl isn't always automatically detected as a requirement :( | 72 # For some reason perl isn't always automatically detected as a requirement :( |
68 Requires: perl | 73 Requires: perl |
69 | 74 |
75 Requires(pre): GConf2 | |
76 Requires(post): GConf2 | |
77 Requires(preun): GConf2 | |
78 | |
70 Obsoletes: gaim | 79 Obsoletes: gaim |
71 Provides: gaim | 80 Provides: gaim |
72 | 81 |
73 %package devel | 82 %package devel |
74 Summary: Development headers, documentation, and libraries for Pidgin | 83 Summary: Development headers, documentation, and libraries for Pidgin |
82 Summary: libpurple library for IM clients like Pidgin and Finch | 91 Summary: libpurple library for IM clients like Pidgin and Finch |
83 Group: Applications/Internet | 92 Group: Applications/Internet |
84 Obsoletes: gaim-silc | 93 Obsoletes: gaim-silc |
85 Obsoletes: gaim-tcl | 94 Obsoletes: gaim-tcl |
86 Obsoletes: gaim-gadugadu | 95 Obsoletes: gaim-gadugadu |
96 Obsoletes: pidgin-tcl < 2.0.0 | |
97 Obsoletes: pidgin-silc < 2.0.0 | |
87 | 98 |
88 %package -n libpurple-devel | 99 %package -n libpurple-devel |
89 Summary: Development headers, documentation, and libraries for libpurple | 100 Summary: Development headers, documentation, and libraries for libpurple |
90 Group: Applications/Internet | 101 Group: Applications/Internet |
91 Requires: libpurple = %{version} | 102 Requires: libpurple = %{version} |
125 Requires: pkgconfig | 136 Requires: pkgconfig |
126 %endif | 137 %endif |
127 | 138 |
128 %description | 139 %description |
129 Pidgin allows you to talk to anyone using a variety of messaging | 140 Pidgin allows you to talk to anyone using a variety of messaging |
130 protocols including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu, | 141 protocols including AIM, MSN, Yahoo!, XMPP, Bonjour, Gadu-Gadu, |
131 ICQ, IRC, Novell Groupwise, QQ, Lotus Sametime, SILC, Simple and | 142 ICQ, IRC, Novell Groupwise, QQ, Lotus Sametime, SILC, Simple and |
132 Zephyr. These protocols are implemented using a modular, easy to | 143 Zephyr. These protocols are implemented using a modular, easy to |
133 use design. To use a protocol, just add an account using the | 144 use design. To use a protocol, just add an account using the |
134 account editor. | 145 account editor. |
135 | 146 |
147 %description -n libpurple | 158 %description -n libpurple |
148 libpurple contains the core IM support for IM clients such as Pidgin | 159 libpurple contains the core IM support for IM clients such as Pidgin |
149 and Finch. | 160 and Finch. |
150 | 161 |
151 libpurple supports a variety of messaging protocols including AIM, MSN, | 162 libpurple supports a variety of messaging protocols including AIM, MSN, |
152 Yahoo!, Jabber, Bonjour, Gadu-Gadu, ICQ, IRC, Novell Groupwise, QQ, | 163 Yahoo!, XMPP, Bonjour, Gadu-Gadu, ICQ, IRC, Novell Groupwise, QQ, |
153 Lotus Sametime, SILC, Simple and Zephyr. | 164 Lotus Sametime, SILC, Simple and Zephyr. |
154 | 165 |
155 %description -n libpurple-devel | 166 %description -n libpurple-devel |
156 The libpurple-devel package contains the header files, developer | 167 The libpurple-devel package contains the header files, developer |
157 documentation, and libraries required for development of libpurple based | 168 documentation, and libraries required for development of libpurple based |
225 %endif | 236 %endif |
226 | 237 |
227 # Delete files that we don't want to put in any of the RPMs | 238 # Delete files that we don't want to put in any of the RPMs |
228 rm -f $RPM_BUILD_ROOT%{_libdir}/finch/*.la | 239 rm -f $RPM_BUILD_ROOT%{_libdir}/finch/*.la |
229 rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la | 240 rm -f $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la |
230 rm -f $RPM_BUILD_ROOT%{_libdir}/purple/*.la | 241 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la |
231 rm -f $RPM_BUILD_ROOT%{_libdir}/purple/liboscar.so | 242 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/liboscar.so |
232 rm -f $RPM_BUILD_ROOT%{_libdir}/purple/libjabber.so | 243 rm -f $RPM_BUILD_ROOT%{_libdir}/purple-2/libjabber.so |
233 rm -f $RPM_BUILD_ROOT%{_libdir}/purple/private/*.la | |
234 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | 244 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
235 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod | 245 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
236 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' | 246 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
237 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' | 247 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' |
238 | 248 |
287 rm -rf %{buildroot} | 297 rm -rf %{buildroot} |
288 | 298 |
289 %pre | 299 %pre |
290 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then | 300 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then |
291 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | 301 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
292 gconftool-2 --makefile-uninstall-rule \ | 302 if [ -f %{_sysconfdir}/gconf/schemas/purple.schemas ]; then |
293 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || : | 303 gconftool-2 --makefile-uninstall-rule \ |
294 killall -HUP gconfd-2 || : | 304 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || : |
305 killall -HUP gconfd-2 &> /dev/null || : | |
306 fi | |
295 fi | 307 fi |
296 | 308 |
297 %post | 309 %post |
298 if [ -n "`which gconftool-2 2>/dev/null`" ]; then | 310 if [ -n "`which gconftool-2 2>/dev/null`" ]; then |
299 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | 311 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
300 gconftool-2 --makefile-install-rule \ | 312 gconftool-2 --makefile-install-rule \ |
301 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : | 313 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : |
302 killall -HUP gconfd-2 || : | 314 killall -HUP gconfd-2 &> /dev/null || : |
303 fi | 315 fi |
316 touch --no-create %{_datadir}/icons/hicolor || : | |
317 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : | |
304 | 318 |
305 %post -n libpurple -p /sbin/ldconfig | 319 %post -n libpurple -p /sbin/ldconfig |
306 | 320 |
307 %post -n finch -p /sbin/ldconfig | 321 %post -n finch -p /sbin/ldconfig |
308 | 322 |
309 %preun | 323 %preun |
310 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then | 324 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then |
311 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | 325 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
312 gconftool-2 --makefile-uninstall-rule \ | 326 gconftool-2 --makefile-uninstall-rule \ |
313 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : | 327 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : |
314 killall -HUP gconfd-2 || : | 328 killall -HUP gconfd-2 &> /dev/null || : |
315 fi | 329 fi |
330 | |
331 %postun | |
332 touch --no-create %{_datadir}/icons/hicolor || : | |
333 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : | |
316 | 334 |
317 %postun -n libpurple -p /sbin/ldconfig | 335 %postun -n libpurple -p /sbin/ldconfig |
318 | 336 |
319 %postun -n finch -p /sbin/ldconfig | 337 %postun -n finch -p /sbin/ldconfig |
320 | 338 |
429 %{_libdir}/libgnt.so | 447 %{_libdir}/libgnt.so |
430 | 448 |
431 %endif | 449 %endif |
432 | 450 |
433 %changelog | 451 %changelog |
452 * Thu May 24 2007 Stu Tomlinson <stu@nosnilmot.com> | |
453 - Silence errors from gtk-update-icon-cache | |
454 - Change Mandriva build dependencies to reflect the correct (lower case) | |
455 names for libSM-devel & libXScrnSaver-devel (Sunny Dubey) | |
456 | |
457 * Thu May 10 2007 Stu Tomlinson <stu@nosnilmot.com> | |
458 - Add scriptlet Requires for GConf2 to fix schema installation | |
459 - Silence harmless errors when gconfd-2 is not running at install time | |
460 | |
461 * Thu May 3 2007 Stu Tomlinson <stu@nosnilmot.com> | |
462 - Add missing BuildRequires: startup-notification-devel, if you really | |
463 need to build on a distro without it use --without startupnotification | |
464 - Add BuildRequires: libSM-devel, libXScrnSaver-devel for distros with | |
465 modular X. For those without, build with --without modularx | |
466 - Change Mandriva BuildRequires to gkt2-devel (reported by Götz Waschk) | |
467 | |
468 * Tue May 1 2007 Stu Tomlinson <stu@nosnilmot.com> | |
469 - Run gtk-update-icon-cache on installation/uninstallation | |
470 - Guard against errors when upgrading from Gaim/Pidgin 1.5.x which had | |
471 no schemas file | |
472 | |
434 * Sun Apr 29 2007 Stu Tomlinson <stu@nosnilmot.com> | 473 * Sun Apr 29 2007 Stu Tomlinson <stu@nosnilmot.com> |
435 - Update to reflect perl Purple::GtkUI -> Pidgin change | 474 - Update to reflect perl Purple::GtkUI -> Pidgin change |
436 | 475 |
437 * Wed Apr 25 2007 Stu Tomlinson <stu@nosnilmot.com> | 476 * Wed Apr 25 2007 Stu Tomlinson <stu@nosnilmot.com> |
438 - Update libpurple to pick up plugins in %%{_libdir}/purple | 477 - Update libpurple to pick up plugins in %%{_libdir}/purple |