gnome-session.spec
author dermotm
Mon, 18 Oct 2004 09:30:38 +0000
changeset 4276 2a2c7f354601
parent 4265 9c26d9ef4f72
child 4356 421f8221eb62
permissions -rw-r--r--
Incremented release numbers for build 21

Name:         gnome-session
License:      GPL
Group:        System/GUI/GNOME
Version:      2.6.1
Release:      25
Distribution: Cinnabar
Vendor:	      Sun Microsystems, Inc.
Summary:      Session Manager for the GNOME Desktop
Source:       http://ftp.gnome.org/pub/GNOME/sources/gnome-session/%{name}-%{version}.tar.bz2
Source1:      gnome-splash.png
Source2:      gnome-session-l10n-po-1.6.tar.bz2
Source3:      gnome-session.1.gz
Source4:      gnome-session-save.1.gz
Source5:      gnome-session-properties.1.gz
Source6:      gnome-smproxy.1.gz
Source7:      gnome-wm.1.gz
Source8:      default.session.5.gz
Source9:      flash.gif
Source10:     sun-logo.png
Source11:     adobe-sun.png
Patch1:       gnome-session-01-magicdev-default-session.diff
Patch2:       gnome-session-02-busy-cursor.diff
Patch3:	      gnome-session-03-splash-logos.diff
Patch4:       gnome-session-04-remote-desktop-activation.diff
Patch5:       gnome-session-05-gnome-atom.diff
Patch6:       gnome-session-06-logout-effect.diff
Patch7:       gnome-session-07-sunray-screensaver.diff
Patch8:       gnome-session-08-g11n-alllinguas.diff
URL:          http://www.gnome.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:       %{_defaultdocdir}/%{name}
Autoreqprov:  on

%define libgnomeui_version 2.2.0
%define libwnck_version 2.2.1

BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
BuildRequires: libwnck-devel >= %{libwnck_version}
Requires: libgnomeui >= %{libgnomeui_version}
Requires: libwnck >= %{libwnck_version}

%description
This package provides the basic session manager and tools for the GNOME Desktop.

%prep
%setup -q
# magicdev is only available on linux
%ifos linux
%patch1 -p1
%endif
%patch2 -p1
%patch3 -p1 
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
cp %SOURCE1 gnome-session
cp %SOURCE9 gnome-session
cp %SOURCE10 gnome-session
cp %SOURCE11 gnome-session
bzcat %SOURCE2 | tar xvf -

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

%ifos solaris
%define poweroff /usr/sbin/poweroff
%define reboot   /usr/sbin/reboot
%else
%define poweroff /usr/bin/poweroff
%define reboot   /usr/bin/reboot
%endif

libtoolize --force
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros -I .
autoheader
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS"		\
./configure --prefix=%{_prefix}				\
	    --sysconfdir=%{_sysconfdir} 		\
	    --mandir=%{_mandir}				\
	    --with-halt-command=%poweroff	\
	    --with-reboot-command=%reboot
make -j $CPUS

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=$RPM_BUILD_ROOT install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
install -d $RPM_BUILD_ROOT%{_mandir}/man1
install -d $RPM_BUILD_ROOT%{_mandir}/man5
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man5

%clean
rm -rf $RPM_BUILD_ROOT

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="gnome-session.schemas"
for S in $SCHEMAS; do
	gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
done

%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_mandir}/man1/gnome-session-properties.1.gz
%{_mandir}/man1/gnome-session-save.1.gz
%{_mandir}/man1/gnome-session.1.gz
%{_mandir}/man1/gnome-smproxy.1.gz
%{_mandir}/man1/gnome-wm.1.gz
%{_mandir}/man1/session-properties.1.gz
%{_mandir}/man5/default.session.5.gz
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/gnome/default.session
%{_datadir}/gnome/default.wm
%{_sysconfdir}/gconf/schemas/*
%{_datadir}/control-center-2.0/capplets/session-properties.desktop

%changelog
* Sat Sep 11 2004 - [email protected]
- Move Solaris specific LDFLAGS to the Solaris spec file

* Fri Sep 10 2004 - [email protected]
- Set LDFLAGS so Xrandr and Xrender can be found.

* Fri Aug 13 2004 - [email protected]
- Forward ported sun-patches/gnome-session/560-4780014-s.diff 
  as gnome-session-07-sunray-screensaver.diff. This is a security fix but
  really only affects Sunray.

* Tue Aug 10 2004 - [email protected]
- Bug:5084286, forward ported patch from mercury for logout effect.

* Thu Jul 08 2004 - [email protected]
- Updated l10n content to gnome-session-l10n-po-1.2.tar.bz2

* Wed Jul 07 2004 - [email protected]
- ported to rpm4
                                                                                
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds

* Wed Jun 09 2004 - [email protected]
- do not compile patch1 on Solaris as it is a linux only patch.
  so use ifos linux to compile in
  gnome-session-01-magicdev-default-session.diff

* Wed May 12 2004 - [email protected]
- Updated l10n content to gnome-session-l10n-po-1.1.tar.bz2

* Fri May 07 2004 - <[email protected]>
- Bump to 2.6.1.

* Tue Apr 06 2004 - [email protected]
- Add patch to create an atom for legacy X apps to determine
  if they are running currently under GNOME

* Mon Mar 29 2004 - [email protected]
- Updated l10n content to gnome-session-l10n-po-1.0.tar.bz2

* Tue Mar 24 2004 - <[email protected]>
- Bump to 2.6.0. Remove man page and logout effect. Seems like
  a not hugely useful branding patch that it might be good to 
  remove. 

* Tue Feb 24 2004 - <[email protected]>
- Bump to 2.5.90

* Fri Dec 15 2003 - <[email protected]>
- Bump to 2.5.2

* Wed Aug 06 2003 - <[email protected]>
- Remove splash icons for non-important apps

* Wed Jul 30 2003 - <[email protected]>
- Add magicdev correctly

* Mon Jul 21 2003 - <[email protected]>
- Make it use the consolehelper versions of reboot and poweroff.

* Fri Jul 11 2003 - <[email protected]>
- Add patch for logout effect

* Thu Jul 10 2003 - <[email protected]>
- Add an icon to the splash widget.

* Thu Jul 10 2003 - <[email protected]>
- Add magicdev to the default session.

* Wed Jul 09 2003 - <[email protected]>
- add in sun po files

* Mon Jun 30 2003 - <[email protected]>
- run autoheader so config.h contains gets HAVE_RANDR

* Mon Jun 30 2003 - <[email protected]>
- add display properties restoration patch
- copy the splash screen into the build tree in
  %prep rather than manually installing it in %install

* Tue May 13 2003 - <[email protected]>
- Created new spec file for gnome-session