specs/SUNWgnome-dtlogin-integration.spec
author yippi
Thu May 31 20:16:52 2012 +0000 (2012-05-31)
changeset 22481 1ff6784d9b6f
parent 22108 09500c5eaf8c
permissions -rw-r--r--
2012-05-31 Brian Cameron <brian.cameron@oracle.com>

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