1 # 2 # spec file for package SUNWgnome-dtlogin-integration 3 # 4 # includes module(s): dtlogin-integration 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: laca 11 # 12 %define dtlogin_config_basedir /usr 13 # NOTE: If the version is bumped the new tarball must be uploaded to the 14 # Sun Download Center. Contact GNOME RE for assistance. 15 %define tarball_version 0.35 16 17 %include Solaris.inc 18 %if %option_with_dt 19 Name: SUNWgnome-dtlogin-integration 20 SourcePackage: SUNWgnome-dtlogin-integ-src 21 Summary: dtlogin configuration files for the JDS desktop 22 %else 23 Name: SUNWgnome-dtstart 24 Summary: Desktop startup scripts for JDS 25 Source2: dtstart 26 %endif 27 Version: %{default_pkg_version} 28 Source: http://dlc.sun.com/osol/jds/downloads/extras/dtlogin-integration-%{tarball_version}.tar.bz2 29 Source1: l10n-configure.sh 30 Patch1: SUNWgnome-dtlogin-integration-01-no-mo.diff 31 SUNW_BaseDir: %{dtlogin_config_basedir} 32 SUNW_Copyright: SUNWgnome-dtlogin-integration.copyright 33 BuildRoot: %{_tmppath}/%{name}-%{version}-build 34 %include default-depend.inc 35 Requires: SUNWgnome-panel 36 Requires: SUNWgnome-session 37 Requires: SUNWgnome-wm 38 %if %option_with_gnu_iconv 39 BuildRequires: SUNWgnu-libiconv 40 %else 41 BuildRequires: SUNWuiu8 42 BuildRequires: SUNWloc 43 BuildRequires: SUNWisolc 44 BuildRequires: SUNWcleu 45 BuildRequires: SUNWcleu2 46 BuildRequires: SUNWhkleu 47 BuildRequires: SUNWhleu 48 BuildRequires: SUNWinleu 49 BuildRequires: SUNWjfpu 50 BuildRequires: SUNWkleu 51 %endif 52 53 %prep 54 %setup -q -n dtlogin-integration-%{tarball_version} 55 %patch1 -p1 56 57 bash -x %SOURCE1 --enable-sun-linguas 58 59 %build 60 export LDFLAGS="%_ldflags" 61 export CFLAGS="%optflags" 62 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 63 libtoolize -f 64 intltoolize --force --copy --automake 65 66 %if %build_l10n 67 bash -x %SOURCE1 --enable-copyright 68 %endif 69 70 aclocal $ACLOCAL_FLAGS 71 autoconf 72 automake -acf 73 74 ./configure --with-gnome-prefix=%{_prefix} \ 75 --prefix=%{dtlogin_config_basedir} 76 77 %install 78 rm -rf $RPM_BUILD_ROOT 79 %if %option_with_gnu_iconv 80 make install DESTDIR=$RPM_BUILD_ROOT ICONV=/usr/gnu/bin/iconv ENCODING=UTF-8 81 %else 82 make install DESTDIR=$RPM_BUILD_ROOT 83 %endif 84 85 %if %option_without_dt 86 install --mode=0755 -d $RPM_BUILD_ROOT/usr/bin 87 install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/bin/dtstart 88 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/appconfig 89 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/C 90 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/[a-z][a-z]* 91 rm -r $RPM_BUILD_ROOT%{dtlogin_config_basedir}/dt/config/Xsession* 92 %endif 93 94 rm -rf $RPM_BUILD_ROOT/tmp 95 96 %clean 97 rm -rf $RPM_BUILD_ROOT 98 99 %files 100 %defattr (-, root, bin) 101 %{dtlogin_config_basedir}/dt 102 %if %option_with_dt 103 %else 104 %dir %attr (0755, root, bin) %{_bindir} 105 %{_bindir}/dtstart 106 %endif 107 108 %changelog 109 * Tue Apr 1 2008 - damien.carbery@sun.com 110 - Remove 'BuildRequires' lines for i18n pkgs that are no longer delivered to 111 Nevada (beginning snv_86). 112 * Tue Feb 26 2008 - brian.cameron@sun.com 113 - Bump to 0.35. This reverts the code change made on 2007-12-07 to 114 launch gnome-session with "/bin/sh -c" rather than exec. I 115 discovered that using "/bin/sh -c" was having the unwanted 116 side-effect of causing gnome-session and child processes to not 117 have an associated TTY number. For example, gnome-session should 118 have a value like "pts/1", but when using "/bin/sh -c" it has "?". 119 So reverting this change fixes this problem. The original need 120 to switch to "/bin/sh -c" has gone away now that we launch D-Bus 121 from gnome-session instead of from the startup scripts. 122 123 * Wed Jan 09 2008 - brian.cameron@sun.com 124 - Bump to 0.34. 125 * Fri Dec 07 2007 - brian.cameron@sun.com 126 - Bump to 0.33. 127 * Thu Oct 25 2007 - takao.fujiwara@sun.com 128 - Add SUNWgnome-dtlogin-integration-01-no-mo.diff. 129 We don't need .mo files for this package. 130 * Fri Sep 28 2007 - laca (at] sun.com 131 - combine SUNWgnome-dtlogin-integration and SUNWgnome-dtstart in one 132 spec. If this spec file is built without /usr/dt support then 133 it builds SUNWgnome-dtstart with include /usr/bin/dtstart and the 134 JDS startup scripts in /usr/dt/config. /ust/bin/dtstart is a 135 simple replacement for /usr/dt/bin/Xsession 136 * Fri Sep 07 2007 - brian.cameron (at] sun.com 137 - Bump to 0.32, remove upstream patch. 138 * Thu Aug 30 2007 - damien.carbery (at] sun.com 139 - Add intltoolize call to update intltool scripts. 140 * Mon Jul 23 2007 - takao.fujiwara (at] sun.com 141 - Added SUNWgnome-dtlogin-integration-01-g11n-xinitrc.diff. 142 Fixes 6555226, 6583891 143 * Tue Jun 5 2007 - laca (at] sun.com 144 - bump to 0.31, delete patch 145 * Mon Apr 02 2007 - takao.fujiwara (at] sun.com 146 - Added SUNWgnome-dtlogin-integration-01-unset-locale.diff. Fixes 6532300 147 * Tue Nov 14 2006 - damien.carbery (at] sun.com 148 - Bump to 0.29, to change menu string to 2.16. Fixes 6493544. 149 * Thu Aug 24 2006 - laca (at] sun.com 150 - remove autoheader call since there is AC_CONFIG_HEADER in configure.in 151 * Fri Aug 04 2006 - damien.carbery (at] sun.com 152 - Bump to 0.27, to change menu string to 2.15. 153 * Fri Jun 23 2006 - laca (at] sun.com 154 - bump to 0.26, fixes 6340366 "A modified version of 155 /usr/dt/config/Xinitrc.jds in /etc/dt/config is not used" and 156 moves the code starting ssh-agent here from gdm so that it runs 157 for dtlogin users too. 158 * Sun Jun 11 2006 - laca (at] sun.com 159 - change group from other to bin/sys 160 * Thu Apr 6 2006 - brian.cameron (at] sun.com 161 - Now use tarball_version 162 * Wed Feb 1 2006 - damien.carbery (at] sun.com 163 - Bump to 0.25 to change menu string to "Gnome 2.14 for OpenSolaris" 164 * Tue Sep 13 2005 - laca (at] sun.com 165 - remove unpackaged files 166 * Fri Jul 8 2005 - damien.carbery (at] sun.com 167 - Add definition for ACLOCAL_FLAGS in order to build. 168 * Fri Apr 1 2005 - brian.cameron (at] sun.com 169 - Update to 0.23. Remove /usr/openwin/bin from PATH and move it to GDM2 170 so it doesn't get set twice when logging in via CDE login. 171 * Wed Mar 16 2005 - brian.cameron@sun.com 172 - commented out the rm datadir/locale/*/LC_MESSAGES/dtlogin-integration.mo 173 line since it got accidently uncommented in my last putback. 174 * Tue Mar 01 2005 - brian.cameron@sun.com 175 - Update to 0.22: Remove /usr/dt/bin from default user PATH. 176 * Wed Dec 15 2004 - laca@sun.com 177 - Update to 0.21: get rid of the login popup 178 * Mon Dec 13 2004 - damien.carbery@sun.com 179 - Update to 0.20. Implement ARC decision: Remove /usr/demo/jds/bin from PATH 180 and change wording for message about adding /usr/sfw/bin to the PATH 181 (Xinitrc.in). 182 * Fri Nov 26 2004 - damien.donlon@sun.com 183 - Added translations for new popup dialog. Asian to be modfied still. 184 * Fri Nov 26 2004 - laca@sun.com 185 - update to 0.17: fixes 6182467 (adds sfw login dialog) 186 - add %_datadir to files 187 * Fri Oct 29 2004 - laca@sun.com 188 - uprev to 0.16: adds comment about /usr/sfw/bin to Xinitrc, uses new 189 Solaris 10 branding 190 * Wed Oct 20 2004 - laca@sun.com 191 - uprev to 0.15 (removes /usr/sfw/bin from the PATH) 192 * Fri Oct 15 2004 - damien.donlon@sun.com 193 - Uprevved tarball to 0.14 (0.12 & 0.13 already present) 194 * Thu Sep 09 2004 - hidetoshi.tajima@sun.com 195 - Uprevved tarball to 0.11 196 * Tue Sep 07 2004 - laca@sun.com 197 - Added SourcePackage tag because SUNWgnome-dtlogin-integration-src is too 198 long... 199 * Tue Sep 07 2004 - takao.fujiwara@sun.com 200 - Added BuildRequires for effective iconv convertions. 201 * Tue Sep 07 2004 - laca@sun.com 202 - Uprevved tarball to 0.10 203 * Mon Sep 06 2004 - takao.fujiwara@sun.com 204 - Upstreamed dtlogin-integration-01-g11n-i18n-ui.diff 205 * Fri Sep 03 2004 - takao.fujiwara@sun.com 206 - Added dtlogin-integration-01-g11n-i18n-ui.diff 207 - Updated BuildRequires 208 * Mon Aug 30 2004 - damien.donlon@sun.com 209 - Uprevved tarball to 0.9 to fix bugid 5093158 210 * Thu Jul 08 2004 - damien.carbery@sun.com 211 - Update to version 0.7 to add /usr/sfw/bin to PATH and /usr/lib/jds-private to 212 LD_LIBRARY_PATH. 213 * Tue Jun 22 2004 - damien.donlon@sun.com 214 - update to version 0.6 to fix th_TH attrib issue (again!) 215 * Mon Jun 21 2004 - laca@sun.com 216 - update to version 0.5 217 * Tue Jun 15 2004 - hidetoshi.tajima@sun.com 218 - update to version 0.4 219 - removed dtlogin-integration-01-th_TH_file_conflict.diff and 220 include the same fix to the module. 221 * Thu Jun 10 2004 - damien.donlon@sun.com 222 - Patch dtlogin-integration-01-th_TH_file_conflict.diff to fix th_TH conflict 223 * Tue May 18 2004 - laca@sun.com 224 - update to version 0.3 225 * Tue May 18 2004 - laca@sun.com 226 - update to version 0.2 227 * Tue May 04 2004 - laca@sun.com 228 - initial version of the spec file 229