Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-session
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: niall
      9 #
     10 Name:         gnome-session
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.16.1
     14 Release:      6
     15 Distribution: Java Desktop System
     16 Vendor:	      Sun Microsystems, Inc.
     17 Summary:      Session Manager for the GNOME Desktop
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 Source1:      gnome-splash.png
     20 Source2:      gnome-session-remove.1.gz
     21 Source3:      gnome-session.1.gz
     22 Source4:      gnome-session-save.1.gz
     23 Source5:      gnome-session-properties.1.gz
     24 Source6:      gnome-smproxy.1.gz
     25 Source7:      gnome-wm.1.gz
     26 Source8:      default.session.5.gz
     27 Patch1:       gnome-session-01-busy-cursor.diff
     28 Patch2:       gnome-session-02-solaris-branding.diff
     29 Patch3:       gnome-session-03-gnome-atom.diff
     30 Patch4:       gnome-session-04-logout-effect.diff
     31 Patch5:       gnome-session-05-gnome-about.diff
     32 Patch6:       gnome-session-06-reduce-purge-warn-delay.diff
     33 Patch7:       gnome-session-07-wait-for-postrun.diff
     34 Patch8:       gnome-session-08-lXau.diff
     35 #owner:gheet date:2006-11-03 type:feature bugster:6393728
     36 Patch9:       gnome-session-09-trusted-extensions.diff
     37 Patch10:      gnome-session-10-gnome-volcheck-default-session.diff
     38 URL:          http://www.gnome.org
     39 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     40 Docdir:       %{_defaultdocdir}/%{name}
     41 Autoreqprov:  on
     42 Prereq:       GConf
     43 
     44 %define libgnomeui_version 2.2.0
     45 %define libwnck_version 2.2.1
     46 
     47 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     48 BuildRequires: libwnck-devel >= %{libwnck_version}
     49 Requires: libgnomeui >= %{libgnomeui_version}
     50 Requires: libwnck >= %{libwnck_version}
     51 
     52 %description
     53 This package provides the basic session manager and tools for the GNOME Desktop.
     54 
     55 %prep
     56 %setup -q
     57 %patch1 -p1
     58 %patch2 -p1 
     59 %patch3 -p1
     60 %patch4 -p1
     61 %patch5 -p1
     62 %patch6 -p1
     63 %patch7 -p1
     64 %patch8 -p1
     65 %patch9 -p1
     66 %patch10 -p1
     67 
     68 cp %SOURCE1 gnome-session/gnome-splash.png
     69 
     70 %build
     71 %ifos linux
     72 if [ -x /usr/bin/getconf ]; then
     73   CPUS=`getconf _NPROCESSORS_ONLN`
     74 fi
     75 %else
     76   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     77 %endif
     78 if test "x$CPUS" = "x" -o $CPUS = 0; then
     79   CPUS=1
     80 fi
     81 
     82 %ifos solaris
     83 %define poweroff /usr/sbin/poweroff
     84 %define reboot   /usr/sbin/reboot
     85 %else
     86 %define poweroff /usr/bin/poweroff
     87 %define reboot   /usr/bin/reboot
     88 %endif
     89 
     90 libtoolize --force
     91 intltoolize -c -f --automake
     92 aclocal $ACLOCAL_FLAGS -I .
     93 autoheader
     94 automake -a -c -f
     95 autoconf
     96 CFLAGS="$RPM_OPT_FLAGS"		\
     97 ./configure --prefix=%{_prefix}				\
     98 	    --sysconfdir=%{_sysconfdir} 		\
     99 	    --mandir=%{_mandir}				\
    100 	    --with-halt-command=%poweroff	\
    101 	    --with-reboot-command=%reboot
    102 make -j $CPUS
    103 
    104 %install
    105 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
    106 make DESTDIR=$RPM_BUILD_ROOT install
    107 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
    108 install -d $RPM_BUILD_ROOT%{_mandir}/man1
    109 install -d $RPM_BUILD_ROOT%{_mandir}/man5
    110 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1
    111 install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1
    112 install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1
    113 install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1
    114 install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man1
    115 install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man1
    116 install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man5
    117 
    118 %clean
    119 rm -rf $RPM_BUILD_ROOT
    120 
    121 %post
    122 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    123 SCHEMAS="gnome-session.schemas"
    124 for S in $SCHEMAS; do
    125 	gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    126 done
    127 
    128 %files
    129 %defattr(-,root,root)
    130 %{_bindir}/*
    131 %{_datadir}/pixmaps/*
    132 %{_mandir}/man1/gnome-session-properties.1.gz
    133 %{_mandir}/man1/gnome-session-save.1.gz
    134 %{_mandir}/man1/gnome-session-remove.1.gz
    135 %{_mandir}/man1/gnome-session.1.gz
    136 %{_mandir}/man1/gnome-smproxy.1.gz
    137 %{_mandir}/man1/gnome-wm.1.gz
    138 %{_mandir}/man1/session-properties.1.gz
    139 %{_mandir}/man5/default.session.5.gz
    140 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    141 %{_datadir}/gnome/default.session
    142 %{_datadir}/gnome/default.wm
    143 %{_datadir}/applications/
    144 %{_sysconfdir}/gconf/schemas/*
    145 
    146 %changelog
    147 * Fri Nov 03 2006 - ghee.teo@sun.com
    148 - Fixed up gnome-session-09-trusted-extensions.diff for 2.16
    149 
    150 * Tue Oct 31 2006 - takao.fujiwara@sun.com
    151 - Added intltoolize to read LINGAS file. Fixes 6488189.
    152 
    153 * Mon Oct 30 2006 - irene.huang@sun.com
    154 - add patch gnome-session-10-gnome-volcheck-default-session.diff
    155   which is orignally 
    156   Solaris/patches/gnome-session-01-gnome-volcheck-default-session.diff
    157 
    158 * Mon Oct 23 2006 - glynn.foster@sun.com
    159 - Fix up fuzziness of the gnome-session patches. Merge the logout
    160   effect patches together, remove the non-existant a11y patch, and
    161   comment out the broken trusted extensions patch.
    162 
    163 * Tue Oct 03 2006 - damien.carbery@sun.com
    164 - Bump to 2.16.1.
    165 
    166 * Mon Sep 04 2006 - damien.carbery@sun.com
    167 - Bump to 2.16.0.
    168 
    169 * Fri Aug 25 2006 - damien.carbery@sun.com
    170 - Add patch, 12-lXau, to link libXau in.
    171 
    172 * Tue Aug 22 2006 - damien.carbery@sun.com
    173 - Bump to 2.15.92.
    174 - Remove upstream patch, 10-fixcrash, renumber remainder.
    175 
    176 * Tue Aug 08 2006 - damien.carbery@sun.com
    177 - Bump to 2.15.91.
    178 
    179 * Fri Jul 28 2006 - brian.cameron@sun.com
    180 - Move gnome-session-07-gnome-volcheck-default-session.diff to 
    181   Solaris/patches so we can only apply this if HAL package is
    182   installed.
    183 
    184 * Fri Jul 28 2006 - dermot.mccluskey@sun.com
    185 - Fix minor typo.
    186 
    187 * Mon Jul 24 2006 - damien.carbery@sun.com
    188 - Bump to 2.15.90.
    189 
    190 * Mon Jul 24 2006 - padraig.obriain@sun.com
    191 - Bump to 2.15.4.
    192 
    193 * Fri Jun 23 2006 - brian.cameron@sun.com
    194 - Bump to 2.14.2.
    195 
    196 * Fri May 05 2006 - brian.cameron@sun.com
    197 - Add patch to fix crash when HAL is enabled, caused by printing of a NULL
    198   string.
    199 
    200 * Fri Apr 10 2006 - damien.carbery@sun.com
    201 - Bump to 2.14.1.
    202 
    203 * Tue Mar 14 2006 - damien.carbery@sun.com
    204 - Bump to 2.14.0.
    205 
    206 * Thu Mar  9 2006 - damien.carbery@sun.com
    207 - Add patch, 10-G_DEBUG-off, to not set G_DEBUG=fatal_criticals as it exposes
    208   a lot of crashes in Evolution.
    209 
    210 * Tue Feb 28 2006 - damien.carbery@sun.com
    211 - Bump to 2.13.92.
    212 
    213 * Tue Feb 14 2006 - damien.carbery@sun.com
    214 - Bump to 2.13.91.
    215 - Remove unneeded glib-gettextize and intltoolize calls.
    216 
    217 * Sun Jan 29 2006 - damien.carbery@sun.com
    218 - Bump to 2.13.90
    219 
    220 * Sun Jan 22 2006 - damien.carbery@sun.com
    221 - Call intltoolize and glib-gettextize to avoid infinite loop.
    222 
    223 * Fri Jan 20 2006 - damien.carbery@sun.com
    224 - Bump to 2.13.5.
    225 
    226 * Sat Sep 17 2005 - glynn.foster@sun.com
    227 - Bump to 2.12.0
    228 
    229 * Mon Aug 15 2005 - damien.carbery@sun.com
    230 - Bump to 2.11.91.
    231 
    232 * Fri Aug 05 2005 - glynn.foster@sun.com
    233 - Merge the 2 splashes into one. Remove the linux splash branding patch
    234   to focus on one for the moment - we can bring it back later if need
    235   be.
    236 
    237 * Tue Jun 14 2005 - bill.haneman@sun.com
    238 - Set GNOME_DISABLE_CRASH_DIALOG to '1', not 'true', for
    239   bug #6273175.  (Previous patch set it to 'true', which failed to work).
    240 
    241 * Fri May 20 2005 - bill.haneman@sun.com
    242 - Edit gnome-session-09-load-a11y-modules.diff to set 
    243   GNOME_DISABLE_CRASH_DIALOG when a11y is on, fix for bug #6273175.
    244 
    245 * Wed May 11 2005 - balamurali.viswanathan@wipro.com
    246 - Bump to 2.10.0
    247 
    248 * Wed Jan 23 2005 - arvind.samptur@wipro.com
    249 - Edit patch gnome-session-09-load-a11y-modules.diff to set
    250   the GTK_MODULES env before gnome_program_init (). This way
    251   b-a-s will get this env and will pass it on to all the factories
    252   that it would spawn.
    253 
    254 * Fri Jan 21 2005 - bill.haneman@sun.com
    255 - Edited patch gnome-session-09-load-a11y-modules.diff to fix bug
    256   6202413.  We now putenv("NO_J2D_DGA=true") when a11y is enabled,
    257   and the env variable isnt already set.
    258 
    259 * Thu Jan 14 2005 - ghee.teo@sun.com
    260 - Reduce the purge_delay and warn_delay to 30seconds which essentially
    261   revert back the bugzilla#94754. This patch is to partially fix bq2 
    262   #4978659. The Mozilla team has fixed the mozilla side of the problem by
    263   5068301, however, reducing this timeouts will benefit other badly broken
    264   session apps. 
    265 
    266 * Mon Jan 10 2005 - kieran.colfer@sun.com
    267 - changing date on previous changelog entry - was causing rpmbuild
    268   to fail with "%changelog not in descending chronological order" :-)
    269 
    270 * Mon Jan 03 2005 - arvind.samptur@wipro.com
    271 - Now that gnome-settings-daemon starts per display, the
    272   patch gnome-session-07-sunray-screensaver.diff should not
    273   be required. Corresponding g-s-d patch is
    274   control-center-27-settings-daemon-per-display.diff
    275 
    276 * Thu Nov 12 2004 - alvaro.lopez@sun.com
    277 - Added patch #12.  It fixes #5099423
    278 
    279 * Thu Nov 10 2004 - alvaro.lopez@sun.com
    280 - Source header fixed.
    281 
    282 * Wed Nov 10 2004 - leena.gunda@wipro.com
    283 - Added patch gnome-session-11-gnome-volcheck-default-session.diff
    284   to start gnome-volcheck for Solaris.
    285 
    286 * Thu Nov 04 2004 - brian.cameron@sun.com
    287 - Added patch 10 so that gnome-about launches on first-time login. 
    288 
    289 * Fri Oct 29 2004 - laca@sun.com
    290 - Add gnome-session-remove.1 man page to %files
    291 
    292 * Thu Oct 28 2004 - matt.keenan@sun.com
    293 - Add gnome-session-remove.1 man page
    294 
    295 * Thu Oct 28 2004 - muktha.narayan@wipro.com
    296 - Load the a11y libraries by setting the GTK_MODULES env variable.
    297   Fixes issues addressed in bug #5097456.
    298 
    299 * Sat Sep 11 2004 - laca@sun.com
    300 - Move Solaris specific LDFLAGS to the Solaris spec file
    301 
    302 * Fri Sep 10 2004 - damien.carbery@sun.com
    303 - Set LDFLAGS so Xrandr and Xrender can be found.
    304 
    305 * Fri Aug 13 2004 - ghee.teo@sun.com
    306 - Forward ported sun-patches/gnome-session/560-4780014-s.diff 
    307   as gnome-session-07-sunray-screensaver.diff. This is a security fix but
    308   really only affects Sunray.
    309 
    310 * Tue Aug 10 2004 - matt.keenan@sun.com
    311 - Bug:5084286, forward ported patch from mercury for logout effect.
    312 
    313 * Thu Jul 08 2004 - damien.donlon@sun.com
    314 - Updated l10n content to gnome-session-l10n-po-1.2.tar.bz2
    315 
    316 * Wed Jul 07 2004 - niall.power@sun.com
    317 - ported to rpm4
    318                                                                                 
    319 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    320 - added "-j $CPUS" to make to speed up builds
    321 
    322 * Wed Jun 09 2004 - ghee.teo@sun.com
    323 - do not compile patch1 on Solaris as it is a linux only patch.
    324   so use ifos linux to compile in
    325   gnome-session-01-magicdev-default-session.diff
    326 
    327 * Wed May 12 2004 - damien.donlon@sun.com
    328 - Updated l10n content to gnome-session-l10n-po-1.1.tar.bz2
    329 
    330 * Fri May 07 2004 - <matt.keenan@sun.com>
    331 - Bump to 2.6.1.
    332 
    333 * Tue Apr 06 2004 - arvind.samptur@wipro.com
    334 - Add patch to create an atom for legacy X apps to determine
    335   if they are running currently under GNOME
    336 
    337 * Mon Mar 29 2004 - damien.donlon@sun.com
    338 - Updated l10n content to gnome-session-l10n-po-1.0.tar.bz2
    339 
    340 * Tue Mar 24 2004 - <glynn.foster@sun.com>
    341 - Bump to 2.6.0. Remove man page and logout effect. Seems like
    342   a not hugely useful branding patch that it might be good to 
    343   remove. 
    344 
    345 * Tue Feb 24 2004 - <glynn.foster@sun.com>
    346 - Bump to 2.5.90
    347 
    348 * Fri Dec 15 2003 - <glynn.foster@sun.com>
    349 - Bump to 2.5.2
    350 
    351 * Wed Aug 06 2003 - <glynn.foster@sun.com>
    352 - Remove splash icons for non-important apps
    353 
    354 * Wed Jul 30 2003 - <markmc@sun.com>
    355 - Add magicdev correctly
    356 
    357 * Mon Jul 21 2003 - <markmc@sun.com>
    358 - Make it use the consolehelper versions of reboot and poweroff.
    359 
    360 * Fri Jul 11 2003 - <matt.keenan@sun.com>
    361 - Add patch for logout effect
    362 
    363 * Thu Jul 10 2003 - <glynn.foster@sun.com>
    364 - Add an icon to the splash widget.
    365 
    366 * Thu Jul 10 2003 - <glynn.foster@sun.com>
    367 - Add magicdev to the default session.
    368 
    369 * Wed Jul 09 2003 - <michael.twomey@sun.com>
    370 - add in sun po files
    371 
    372 * Mon Jun 30 2003 - <markmc@sun.com>
    373 - run autoheader so config.h contains gets HAVE_RANDR
    374 
    375 * Mon Jun 30 2003 - <markmc@sun.com>
    376 - add display properties restoration patch
    377 - copy the splash screen into the build tree in
    378   %prep rather than manually installing it in %install
    379 
    380 * Tue May 13 2003 - <ghee.teo@Sun.COM>
    381 - Created new spec file for gnome-session
    382