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 %dir %attr (0755, root, root) %{_datadir}/gdm 169 %{_datadir}/gdm/gdb-cmd 170 %{_datadir}/gdm/autostart/LoginWindow/*.desktop 171 %{_datadir}/gdm/gdm-greeter-login-window.glade 172 %{_datadir}/gdm/locale.alias 173 %dir %attr (0755, root, other) %{_datadir}/gnome 174 %{_datadir}/gnome/help/gdm/C 175 %dir %attr (-, root, other) %{_datadir}/icons 176 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 177 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/ 178 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/ 179 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/*/apps 180 %{_datadir}/icons/hicolor/*/apps/* 181 %{_datadir}/omf/gdm/*-C.omf 182 %dir %attr (0755, root, other) %{_datadir}/pixmaps 183 %{_datadir}/gnome-2.0/* 184 %{_datadir}/pixmaps/* 185 %{_datadir}/xsessions/* 186 %dir %attr(0755, root, bin) %{_mandir} 187 %dir %attr(0755, root, bin) %{_mandir}/man1 188 %dir %attr(0755, root, bin) %{_mandir}/man1m 189 %{_mandir}/man1/* 190 %{_mandir}/man1m/* 191 192 %files root 193 %defattr (-, root, sys) 194 %attr (0755, root, sys) %dir %{_sysconfdir} 195 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1 196 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1/system.d 197 %{_sysconfdir}/dbus-1/system.d/* 198 %{_sysconfdir}/gconf 199 %dir %{_sysconfdir}/gdm 200 %{_sysconfdir}/gdm/gdm.schemas 201 %{_sysconfdir}/gdm/Init 202 %{_sysconfdir}/gdm/Post* 203 %{_sysconfdir}/gdm/Pre* 204 %{_sysconfdir}/gdm/X* 205 %config %class(preserve) %{_sysconfdir}/gdm/custom.conf 206 %dir %{_sysconfdir}/X11/xinit 207 %dir %{_sysconfdir}/X11/xinit/xinitrc.d 208 # don't use %_localstatedir for the /var/log and /var/svc directory, 209 # because these are an absolute path defined by another package, so 210 # it has to be /var/svc even if this package has its %_localstatedir 211 # redefined. 212 %dir %attr (0755, root, sys) /var 213 %dir %attr (0755, root, sys) /var/log 214 %dir %attr (1770, root, gdm) /var/log/gdm 215 /var/svc/* 216 # SVC method file 217 %dir %attr (0755, root, bin) /lib 218 %dir %attr (0755, root, bin) /lib/svc 219 %dir %attr (0755, root, bin) /lib/svc/method 220 %attr (0555, root, bin) /lib/svc/method/svc-gdm 221 %dir %attr (0755, root, bin) %{_localstatedir}/cache 222 %dir %attr (1755, root, gdm) %{_localstatedir}/cache/gdm 223 %dir %attr (0755, root, other) %{_localstatedir}/lib 224 %dir %attr (1770, root, gdm) %{_localstatedir}/lib/gdm 225 %dir %attr (1750, root, gdm) %{_localstatedir}/lib/gdm/.gconf.mandatory 226 %attr (1640, root, gdm) %{_localstatedir}/lib/gdm/.gconf.path 227 %attr (1640, root, gdm) %{_localstatedir}/lib/gdm/.gconf.mandatory/* 228 229 %if %build_l10n 230 %files l10n 231 %defattr (-, root, bin) 232 %dir %attr (0755, root, sys) %{_datadir} 233 %dir %attr (0755, root, other) %{_datadir}/gnome 234 %attr (-, root, other) %{_datadir}/locale 235 %{_datadir}/gnome/*help/*/[a-z]* 236 %{_datadir}/omf/gdm/*-[a-z]*.omf 237 %endif 238 239 %changelog 240 * Thu Nov 26 2009 - christian.kelly@sun.com 241 - Fix directory perms. 242 * Mon Oct 19 2009 - brian.cameron@sun.com 243 - Change /var/log/gdm so that it has root:root ownership and 750 permissions, 244 better matching what GDM actually installs to the system. 245 * Tue Sep 01 2009 - brian.cameron@sun.com 246 - Update packaging after adding patch gdm-10-cache.diff since this adds 247 /var/cache/gdm to the package. 248 * Wed Aug 19 2009 - brian.cameron@sun.com 249 - Do not package /usr/sbin/gdm-restart and /usr/sbin/gdm-safe-restart since 250 they are non-functional. Add them back when they work. 251 * Wed Aug 12 2009 - halton.huo@sun.com 252 - Add xterm.desktop for fail safe. 253 * Tue Aug 11 2009 - halton.huo@sun.com 254 - Add gdmdynamic as Source3 255 * Mon Jul 27 2009 - halton.huo@sun.com 256 - We bump gdm to 2.27.4, this is a rewrite release compared gdm 2.20x version, 257 rework totally. 258 * Tue May 12 2009 - dave.lin@sun.com 259 - Remove 'Requires: SUNWgnome-display-mgr' from root pkg to fix the circular dependency issue. 260 * Fri Apr 3 2009 - laca@sun.com 261 - use desktop-cache instead of postrun 262 * Wed Apr 01 2009 - jeff.cai@sun.com 263 - Add the dependency of SUNWswmt for the root package since the customer.conf 264 uses i.preserve. 265 * Tue Mar 24 2009 - jeff.cai@sun.com 266 - Add the dependency of SUNWgnome-display-mgr for the root package. 267 * Web Feb 25 2009 - dave.lin@sun.com 268 - Changed to Requires: SUNWdesktop-startup due to SUNWgnome-dtstart was renamed. 269 * Fri Dec 05 2008 - halton.huo@sun.com 270 - Add workaround to fix CR #6781266 - gdmsetup fails to startup 271 * Wed Nov 21 2008 - brian.cameron@sun.com 272 - Add /lib/svc/method/svc-gdm SMF method file so that the "stop" method 273 doesn't cause errors on shutdown/restart. Fix packaging permissions. 274 Fix for doo bug #4887. 275 * Thu Oct 02 2008 - ghee.teo (at] sun.com 276 - Added directory /etc/X11/xinit/xinitrc.d as part of the fix to 6755007 and 277 also d.o.o #4097. 278 * Sun Sep 14 2008 - brian.cameron (at] sun.com 279 - Add new copyright files. 280 * Tue Jun 24 2008 - damien.carbery (at] sun.com 281 - Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430. 282 * Thu Jun 05 2008 - damien.carbery (at] sun.com 283 - Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when 284 libgnomecanvas is linked. libgnomecanvas.so includes some gail functions. 285 * Wed May 07 2008 - damien.carbery (at] sun.com 286 - Remove PERL5LIB setting as it is not necessary. 287 * Thu May 01 2008 - brian.cameron (at] sun.com 288 - Fix packaging. Ship the CDE desktop file if building with 289 "with_dt". 290 * Thu Mar 27 2008 - brian.cameron (at] sun.com 291 - Add SUNW_Copyright. 292 * Sat Jan 26 2008 - brian.cameron (at] sun.com 293 - Minor cleanup 294 * Thu Jan 17 2008 - damien.carbery (at] sun.com 295 - Delete %{_datadir}/xsessions/gnome.desktop file as it is now delivered by 296 gnome-session module. 297 * Fri Oct 12 1007 - laca (at] sun.com 298 - add x11 compile flags to CFLAGS if x11.pc exists (FOX fix) 299 * Fri Sep 28 2007 - laca (at] sun.com 300 - add support for building with FOX and using dtstart instead of 301 dtlogin-integration 302 * Fri May 11 2007 - brian.cameron (at] sun.com 303 - Fix packaging and add needed -R/usr/sfw/lib to link flags. 304 * Thu May 10 2007 - brian.cameron (at] sun.com 305 - Fix packaging for bumping to 2.19.0. 306 * Thu Apr 12 2007 - brian.cameron (at] sun.com 307 - Add SUNWxorg-server as a dependency, since GDM depends on Xephyr 308 * Fri Mar 09 2007 - brian.cameron (at] sun.com 309 - Change file permissions for gdmsetup to 700 so that the gdmsetup 310 menu choice only appears for the root user. Also no longer install 311 the %{datadir}/applications directory since we now install to 312 /usr/share/gdm/applications. 313 * Sun Jan 28 2007 - laca (at] sun.com 314 - update %files root so that dir attributes work on both s10 and nevada 315 * Fri Sep 01 2006 - Matt.Keenan (at] sun.com 316 - New Manpage tarball 317 * Mon Aug 28 2006 - brian.cameron (at] sun.com 318 - Add gdmdynamic manpage. 319 * Fri Aug 25 2006 - laca (at] sun.com 320 - move the smf profile rename postinstall stuff into the -root subpkg, 321 because the base package doesn't have access to the / files in the 322 case of a diskless installation, part of CR6448317 323 * Wed Aug 23 2006 - brian.cameron@sun.com 324 - Move some GDM manpages to sman1m to reflect that the binaries have 325 moved to /usr/sbin. 326 * Sat Aug 12 2006 - laca@sun.com 327 - change datadir/icons permissions back to root:other since it's a stable 328 interface and wasn't supposed to be changed 329 * Fri Jul 14 2006 - laca@sun.com 330 - update %post/%postun/etc scripts to support diskless client setup, 331 part of 6448317 332 * Thu Jun 29 2006 - laca@sun.com 333 - update postrun scripts 334 * Fri Jun 23 2006 - christopher.hanna@sun.com 335 - Removed manpages which arent needed: gdmchooser, gdmgreeter and gdmlogin 336 * Sun Jun 11 2006 - laca@sun.com 337 - change group from other to bin/sys 338 * Fri May 12 2006 - brian.cameron@sun.com 339 - Add SUNWgnome-dialog as a dependency since GDM does use zenity in places. 340 * Thu May 11 2006 - brian.cameron@sun.com 341 - Added %post scripting to migrate users from the old SMF service name 342 to the new one. 343 * Wed May 10 2006 - laca@sun.com 344 - merge -share pkg(s) into the base pkg(s) 345 * Tue May 09 2006 - brian.cameron@sun.com 346 - No longer install the /var/gdm directories here since they get installed via 347 make install. 348 * Tue Apr 18 2006 - brian.cameron@sun.com 349 - Mark custom.conf as in the preserve class so it doesn't get deleted on pkgrm. 350 * Mon Feb 20 2006 - damien.carbery (at] sun.com 351 - Update Build/Requires after running check-deps.pl script. 352 * Fri Feb 17 2006 - damien.carbery (at] sun.com 353 - Mark custom.conf as volatile (%config). 354 * Thu Feb 16 2006 - damien.carbery (at] sun.com 355 - Update Build/Requires after running check-deps.pl script. 356 * Tue Feb 14 2006 - damien.carbery (at] sun.com 357 - Update %files for new tarball (conf files renamed). 358 * Sat Jan 21 2006 - damien.carbery (at] sun.com 359 - Remove locale.alias.orig file from %files. Mistake in build. 360 * Thu Jan 19 2006 - brian.cameron (at] sun.com 361 - Fixed packaging after updating to 2.13.0.6 362 * Thu Jan 19 2006 - damien.carbery (at] sun.com 363 - Add new %files from bumped tarball. 364 * Tue Jan 17 2006 - damien.carbery (at] sun.com 365 - Add SUNWlibcroco to Build/Requires list. 366 * Mon Jan 16 2006 - damien.carbery (at] sun.com 367 - Move /usr/sfw/include reference from gdm.spec to here as it is Solaris only. 368 - Update Build/Requires lines. 369 * Mon Jan 16 2006 - padraig.obriain (at] sun.com 370 - add reference to %{_libexecdir}/X11/gdm/gdmprefetchlist 371 * Sat Dec 3 2005 - laca (at] sun.com 372 - add %post script that runs update-desktop-database 373 * Tue Nov 29 2005 - laca (at] sun.com 374 - remove javahelp stuff 375 * Thu Sep 15 2005 - laca (at] sun.com 376 - Remove unpackaged empty directories 377 * Thu Jul 28 2005 - damien.carbery@suncom 378 - Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency. 379 - Wed Jul 13 2005 - brian.cameron (at] sun.com 380 - Updated to 2.8.0.5. Updated SVC (GreenLine) integration. 381 + Mon Feb 07 2004 - brian.cameron (at] sun.com 382 - Fixed permissions on /var/lib/gdm so it doesn't complain on 383 reinstall. The gdm binary program changes the ownership and 384 permissions of this file on runtime if they aren't set 385 properly. This change makes the original permissions set 386 by the package correct so gdm won't change them. 387 * Thu Nov 18 2004 - hidetoshi.tajima@sun.com 388 - #5081827 - required SUNWgnome-dtlogin-integration to run 389 /usr/dt/config/Xsession.jds in gnome session 390 * Wed Nov 17 2004 - matt.keenan@sun.com 391 - #6195852 - Fix manpage directory installed (stopper) 392 * Sat Nov 13 2004 - laca@sun.com 393 - include gdm.conf in the "preserve" class, fixes 5101934 394 Note: requires pkgbuild-0.8.2 (CBE 0.18) 395 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 396 - Revised files section 397 * Sat Oct 02 2004 - laca@sun.com 398 - added %pkgbuild_postprocess 399 * Thu Sep 02 2004 <damien.carbery@sun.com> 400 - Add %dir %attr for mandir and mandir/man1. Attribute change install error. 401 * Thu Sep 02 2004 <matt.keenan@sun.com> 402 - Added gdm manpages for solaris 403 * Tue Jul 27 2004 <glynn.foster@sun.com> 404 - Put back the New Login in New Window as it's supported. 405 * Tue Jul 27 2004 <glynn.foster (at] sun.com> 406 - Remove the flexiserver .desktop items. Need to have a 407 look to see if the flexiserver binary stuff should be 408 include as well or not. Part fix for #5043894. 409 * Fri Jul 23 2004 <brian.cameron (at] sun.com> 410 - Now include /var/lib/gdm and /var/lib/log/gdm in the 411 package so that gdm can run out-of-the-box. 412 * Sun Jun 27 2004 shirley.woo (at] sun.com 413 - Changed install location to /usr/... 414 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 415 - Added %{_datadir}/locale to install l10n messages 416 * Mon Mar 01 2004 - <laca (at] sun.com> 417 - define PERL5LIB. 418 - add share and root subpkgs 419 420