1 # 2 # spec file for package SUNWgnome-display-mgr 3 # 4 # includes module(s): gdm 5 # 6 # Copyright 2009 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 %define owner yippi 11 # 12 %include Solaris.inc 13 14 %use gdm = gdm.spec 15 16 Name: SUNWgnome-display-mgr 17 Summary: GNOME display manager 18 Version: %{gdm.version} 19 Source: %{name}-manpages-0.1.tar.gz 20 Source1: gdm.xml 21 Source2: svc-gdm 22 # gdmdynamic is wrapper script for ck-seat-tool and ck-list-sessions. 23 # This script is for back compatible for SRSS. 24 # Should be removed when SRSS using ck-seat-tool and ck-list-sessions instead. 25 Source3: gdmdynamic 26 Source4: xterm.desktop 27 SUNW_BaseDir: %{_basedir} 28 SUNW_Copyright: %{name}.copyright 29 BuildRoot: %{_tmppath}/%{name}-%{version}-build 30 31 %include default-depend.inc 32 Requires: SUNWcairo 33 Requires: SUNWconsolekit 34 Requires: SUNWdbus-glib 35 Requires: SUNWdbus-libs 36 Requires: SUNWfontconfig 37 Requires: SUNWglib2 38 Requires: SUNWgnome-component 39 Requires: SUNWgnome-config 40 Requires: SUNWgnome-libs 41 Requires: SUNWgnome-panel 42 Requires: SUNWgtk2 43 Requires: SUNWlibglade 44 Requires: SUNWlibmsr 45 Requires: SUNWpango 46 Requires: SUNWxwplt 47 48 BuildRequires: SUNWcairo-devel 49 BuildRequires: SUNWconsolekit-devel 50 BuildRequires: SUNWdbus-glib-devel 51 BuildRequires: SUNWdbus-devel 52 BuildRequires: SUNWglib2-devel 53 BuildRequires: SUNWgnome-component-devel 54 BuildRequires: SUNWgnome-config-devel 55 BuildRequires: SUNWgnome-libs-devel 56 BuildRequires: SUNWgnome-panel-devel 57 BuildRequires: SUNWgtk2-devel 58 BuildRequires: SUNWlibglade-devel 59 BuildRequires: SUNWpango-devel 60 61 %package root 62 Summary: %{summary} - / filesystem 63 SUNW_BaseDir: / 64 %include default-depend.inc 65 66 %if %build_l10n 67 %package l10n 68 Summary: %{summary} - l10n files 69 SUNW_BaseDir: %{_basedir} 70 %include default-depend.inc 71 Requires: %{name} 72 %endif 73 74 %prep 75 rm -rf %name-%version 76 mkdir %name-%version 77 %gdm.prep -d %name-%version 78 cd %{_builddir}/%name-%version 79 gzcat %SOURCE0 | tar xf - 80 81 %build 82 export LDFLAGS="%_ldflags" 83 export PKG_CONFIG_PATH=%{_pkg_config_path} 84 export CFLAGS="%optflags" 85 export RPM_OPT_FLAGS="$CFLAGS" 86 87 %gdm.build -d %name-%version 88 89 %install 90 rm -rf $RPM_BUILD_ROOT 91 %gdm.install -d %name-%version 92 93 rm -rf $RPM_BUILD_ROOT%{_mandir} 94 cd %{_builddir}/%name-%version/sun-manpages 95 make install DESTDIR=$RPM_BUILD_ROOT 96 97 install -d $RPM_BUILD_ROOT/var/svc/manifest/application/graphical-login 98 install --mode=0444 %SOURCE1 $RPM_BUILD_ROOT/var/svc/manifest/application/graphical-login 99 install -d $RPM_BUILD_ROOT/lib/svc/method 100 cp %SOURCE2 $RPM_BUILD_ROOT/lib/svc/method/ 101 102 install --mode=0744 %SOURCE3 $RPM_BUILD_ROOT/%{_bindir}/ 103 104 # Install fail safe desktop 105 install -d $RPM_BUILD_ROOT/%{_datadir}/xsessions 106 install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT/%{_datadir}/xsessions/ 107 108 # Create the 'interface' directory so that user's session scripts can be 109 # run by gdm and which are populated by other applications. 110 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinitrc.d 111 112 %if %build_l10n 113 %else 114 # REMOVE l10n FILES 115 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 116 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/*help/*/[a-z]* 117 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/gdm/*-[a-z]*.omf 118 %endif 119 120 %clean 121 rm -rf $RPM_BUILD_ROOT 122 123 %post 124 %restart_fmri desktop-mime-cache icon-cache gconf-cache 125 126 %post root 127 cat >> $BASEDIR/var/svc/profile/upgrade <<\EOF 128 129 # We changed gdm's FMRI. If the old service exists and is enabled, 130 # disable it and enable the new one. 131 gdm=svc:/application/gdm2-login:default 132 if svcprop -q $gdm; then 133 set -- `svcprop -C -t -p general/enabled $gdm` 134 if [ $? -ne 0 ]; then 135 echo "Could not read whether $gdm was enabled." 136 elif [ $2 != boolean ]; then 137 echo "general/enabled property of $gdm has bad type." 138 elif [ $# -ne 3 ]; then 139 echo "general/enabled property of $gdm has the wrong number\c" 140 echo " of values." 141 elif [ $3 = true ]; then 142 svcadm disable $gdm 143 svcadm enable svc:/application/graphical-login/gdm:default 144 fi 145 fi 146 147 EOF 148 149 %postun 150 %restart_fmri desktop-mime-cache icon-cache 151 152 %files 153 %doc -d gdm-%{gdm.version} AUTHORS README 154 %doc(bzip2) -d gdm-%{gdm.version} COPYING NEWS 155 %doc(bzip2) -d gdm-%{gdm.version} ChangeLog po/ChangeLog 156 %dir %attr (0755, root, other) %{_datadir}/doc 157 %defattr (-, root, bin) 158 %dir %attr (0755, root, bin) %{_bindir} 159 %{_bindir}/* 160 %dir %attr (0755, root, bin) %{_sbindir} 161 %{_sbindir}/gdm 162 %{_sbindir}/gdm-binary 163 %{_sbindir}/gdm-stop 164 %dir %attr (0755, root, bin) %{_libdir} 165 %{_libdir}/bonobo 166 %{_libexecdir}/gdm* 167 %dir %attr (0755, root, sys) %{_datadir} 168 %{_datadir}/gdm 169 %dir %attr (0755, root, other) %{_datadir}/gnome 170 %{_datadir}/gnome/help/gdm/C 171 %dir %attr (-, root, other) %{_datadir}/icons 172 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 173 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/ 174 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/ 175 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/*/apps 176 %{_datadir}/icons/hicolor/*/apps/* 177 %{_datadir}/omf/gdm/*-C.omf 178 %dir %attr (0755, root, other) %{_datadir}/pixmaps 179 %{_datadir}/gnome-2.0/* 180 %{_datadir}/pixmaps/* 181 %{_datadir}/xsessions/* 182 %dir %attr(0755, root, bin) %{_mandir} 183 %dir %attr(0755, root, bin) %{_mandir}/man1 184 %dir %attr(0755, root, bin) %{_mandir}/man1m 185 %{_mandir}/man1/* 186 %{_mandir}/man1m/* 187 188 %files root 189 %defattr (-, root, sys) 190 %attr (0755, root, sys) %dir %{_sysconfdir} 191 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1 192 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1/system.d 193 %{_sysconfdir}/dbus-1/system.d/* 194 %{_sysconfdir}/gconf 195 %dir %{_sysconfdir}/gdm 196 %{_sysconfdir}/gdm/gdm.schemas 197 %{_sysconfdir}/gdm/Init 198 %{_sysconfdir}/gdm/Post* 199 %{_sysconfdir}/gdm/Pre* 200 %{_sysconfdir}/gdm/X* 201 %config %class(preserve) %{_sysconfdir}/gdm/custom.conf 202 %dir %{_sysconfdir}/X11/xinit 203 %dir %{_sysconfdir}/X11/xinit/xinitrc.d 204 # don't use %_localstatedir for the /var/log and /var/svc directory, 205 # because these are an absolute path defined by another package, so 206 # it has to be /var/svc even if this package has its %_localstatedir 207 # redefined. 208 %dir %attr (0755, root, sys) /var 209 %dir %attr (0755, root, sys) /var/log 210 %dir %attr (1770, root, gdm) /var/log/gdm 211 /var/svc/* 212 # SVC method file 213 %dir %attr (0755, root, bin) /lib 214 %dir %attr (0755, root, bin) /lib/svc 215 %dir %attr (0755, root, bin) /lib/svc/method 216 %attr (0555, root, bin) /lib/svc/method/svc-gdm 217 %dir %attr (0755, root, bin) %{_localstatedir}/cache 218 %dir %attr (1755, root, gdm) %{_localstatedir}/cache/gdm 219 %dir %attr (0755, root, other) %{_localstatedir}/lib 220 %dir %attr (1770, root, gdm) %{_localstatedir}/lib/gdm 221 %dir %attr (1750, root, gdm) %{_localstatedir}/lib/gdm/.gconf.mandatory 222 %attr (1640, root, gdm) %{_localstatedir}/lib/gdm/.gconf.path 223 %attr (1640, root, gdm) %{_localstatedir}/lib/gdm/.gconf.mandatory/* 224 225 %if %build_l10n 226 %files l10n 227 %defattr (-, root, bin) 228 %dir %attr (0755, root, sys) %{_datadir} 229 %dir %attr (0755, root, other) %{_datadir}/gnome 230 %attr (-, root, other) %{_datadir}/locale 231 %{_datadir}/gnome/*help/*/[a-z]* 232 %{_datadir}/omf/gdm/*-[a-z]*.omf 233 %endif 234 235 %changelog 236 * Mon Oct 19 2009 - brian.cameron@sun.com 237 - Change /var/log/gdm so that it has root:root ownership and 750 permissions, 238 better matching what GDM actually installs to the system. 239 * Tue Sep 01 2009 - brian.cameron@sun.com 240 - Update packaging after adding patch gdm-10-cache.diff since this adds 241 /var/cache/gdm to the package. 242 * Wed Aug 19 2009 - brian.cameron@sun.com 243 - Do not package /usr/sbin/gdm-restart and /usr/sbin/gdm-safe-restart since 244 they are non-functional. Add them back when they work. 245 * Wed Aug 12 2009 - halton.huo@sun.com 246 - Add xterm.desktop for fail safe. 247 * Tue Aug 11 2009 - halton.huo@sun.com 248 - Add gdmdynamic as Source3 249 * Mon Jul 27 2009 - halton.huo@sun.com 250 - We bump gdm to 2.27.4, this is a rewrite release compared gdm 2.20x version, 251 rework totally. 252 * Tue May 12 2009 - dave.lin@sun.com 253 - Remove 'Requires: SUNWgnome-display-mgr' from root pkg to fix the circular dependency issue. 254 * Fri Apr 3 2009 - laca@sun.com 255 - use desktop-cache instead of postrun 256 * Wed Apr 01 2009 - jeff.cai@sun.com 257 - Add the dependency of SUNWswmt for the root package since the customer.conf 258 uses i.preserve. 259 * Tue Mar 24 2009 - jeff.cai@sun.com 260 - Add the dependency of SUNWgnome-display-mgr for the root package. 261 * Web Feb 25 2009 - dave.lin@sun.com 262 - Changed to Requires: SUNWdesktop-startup due to SUNWgnome-dtstart was renamed. 263 * Fri Dec 05 2008 - halton.huo@sun.com 264 - Add workaround to fix CR #6781266 - gdmsetup fails to startup 265 * Wed Nov 21 2008 - brian.cameron@sun.com 266 - Add /lib/svc/method/svc-gdm SMF method file so that the "stop" method 267 doesn't cause errors on shutdown/restart. Fix packaging permissions. 268 Fix for doo bug #4887. 269 * Thu Oct 02 2008 - ghee.teo (at] sun.com 270 - Added directory /etc/X11/xinit/xinitrc.d as part of the fix to 6755007 and 271 also d.o.o #4097. 272 * Sun Sep 14 2008 - brian.cameron (at] sun.com 273 - Add new copyright files. 274 * Tue Jun 24 2008 - damien.carbery (at] sun.com 275 - Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430. 276 * Thu Jun 05 2008 - damien.carbery (at] sun.com 277 - Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when 278 libgnomecanvas is linked. libgnomecanvas.so includes some gail functions. 279 * Wed May 07 2008 - damien.carbery (at] sun.com 280 - Remove PERL5LIB setting as it is not necessary. 281 * Thu May 01 2008 - brian.cameron (at] sun.com 282 - Fix packaging. Ship the CDE desktop file if building with 283 "with_dt". 284 * Thu Mar 27 2008 - brian.cameron (at] sun.com 285 - Add SUNW_Copyright. 286 * Sat Jan 26 2008 - brian.cameron (at] sun.com 287 - Minor cleanup 288 * Thu Jan 17 2008 - damien.carbery (at] sun.com 289 - Delete %{_datadir}/xsessions/gnome.desktop file as it is now delivered by 290 gnome-session module. 291 * Fri Oct 12 1007 - laca (at] sun.com 292 - add x11 compile flags to CFLAGS if x11.pc exists (FOX fix) 293 * Fri Sep 28 2007 - laca (at] sun.com 294 - add support for building with FOX and using dtstart instead of 295 dtlogin-integration 296 * Fri May 11 2007 - brian.cameron (at] sun.com 297 - Fix packaging and add needed -R/usr/sfw/lib to link flags. 298 * Thu May 10 2007 - brian.cameron (at] sun.com 299 - Fix packaging for bumping to 2.19.0. 300 * Thu Apr 12 2007 - brian.cameron (at] sun.com 301 - Add SUNWxorg-server as a dependency, since GDM depends on Xephyr 302 * Fri Mar 09 2007 - brian.cameron (at] sun.com 303 - Change file permissions for gdmsetup to 700 so that the gdmsetup 304 menu choice only appears for the root user. Also no longer install 305 the %{datadir}/applications directory since we now install to 306 /usr/share/gdm/applications. 307 * Sun Jan 28 2007 - laca (at] sun.com 308 - update %files root so that dir attributes work on both s10 and nevada 309 * Fri Sep 01 2006 - Matt.Keenan (at] sun.com 310 - New Manpage tarball 311 * Mon Aug 28 2006 - brian.cameron (at] sun.com 312 - Add gdmdynamic manpage. 313 * Fri Aug 25 2006 - laca (at] sun.com 314 - move the smf profile rename postinstall stuff into the -root subpkg, 315 because the base package doesn't have access to the / files in the 316 case of a diskless installation, part of CR6448317 317 * Wed Aug 23 2006 - brian.cameron@sun.com 318 - Move some GDM manpages to sman1m to reflect that the binaries have 319 moved to /usr/sbin. 320 * Sat Aug 12 2006 - laca@sun.com 321 - change datadir/icons permissions back to root:other since it's a stable 322 interface and wasn't supposed to be changed 323 * Fri Jul 14 2006 - laca@sun.com 324 - update %post/%postun/etc scripts to support diskless client setup, 325 part of 6448317 326 * Thu Jun 29 2006 - laca@sun.com 327 - update postrun scripts 328 * Fri Jun 23 2006 - christopher.hanna@sun.com 329 - Removed manpages which arent needed: gdmchooser, gdmgreeter and gdmlogin 330 * Sun Jun 11 2006 - laca@sun.com 331 - change group from other to bin/sys 332 * Fri May 12 2006 - brian.cameron@sun.com 333 - Add SUNWgnome-dialog as a dependency since GDM does use zenity in places. 334 * Thu May 11 2006 - brian.cameron@sun.com 335 - Added %post scripting to migrate users from the old SMF service name 336 to the new one. 337 * Wed May 10 2006 - laca@sun.com 338 - merge -share pkg(s) into the base pkg(s) 339 * Tue May 09 2006 - brian.cameron@sun.com 340 - No longer install the /var/gdm directories here since they get installed via 341 make install. 342 * Tue Apr 18 2006 - brian.cameron@sun.com 343 - Mark custom.conf as in the preserve class so it doesn't get deleted on pkgrm. 344 * Mon Feb 20 2006 - damien.carbery (at] sun.com 345 - Update Build/Requires after running check-deps.pl script. 346 * Fri Feb 17 2006 - damien.carbery (at] sun.com 347 - Mark custom.conf as volatile (%config). 348 * Thu Feb 16 2006 - damien.carbery (at] sun.com 349 - Update Build/Requires after running check-deps.pl script. 350 * Tue Feb 14 2006 - damien.carbery (at] sun.com 351 - Update %files for new tarball (conf files renamed). 352 * Sat Jan 21 2006 - damien.carbery (at] sun.com 353 - Remove locale.alias.orig file from %files. Mistake in build. 354 * Thu Jan 19 2006 - brian.cameron (at] sun.com 355 - Fixed packaging after updating to 2.13.0.6 356 * Thu Jan 19 2006 - damien.carbery (at] sun.com 357 - Add new %files from bumped tarball. 358 * Tue Jan 17 2006 - damien.carbery (at] sun.com 359 - Add SUNWlibcroco to Build/Requires list. 360 * Mon Jan 16 2006 - damien.carbery (at] sun.com 361 - Move /usr/sfw/include reference from gdm.spec to here as it is Solaris only. 362 - Update Build/Requires lines. 363 * Mon Jan 16 2006 - padraig.obriain (at] sun.com 364 - add reference to %{_libexecdir}/X11/gdm/gdmprefetchlist 365 * Sat Dec 3 2005 - laca (at] sun.com 366 - add %post script that runs update-desktop-database 367 * Tue Nov 29 2005 - laca (at] sun.com 368 - remove javahelp stuff 369 * Thu Sep 15 2005 - laca (at] sun.com 370 - Remove unpackaged empty directories 371 * Thu Jul 28 2005 - damien.carbery@suncom 372 - Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency. 373 - Wed Jul 13 2005 - brian.cameron (at] sun.com 374 - Updated to 2.8.0.5. Updated SVC (GreenLine) integration. 375 + Mon Feb 07 2004 - brian.cameron (at] sun.com 376 - Fixed permissions on /var/lib/gdm so it doesn't complain on 377 reinstall. The gdm binary program changes the ownership and 378 permissions of this file on runtime if they aren't set 379 properly. This change makes the original permissions set 380 by the package correct so gdm won't change them. 381 * Thu Nov 18 2004 - hidetoshi.tajima@sun.com 382 - #5081827 - required SUNWgnome-dtlogin-integration to run 383 /usr/dt/config/Xsession.jds in gnome session 384 * Wed Nov 17 2004 - matt.keenan@sun.com 385 - #6195852 - Fix manpage directory installed (stopper) 386 * Sat Nov 13 2004 - laca@sun.com 387 - include gdm.conf in the "preserve" class, fixes 5101934 388 Note: requires pkgbuild-0.8.2 (CBE 0.18) 389 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 390 - Revised files section 391 * Sat Oct 02 2004 - laca@sun.com 392 - added %pkgbuild_postprocess 393 * Thu Sep 02 2004 <damien.carbery@sun.com> 394 - Add %dir %attr for mandir and mandir/man1. Attribute change install error. 395 * Thu Sep 02 2004 <matt.keenan@sun.com> 396 - Added gdm manpages for solaris 397 * Tue Jul 27 2004 <glynn.foster@sun.com> 398 - Put back the New Login in New Window as it's supported. 399 * Tue Jul 27 2004 <glynn.foster (at] sun.com> 400 - Remove the flexiserver .desktop items. Need to have a 401 look to see if the flexiserver binary stuff should be 402 include as well or not. Part fix for #5043894. 403 * Fri Jul 23 2004 <brian.cameron (at] sun.com> 404 - Now include /var/lib/gdm and /var/lib/log/gdm in the 405 package so that gdm can run out-of-the-box. 406 * Sun Jun 27 2004 shirley.woo (at] sun.com 407 - Changed install location to /usr/... 408 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 409 - Added %{_datadir}/locale to install l10n messages 410 * Mon Mar 01 2004 - <laca (at] sun.com> 411 - define PERL5LIB. 412 - add share and root subpkgs 413 414