1 # 2 # # spec file for package SUNWgnome-im-client 3 # 4 # includes module(s): pidgin, pidgin-otr, libotr 5 # 6 # Copyright 2008 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 # Owner: rickju 11 # 12 %include Solaris.inc 13 14 %use pidgin = pidgin.spec 15 %use libotr = libotr.spec 16 %use pidginotr = pidgin-otr.spec 17 18 Name: SUNWgnome-im-client 19 Summary: GNOME multi-protocol instant messaging client 20 Version: %{default_pkg_version} 21 Source: %{name}-manpages-0.1.tar.gz 22 SUNW_BaseDir: %{_basedir} 23 SUNW_Copyright: %{name}.copyright 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 26 %include default-depend.inc 27 Requires: SUNWgnome-base-libs 28 Requires: SUNWgnome-libs 29 Requires: SUNWPython 30 Requires: SUNWbash 31 Requires: SUNWdbus 32 Requires: SUNWevolution-data-server 33 Requires: SUNWgnome-component 34 Requires: SUNWgnome-libs 35 Requires: SUNWgnutls 36 Requires: SUNWlibms 37 Requires: SUNWperl584core 38 Requires: SUNWpostrun 39 Requires: SUNWgnome-media 40 Requires: SUNWavahi-bridge-dsd 41 Requires: SUNWsqlite3 42 Requires: SUNWpr 43 Requires: SUNWtls 44 BuildRequires: SUNWPython-devel 45 BuildRequires: SUNWdbus-devel 46 BuildRequires: SUNWevolution-data-server-devel 47 BuildRequires: SUNWgnome-component-devel 48 BuildRequires: SUNWgnome-libs-devel 49 BuildRequires: SUNWgnutls-devel 50 BuildRequires: SUNWgnome-base-libs-devel 51 BuildRequires: SUNWgnome-libs-devel 52 BuildRequires: SUNWgnome-media-devel 53 BuildRequires: SUNWavahi-bridge-dsd-devel 54 BuildRequires: SUNWsqlite3 55 BuildRequires: SUNWpr 56 BuildRequires: SUNWtls 57 58 %package root 59 Summary: %{summary} - / filesystem 60 SUNW_BaseDir: / 61 %include default-depend.inc 62 Requires: SUNWpostrun-root 63 Requires: SUNWgnome-config 64 65 %package devel 66 Summary: %{summary} - development files 67 SUNW_BaseDir: %{_basedir} 68 %include default-depend.inc 69 Requires: %name 70 Requires: SUNWgnome-base-libs 71 72 %if %build_l10n 73 %package l10n 74 Summary: %{summary} - l10n files 75 SUNW_BaseDir: %{_basedir} 76 %include default-depend.inc 77 Requires: %{name} 78 %endif 79 80 %prep 81 rm -rf %name-%version 82 mkdir %name-%version 83 %pidgin.prep -d %name-%version 84 %libotr.prep -d %name-%version 85 %pidginotr.prep -d %name-%version 86 cd %{_builddir}/%name-%version 87 gzcat %SOURCE0 | tar xf - 88 89 %build 90 %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} 91 export PKG_CONFIG_PATH=../pidgin-%{pidgin.version}/libpurple:../pidgin-%{pidgin.version}:%{_pkg_config_path} 92 export CFLAGS="%optflags -DHAVE_ALLOCA_H" 93 export RPM_OPT_FLAGS="$CFLAGS" 94 export LDFLAGS="%_ldflags" 95 %pidgin.build -d %name-%version 96 %libotr.build -d %name-%version 97 export ACLOCAL_FLAGS="-I %{_builddir}/%name-%version/libotr-%{libotr.version}" 98 export CFLAGS="$CFLAGS -I %{_builddir}/%name-%version/libotr-%{libotr.version}/my_build_tmp" 99 export RPM_OPT_FLAGS="$CFLAGS" 100 export LDFLAGS="$LDFLAGS -L%{_builddir}/%name-%version/libotr-%{libotr.version}/src/.libs -lotr" 101 export LIBOTR_BLD_DIR=%{_builddir}/%name-%version/libotr-%{libotr.version} 102 %pidginotr.build -d %name-%version 103 104 %install 105 %pidgin.install -d %name-%version 106 %libotr.install -d %name-%version 107 %pidginotr.install -d %name-%version 108 109 # Delete .a and .la files. 110 rm $RPM_BUILD_ROOT%{_libdir}/*.a 111 rm $RPM_BUILD_ROOT%{_libdir}/*.la 112 rm $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la 113 114 %if %build_l10n 115 %else 116 # REMOVE l10n FILES 117 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 118 %endif 119 120 # install man page 121 rm -rf $RPM_BUILD_ROOT%{_mandir} 122 cd %{_builddir}/%name-%version/sun-manpages 123 make install DESTDIR=$RPM_BUILD_ROOT 124 125 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 126 127 %clean 128 rm -rf $RPM_BUILD_ROOT 129 130 %post 131 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 132 echo '/usr/bin/update-desktop-database' 133 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 134 135 %postun 136 test -x $BASEDIR/lib/postrun || exit 0 137 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 138 echo '/usr/bin/update-desktop-database' 139 ) | $BASEDIR/lib/postrun -b -u -c JDS 140 141 %post root 142 %include gconf-install.script 143 144 %preun root 145 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 146 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 147 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 148 echo ' exit 0'; 149 echo '}'; 150 echo 'umask 0022'; 151 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 152 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 153 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 154 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 155 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 156 echo 'schemas="$SDIR/gaim.schemas"'; 157 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 158 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 159 160 %files 161 %defattr (-, root, bin) 162 %dir %attr (0755, root, bin) %{_bindir} 163 %{_bindir}/* 164 %dir %attr (0755, root, bin) %{_libdir} 165 %{_libdir}/*.so* 166 %{_libdir}/pidgin/*.so* 167 %{_libdir}/purple-2/*.so* 168 %attr(755, root, bin) %{perl_vendorarch}/Pidgin.pm 169 %attr(755, root, bin) %{perl_vendorarch}/Purple.pm 170 %attr(755, root, bin) %{perl_vendorarch}/auto/Pidgin 171 %attr(755, root, bin) %{perl_vendorarch}/auto/Purple 172 %dir %attr (0755, root, sys) %{_datadir} 173 %dir %attr (0755, root, other) %{_datadir}/applications 174 %{_datadir}/applications/* 175 %dir %attr (0755, root, other) %{_datadir}/pixmaps 176 %{_datadir}/pixmaps/* 177 %{_datadir}/sounds 178 %dir %attr (-, root, other) %{_datadir}/icons 179 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 180 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 181 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 182 %{_datadir}/icons/hicolor/16x16/apps/pidgin.* 183 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 184 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 185 %{_datadir}/icons/hicolor/22x22/apps/pidgin.* 186 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 187 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 188 %{_datadir}/icons/hicolor/24x24/apps/pidgin.* 189 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 190 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 191 %{_datadir}/icons/hicolor/32x32/apps/pidgin.* 192 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 193 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 194 %{_datadir}/icons/hicolor/48x48/apps/pidgin.* 195 %dir %attr(0755, root, bin) %{_mandir} 196 %dir %attr(0755, root, bin) %{_mandir}/man1 197 %dir %attr(0755, root, bin) %{_mandir}/man3 198 %{_mandir}/man1/* 199 %{_mandir}/man3/* 200 %doc pidgin-%{pidgin.version}/COPYRIGHT 201 %doc(bzip2) pidgin-%{pidgin.version}/COPYING 202 %doc pidgin-%{pidgin.version}/ChangeLog 203 %doc pidgin-%{pidgin.version}/README 204 %doc(bzip2) pidgin-otr-%{pidginotr.version}/COPYING 205 %doc pidgin-otr-%{pidginotr.version}/ChangeLog 206 %doc pidgin-otr-%{pidginotr.version}/README 207 %doc pidgin-otr-%{pidginotr.version}/NEWS 208 %doc pidgin-otr-%{pidginotr.version}/AUTHORS 209 %doc(bzip2) libotr-%{libotr.version}/COPYING 210 %doc(bzip2) libotr-%{libotr.version}/COPYING.LIB 211 %doc libotr-%{libotr.version}/ChangeLog 212 %doc libotr-%{libotr.version}/README 213 %doc libotr-%{libotr.version}/NEWS 214 %doc libotr-%{libotr.version}/AUTHORS 215 %dir %attr (0755, root, other) %{_datadir}/doc 216 217 %files root 218 %defattr(-, root, sys) 219 %attr(0755, root, sys) %dir %{_sysconfdir} 220 %{_sysconfdir}/gconf/schemas/purple.schemas 221 222 %files devel 223 %defattr (-, root, bin) 224 %dir %attr (0755, root, bin) %{_libdir} 225 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 226 %{_libdir}/pkgconfig/* 227 %dir %attr (0755, root, bin) %{_includedir} 228 %{_includedir}/pidgin 229 %{_includedir}/libpurple 230 %{_includedir}/libotr 231 %dir %attr (0755, root, sys) %{_datadir} 232 %dir %attr (0755, root, other) %{_datadir}/aclocal 233 %{_datadir}/aclocal/* 234 235 %if %build_l10n 236 %files l10n 237 %defattr (-, root, bin) 238 %dir %attr (0755, root, sys) %{_datadir} 239 %attr (-, root, other) %{_datadir}/locale 240 %endif 241 242 %changelog 243 * Fri Aug 01 2008 - christian.kelly@sun.com 244 - Correct %files: add in man3 entries 245 * Thu Jul 23 2008 - damien.carbery@sun.com 246 - Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to 247 track for ARC and Legal reviews. 248 * Wed May 21 2008 - damien.carbery@sun.com 249 - Add Build/Requires SUNWsqlite3, SUNWpr and SUNWtls to fix #6703993. 250 * Fri Mar 07 2008 - rick.ju@sun.com 251 - add SUNWavahi-bridge-dsd dependency 252 * Thu Jan 3 2008 - laca@sun.com 253 - use gconf-install.script instead of an inline script 254 * Thu Dec 06 2007 - rick.ju@sun.com 255 - %files changed to bump to pidgin 2.3.0 256 * Tue Nov 16 2007 - rick.ju@sun.com 257 - Use SGML man page instead of the one from community 258 * Tue Nov 06 2007 - rick.ju@sun.com 259 - Add ../pidgin-%{pidgin.version}/libpurple to PKG_CONFIG_PATH so that 260 pidgin-otr can find the libpurple libraries during build. 261 * Fri Nov 02 2007 - rick.ju@sun.com 262 remove SUNWavahi-bridge-dsd dependency 263 * Wed Oct 10 2007 - damien.carbery@sun.com 264 - Update Build/Requires after running check-deps.pl script. 265 * Fri Sep 28 2007 - laca@sun.com 266 - delete some unnecessary env variables 267 * Wed Aug 22 2007 - damien.carbery@sun.com 268 - Update %files for new pidgin tarball. 269 * Fri Jun 01 2007 - damien.carbery@sun.com 270 - Set %attr for %{datadir}/icons dirs. 271 * Tue May 30 2007 - rick.ju@sun.com 272 - bump to pidgin 2.0.1 273 * Tue Apr 24 2007 - laca@sun.com 274 - s/0755/-/ in defattr so that files are not made all executable 275 * Fri Feb 9 2007 - damien.carbery@sun.com 276 - After a review, remove code that made unnecessary copy of $RPM_BUILD_ROOT 277 before installing second module in this spec file. 278 * Wed Feb 7 2007 - rick.ju@sun.com 279 - Fixed an install issue (copy $RPM_BUILD_ROOT before %gaimotr.install. 280 * Mon Feb 5 2007 - damien.carbery@sun.com 281 - Add Build/Requires SUNWgnome-media/-devel after check-deps.pl run. 282 * Wed Jan 17 2007 - rick.ju@sun.com 283 - Add gaim-otr.spec. 284 * Fri May 12 2006 - damien.carbery@sun.com 285 - Updates for new tarball. Add 'root' package for the gaim.schemas file (and 286 %post/%preun scripts too). Remove %{_datadir}/doc from %files as nothing is 287 installed there now. 288 * Mon Sep 04 2006 - Matt.Keenan@sun.com 289 - New Manpage tarball 290 * Fri Jul 14 2006 - laca@sun.com 291 - update %post/%postun/etc scripts to support diskless client setup, 292 part of 6448317 293 * Thu Jun 29 2006 - laca@sun.com 294 - update postrun scripts 295 * Sun Jun 11 2006 - laca@sun.com 296 - change group from other to bin/sys 297 * Fri May 12 2006 - damien.carbery@sun.com 298 - Small update to dependency list after check-deps.pl run. 299 * Thu May 11 2006 - brian.cameron@sun.com 300 - Move gaim-client-example to demo directory. 301 * Thu May 11 2006 - halton.huo@sun.com 302 - Merge -share pkg(s) into the base pkg(s). 303 * Wed May 10 2006 - brian.cameron@sun.com 304 - Now package gaim-notifications-example demo program. 305 * Mon Feb 20 2006 - damien.carbery@sun.com 306 - Complete update of Build/Requires after running check-deps.pl script. 307 * Thu Feb 16 2006 - damien.carbery@sun.com 308 - Update Build/Requires after running check-deps.pl script. 309 * Wed Jan 18 2006 - damien.carbery@sun.com 310 - Add devel files from 2.0.0beta1 tarball. 311 * Sat Dec 3 2005 - laca@sun.com 312 - add %post script that runs update-desktop-database 313 * Tue Nov 29 2005 - laca@sun.com 314 - remove javahelp stuff 315 * Thu Sep 15 2005 - laca@sun.com 316 - Define devel subpkg 317 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 318 - Added workaround fix for 6193354 319 * Wed Nov 3 2004 - damien.carbery@sun.com 320 - Add BuildRequires of SUNWgnome-javahelp-convert to get 321 javahelp-convert-install. 322 * Tue Oct 05 2004 - matt.keenan@sun.com 323 - Added localized help files to l10n %files section 324 * Sat Oct 02 2004 - laca@sun.com 325 - added %pkgbuild_postprocess 326 * Thu Sep 23 2004 - damien.carbery@sun.com 327 - Add BuildRequires of SUNWgnome-libs to get scrollkeeper-preinstall. 328 * Mon Sep 06 2004 - matt.keenan@sun.com 329 - Added javahelp to %files share 330 * Fri Sep 03 2004 - damien.carbery@sun.com 331 - Changes to support docs tarball added to gaim.spec. 332 * Mon Aug 23 2004 - laca@sun.com 333 - s/SUNWpl5u/SUNWperl584usr/ 334 * Mon Jul 12 2004 - damien.carbery@sun.com 335 - Unset perms for /usr/share/pixmaps and /usr/share/applications. 336 * Sat Jul 10 2004 - damien.carbery@sun.com 337 - Set perms for /usr/share/pixmaps and /usr/share/applications. 338 * Tue Jun 22 2004 - shirley.woo@sun.com 339 - changed install location to /usr/lib and /usr/bin 340 * Wed Jun 2 2004 - takao.fujiwara@sun.com 341 - Added %{_datadir}/locale to install l10n messages 342 * Wed Mar 24 2004 - brian.cameron@sun.com 343 - Added SGML man page integration 344 * Tue Mar 23 2004 - <laca@sun.com> 345 - add -DHAVE_ALLOCA_H to CFLAGS 346 * Fri Mar 05 2004 - <laca@sun.com> 347 - define PERL5LIB 348 * Wed Mar 03 2004 - <laca@sun.com> 349 - remove unnecessary env vars 350 - fix %files share 351 * Mon Mar 01 2004 - <laca@sun.com> 352 - set CFLAGS, LDFLAGS 353