1 # 2 # spec file for package SUNWgnome-dtlogin-integration 3 # 4 # includes module(s): dtlogin-integration 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 laca 11 # 12 13 %define OSR developed in the open, no OSR needed:0 14 15 %define dtlogin_config_basedir /usr 16 # NOTE: If the version is bumped the new tarball must be uploaded to the 17 # Sun Download Center. Contact GNOME RE for assistance. 18 %define tarball_version 0.37.1 19 20 %include Solaris.inc 21 Name: SUNWgnome-dtlogin-integration 22 SourcePackage: SUNWgnome-dtlogin-integ-src 23 Summary: dtlogin configuration files for the JDS desktop 24 Version: %{default_pkg_version} 25 Source: http://dlc.sun.com/osol/jds/downloads/extras/dtlogin-integration-%{tarball_version}.tar.bz2 26 Source1: l10n-configure.sh 27 Source2: dtstart 28 Source11: 0011.env 29 Source12: 0020.pre-localization 30 Source13: 0060.sockets 31 Source14: 0070.dbus 32 Source15: 0110.fonts 33 Source16: 0120.xrdb 34 Source17: 0210.im 35 SUNW_BaseDir: %{dtlogin_config_basedir} 36 SUNW_Copyright: SUNWgnome-dtlogin-integration.copyright 37 BuildRoot: %{_tmppath}/%{name}-%{version}-build 38 %include default-depend.inc 39 Requires: SUNWesu 40 Requires: SUNWmfrun 41 Requires: SUNWgnome-panel 42 Requires: SUNWgnome-session 43 Requires: SUNWgnome-wm 44 45 %package -n SUNWdesktop-startup 46 Summary: Desktop startup scripts in xinitrc.d 47 SUNW_BaseDir: %{_basedir} 48 %include default-depend.inc 49 Requires: SUNWdesktop-startup-root 50 51 %package -n SUNWdesktop-startup-root 52 Summary: Desktop startup scripts in xinitrc.d - / filesystem 53 SUNW_BaseDir: / 54 %include default-depend.inc 55 Requires: SUNWesu 56 Requires: SUNWiiimf 57 Requires: SUNWgnome-panel 58 Requires: SUNWgnome-session 59 Requires: SUNWgnome-wm 60 Requires: SUNWgnome-component 61 62 %prep 63 %setup -q -n dtlogin-integration-%{tarball_version} 64 65 bash -x %SOURCE1 --enable-sun-linguas 66 67 %build 68 export LDFLAGS="%_ldflags" 69 export CFLAGS="%optflags" 70 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 71 libtoolize -f 72 intltoolize --force --copy --automake 73 74 %if %build_l10n 75 bash -x %SOURCE1 --enable-copyright 76 %endif 77 78 aclocal $ACLOCAL_FLAGS 79 autoconf 80 automake -acf 81 82 ./configure --with-gnome-prefix=%{_prefix} \ 83 --prefix=%{dtlogin_config_basedir} 84 85 %install 86 rm -rf $RPM_BUILD_ROOT 87 %if %option_with_gnu_iconv 88 make install DESTDIR=$RPM_BUILD_ROOT ICONV=/usr/gnu/bin/iconv ENCODING=UTF-8 89 %else 90 make install DESTDIR=$RPM_BUILD_ROOT 91 %endif 92 93 %if %option_without_dt 94 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/appconfig 95 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/C 96 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/[a-z][a-z]* 97 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/Xsession* 98 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/Xinitrc* 99 rmdir $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config 100 rmdir $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt 101 %endif 102 103 install --mode=0755 -d $RPM_BUILD_ROOT/usr/bin 104 install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/bin/dtstart 105 106 # Create dbus session initialisation script for dtlogin 107 %if %option_with_dt 108 install --mode=0755 -d $RPM_BUILD_ROOT/%{dtlogin_config_basedir}/dt/config/Xsession.d 109 install --mode=0755 %SOURCE14 $RPM_BUILD_ROOT/%{dtlogin_config_basedir}/dt/config/Xsession.d 110 %endif 111 112 # rough script number? 113 # 1 - 50: pre configurations 114 # 51 - 100: pre processes 115 # 101 - 150: post configurations 116 # 151 - 200: post processes 117 118 install --mode=0755 -d $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/ 119 %if %option_with_dt 120 install --mode=0755 -d $RPM_BUILD_ROOT/%{dtlogin_config_basedir}/dt/config/Xsession.d 121 %endif 122 123 for FILE in %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE15 %SOURCE16 124 do 125 install --mode=0755 $FILE $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d 126 %if %option_with_dt 127 install --mode=0755 $FILE $RPM_BUILD_ROOT/%{dtlogin_config_basedir}/dt/config/Xsession.d 128 %endif 129 done 130 131 # 0210.im for xinitrc.d and 0020.dtims for Xsession.d 132 install --mode=0755 %SOURCE17 $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d 133 134 135 rm -rf $RPM_BUILD_ROOT/tmp 136 137 %clean 138 rm -rf $RPM_BUILD_ROOT 139 140 %if %option_with_dt 141 %files 142 %defattr (-, root, bin) 143 %{dtlogin_config_basedir}/dt 144 %endif 145 146 %files -n SUNWdesktop-startup-root 147 %defattr (-, root, sys) 148 %dir %attr(0755, root, sys) %{_sysconfdir} 149 %dir %attr(0755, root, sys) %{_sysconfdir}/X11 150 %dir %attr(0755, root, sys) %{_sysconfdir}/X11/xinit 151 %dir %attr(0755, root, sys) %{_sysconfdir}/X11/xinit/xinitrc.d 152 %{_sysconfdir}/X11/xinit/xinitrc.d/* 153 154 %files -n SUNWdesktop-startup 155 %defattr (-, root, bin) 156 %dir %attr (0755, root, bin) %{_bindir} 157 %{_bindir}/dtstart 158 159 160 %changelog 161 * Sat Sep 26 2009 - dave.lin@sun.com 162 - Removed upstreamed patch 01-g11n-migration.diff. 163 * Tue Sep 22 2009 - laca@sun.com 164 - bump to 0.37.1 165 * Mon Mar 23 2009 - jeff.cai@sun.com 166 - Since /usr/dt/config/Xinitrc.jds (SUNWgnome-dtstart) requires 167 /usr/bin/linc-cleanup-sockets which is found in SUNWgnome-component, 168 add the dependency. 169 * Thu Feb 05 2009 - takao.fujiwara@sun.com 170 - Renamed 0010.env to 0011.env for CDE. 171 * Wed Feb 04 2009 - takao.fujiwara@sun.com 172 - Add SUNWdesktop-startup for xinitrc.d scripts. 173 - Add patch g11n-migration.diff 174 * Thu Oct 02 2008 - ghee.teo@sun.com 175 - Bump up tarball to 0.37. Removed dtlogin-integration-02-dbus-launch.diff 176 and dtlogin-integration-01-vte-cjk.diff which are now upstreamed. 177 * Fri Sep 19 2008 - ghee.teo@sun.com 178 - Added dtlogin-integration-02-dbus-launch.diff to fix 6750408. 179 * Thu Sep 11 2008 - takao.fujiwara@sun.com 180 - Add dtlogin-integration-01-vte-cjk.diff to fix 6745785. 181 * Fri Aug 29 2008 - ghee.teo@sun.com 182 - Released 0.36 tarball and remove these patches 183 - SUNWgnome-dtlogin-integration-01-no-mo.diff 184 - SUNWgnome-dtlogin-integration-02-ssh-agent.diff 185 - SUNWgnome-dtlogin-integration-03-dbus-launch.diff 186 * Thu Aug 28 2008 - ghee.teo@sun.com 187 - Added script to launch dbus session bus now that gnome-session does not do that. 188 * Mon Jul 21 2008 - jeff.cai@sun.com 189 - Not start ssh-agent because gnome-keyring-daemon has added this feature. 190 * Tue Apr 1 2008 - damien.carbery@sun.com 191 - Remove 'BuildRequires' lines for i18n pkgs that are no longer delivered to 192 Nevada (beginning snv_86). 193 * Tue Feb 26 2008 - brian.cameron@sun.com 194 - Bump to 0.35. This reverts the code change made on 2007-12-07 to 195 launch gnome-session with "/bin/sh -c" rather than exec. I 196 discovered that using "/bin/sh -c" was having the unwanted 197 side-effect of causing gnome-session and child processes to not 198 have an associated TTY number. For example, gnome-session should 199 have a value like "pts/1", but when using "/bin/sh -c" it has "?". 200 So reverting this change fixes this problem. The original need 201 to switch to "/bin/sh -c" has gone away now that we launch D-Bus 202 from gnome-session instead of from the startup scripts. 203 204 * Wed Jan 09 2008 - brian.cameron@sun.com 205 - Bump to 0.34. 206 * Fri Dec 07 2007 - brian.cameron@sun.com 207 - Bump to 0.33. 208 * Thu Oct 25 2007 - takao.fujiwara@sun.com 209 - Add SUNWgnome-dtlogin-integration-01-no-mo.diff. 210 We don't need .mo files for this package. 211 * Fri Sep 28 2007 - laca (at] sun.com 212 - combine SUNWgnome-dtlogin-integration and SUNWgnome-dtstart in one 213 spec. If this spec file is built without /usr/dt support then 214 it builds SUNWgnome-dtstart with include /usr/bin/dtstart and the 215 JDS startup scripts in /usr/dt/config. /ust/bin/dtstart is a 216 simple replacement for /usr/dt/bin/Xsession 217 * Fri Sep 07 2007 - brian.cameron (at] sun.com 218 - Bump to 0.32, remove upstream patch. 219 * Thu Aug 30 2007 - damien.carbery (at] sun.com 220 - Add intltoolize call to update intltool scripts. 221 * Mon Jul 23 2007 - takao.fujiwara (at] sun.com 222 - Added SUNWgnome-dtlogin-integration-01-g11n-xinitrc.diff. 223 Fixes 6555226, 6583891 224 * Tue Jun 5 2007 - laca (at] sun.com 225 - bump to 0.31, delete patch 226 * Mon Apr 02 2007 - takao.fujiwara (at] sun.com 227 - Added SUNWgnome-dtlogin-integration-01-unset-locale.diff. Fixes 6532300 228 * Tue Nov 14 2006 - damien.carbery (at] sun.com 229 - Bump to 0.29, to change menu string to 2.16. Fixes 6493544. 230 * Thu Aug 24 2006 - laca (at] sun.com 231 - remove autoheader call since there is AC_CONFIG_HEADER in configure.in 232 * Fri Aug 04 2006 - damien.carbery (at] sun.com 233 - Bump to 0.27, to change menu string to 2.15. 234 * Fri Jun 23 2006 - laca (at] sun.com 235 - bump to 0.26, fixes 6340366 "A modified version of 236 /usr/dt/config/Xinitrc.jds in /etc/dt/config is not used" and 237 moves the code starting ssh-agent here from gdm so that it runs 238 for dtlogin users too. 239 * Sun Jun 11 2006 - laca (at] sun.com 240 - change group from other to bin/sys 241 * Thu Apr 6 2006 - brian.cameron (at] sun.com 242 - Now use tarball_version 243 * Wed Feb 1 2006 - damien.carbery (at] sun.com 244 - Bump to 0.25 to change menu string to "Gnome 2.14 for OpenSolaris" 245 * Tue Sep 13 2005 - laca (at] sun.com 246 - remove unpackaged files 247 * Fri Jul 8 2005 - damien.carbery (at] sun.com 248 - Add definition for ACLOCAL_FLAGS in order to build. 249 * Fri Apr 1 2005 - brian.cameron (at] sun.com 250 - Update to 0.23. Remove /usr/openwin/bin from PATH and move it to GDM2 251 so it doesn't get set twice when logging in via CDE login. 252 * Wed Mar 16 2005 - brian.cameron@sun.com 253 - commented out the rm datadir/locale/*/LC_MESSAGES/dtlogin-integration.mo 254 line since it got accidently uncommented in my last putback. 255 * Tue Mar 01 2005 - brian.cameron@sun.com 256 - Update to 0.22: Remove /usr/dt/bin from default user PATH. 257 * Wed Dec 15 2004 - laca@sun.com 258 - Update to 0.21: get rid of the login popup 259 * Mon Dec 13 2004 - damien.carbery@sun.com 260 - Update to 0.20. Implement ARC decision: Remove /usr/demo/jds/bin from PATH 261 and change wording for message about adding /usr/sfw/bin to the PATH 262 (Xinitrc.in). 263 * Fri Nov 26 2004 - damien.donlon@sun.com 264 - Added translations for new popup dialog. Asian to be modfied still. 265 * Fri Nov 26 2004 - laca@sun.com 266 - update to 0.17: fixes 6182467 (adds sfw login dialog) 267 - add %_datadir to files 268 * Fri Oct 29 2004 - laca@sun.com 269 - uprev to 0.16: adds comment about /usr/sfw/bin to Xinitrc, uses new 270 Solaris 10 branding 271 * Wed Oct 20 2004 - laca@sun.com 272 - uprev to 0.15 (removes /usr/sfw/bin from the PATH) 273 * Fri Oct 15 2004 - damien.donlon@sun.com 274 - Uprevved tarball to 0.14 (0.12 & 0.13 already present) 275 * Thu Sep 09 2004 - hidetoshi.tajima@sun.com 276 - Uprevved tarball to 0.11 277 * Tue Sep 07 2004 - laca@sun.com 278 - Added SourcePackage tag because SUNWgnome-dtlogin-integration-src is too 279 long... 280 * Tue Sep 07 2004 - takao.fujiwara@sun.com 281 - Added BuildRequires for effective iconv convertions. 282 * Tue Sep 07 2004 - laca@sun.com 283 - Uprevved tarball to 0.10 284 * Mon Sep 06 2004 - takao.fujiwara@sun.com 285 - Upstreamed dtlogin-integration-01-g11n-i18n-ui.diff 286 * Fri Sep 03 2004 - takao.fujiwara@sun.com 287 - Added dtlogin-integration-01-g11n-i18n-ui.diff 288 - Updated BuildRequires 289 * Mon Aug 30 2004 - damien.donlon@sun.com 290 - Uprevved tarball to 0.9 to fix bugid 5093158 291 * Thu Jul 08 2004 - damien.carbery@sun.com 292 - Update to version 0.7 to add /usr/sfw/bin to PATH and /usr/lib/jds-private to 293 LD_LIBRARY_PATH. 294 * Tue Jun 22 2004 - damien.donlon@sun.com 295 - update to version 0.6 to fix th_TH attrib issue (again!) 296 * Mon Jun 21 2004 - laca@sun.com 297 - update to version 0.5 298 * Tue Jun 15 2004 - hidetoshi.tajima@sun.com 299 - update to version 0.4 300 - removed dtlogin-integration-01-th_TH_file_conflict.diff and 301 include the same fix to the module. 302 * Thu Jun 10 2004 - damien.donlon@sun.com 303 - Patch dtlogin-integration-01-th_TH_file_conflict.diff to fix th_TH conflict 304 * Tue May 18 2004 - laca@sun.com 305 - update to version 0.3 306 * Tue May 18 2004 - laca@sun.com 307 - update to version 0.2 308 * Tue May 04 2004 - laca@sun.com 309 - initial version of the spec file 310