8697319
Name:		gnome-settings-daemon
William Jon McCann 6c32b09
Version:	2.22.1
William Jon McCann 6c32b09
Release:	0.2008.03.26.1%{?dist}
8697319
Summary:	The daemon sharing settings from GNOME to GTK+/KDE applications
8697319
8697319
Group:		System Environment/Daemons
8697319
License:	GPLv2+
8697319
URL:		http://ftp.gnome.org/pub/gnome/sources/%{name}
54d55a7
Source0:	http://ftp.gnome.org/pub/gnome/sources/%{name}/2.22/%{name}-%{version}.tar.bz2
8697319
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8697319
8697319
Requires(pre): GConf2 >= 2.14
8697319
Requires(preun): GConf2 >= 2.14
8697319
Requires(post): GConf2 >= 2.14
8697319
8697319
BuildRequires:	dbus-glib-devel
William Jon McCann 08ee654
BuildRequires:	GConf2-devel
8697319
BuildRequires:	gtk2-devel
8697319
BuildRequires:	gnome-vfs2-devel
a7325d2
BuildRequires:	gnome-desktop-devel >= 2.21.91
8697319
BuildRequires:	libglade2-devel
8697319
BuildRequires:	libgnomeui-devel
8697319
BuildRequires:	libgnome-devel
8697319
BuildRequires:	xorg-x11-proto-devel
8697319
BuildRequires:	gstreamer-devel
8697319
BuildRequires:	gstreamer-plugins-base-devel
8697319
BuildRequires:	libgnomekbd-devel
8697319
BuildRequires:	gettext
8697319
BuildRequires:	perl(XML::Parser)
8697319
a7325d2
Patch1:         add-randr-12.patch
1d484ea
Patch2:         gnome-settings-daemon-2.21.91-ignore-model-if-evdev.patch
a7325d2
8697319
%description
William Jon McCann 08ee654
A daemon to share settings from GNOME to other applications. It also
8697319
handles global keybindings, as well as a number of desktop-wide settings.
8697319
8697319
%package	devel
8697319
Summary:	Development files for %{name}
8697319
Group:		Development/Libraries
8697319
Requires:	%{name} = %{version}-%{release}
8697319
Requires:	pkgconfig
8697319
Requires:	dbus-glib-devel
8697319
8697319
%description	devel
8697319
The %{name}-devel package contains libraries and header files for
8697319
developing applications that use %{name}.
8697319
8697319
%prep
8697319
%setup -q
8697319
a7325d2
%patch1 -p1 -b .add-randr-12
1d484ea
%patch2 -p1 -b .ignore-layout-if-using-evdev
a7325d2
8697319
%build
William Jon McCann 6c32b09
%configure --enable-static=no --enable-profiling
8697319
make %{?_smp_mflags}
8697319
8fd7d65
cd po
8fd7d65
# clean up .po files
8fd7d65
make %{name}.pot
8fd7d65
for p in *.po; do
8fd7d65
  msgmerge -U $p %{name}.pot
8fd7d65
done
8fd7d65
# regenerate .gmo files
8fd7d65
make
William Jon McCann 08ee654
cd ..
8697319
8697319
%install
8697319
rm -rf $RPM_BUILD_ROOT
8697319
make install DESTDIR=$RPM_BUILD_ROOT
8697319
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
8697319
8697319
%find_lang %{name} --with-gnome
8697319
8697319
%clean
8697319
rm -rf $RPM_BUILD_ROOT
8697319
8697319
%post
8697319
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
8697319
gconftool-2 --makefile-install-rule \
8697319
	%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_keybindings.schemas \
8697319
	%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_screensaver.schemas \
8697319
	%{_sysconfdir}/gconf/schemas/desktop_gnome_font_rendering.schemas \
8697319
	%{_sysconfdir}/gconf/schemas/gnome-settings-daemon.schemas \
8697319
	>& /dev/null || :
8697319
8697319
%pre
8697319
if [ "$1" -gt 1 ]; then
8697319
	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9642533
	if [ -f %{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_default_editor.schemas ] ; then
9642533
		gconftool-2 --makefile-uninstall-rule \
9642533
			%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_default_editor.schemas \
9642533
			>& /dev/null || :
9642533
	fi
8697319
	gconftool-2 --makefile-uninstall-rule \
8697319
		%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_keybindings.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_screensaver.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/desktop_gnome_font_rendering.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/gnome-settings-daemon.schemas \
8697319
		>& /dev/null || :
8697319
fi
8697319
8697319
%preun
8697319
if [ "$1" -eq 0 ]; then
8697319
	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9642533
	if [ -f %{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_default_editor.schemas ] ; then
9642533
		gconftool-2 --makefile-uninstall-rule \
9642533
			%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_default_editor.schemas \
9642533
			>& /dev/null || :
9642533
	fi
8697319
	gconftool-2 --makefile-uninstall-rule \
8697319
		%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_keybindings.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/apps_gnome_settings_daemon_screensaver.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/desktop_gnome_font_rendering.schemas \
8697319
		%{_sysconfdir}/gconf/schemas/gnome-settings-daemon.schemas \
8697319
		>& /dev/null || :
8697319
fi
8697319
8697319
%files -f %{name}.lang
8697319
%defattr(-,root,root,-)
William Jon McCann 08ee654
%doc AUTHORS COPYING NEWS
8697319
%{_sysconfdir}/gconf/schemas/*
e7456ae
%{_libdir}/gnome-settings-daemon-2.0
8697319
%{_libexecdir}/gnome-settings-daemon
8697319
%{_datadir}/gnome-settings-daemon/
8697319
%{_datadir}/dbus-1/services/org.gnome.SettingsDaemon.service
8697319
8697319
%files devel
8697319
%defattr(-,root,root,-)
8697319
%{_includedir}/gnome-settings-daemon-2.0
8697319
%{_libdir}/pkgconfig/gnome-settings-daemon.pc
8697319
8697319
%changelog
William Jon McCann 6c32b09
* Wed Mar 26 2008 Jon McCann <jmccann@redhat.com> - 2.22.1-0.2008.03.26.1
William Jon McCann 6c32b09
- Update to snapshot
William Jon McCann 6c32b09
- Enable profiling
William Jon McCann 6c32b09
9642533
* Wed Mar 26 2008 - Bastien Nocera <bnocera@redhat.com> - 2.22.0-3
9642533
- apps_gnome_settings_daemon_default_editor.schemas is obsolete (#438937)
9642533
d5dd68c
* Thu Mar 20 2008 Matthias Clasen <mclasen@redhat.com> 2.22.0-2
d5dd68c
- Fix interaction between "Locate Pointer" and volume keys
d5dd68c
54d55a7
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> 2.22.0-1
54d55a7
- Update to 2.22.0
54d55a7
1d484ea
* Sun Mar  9 2008 Ray Strode <rstrode@redhat.com> - 2.21.92-3
1d484ea
- Don't set keyboard model on startup from gconf if evdev is being used.
1d484ea
  Evdev needs to use its own keyboard model to work right.
1d484ea
2946d2f
* Sun Mar  2 2008 Soren Sandmann <sandmann@redhat.com> - 2.21.92-2
2946d2f
- Update randr patch to handle video key
2946d2f
William Jon McCann 08ee654
* Fri Feb 29 2008 Jon McCann <jmccann@redhat.com> - 2.21.92-1
William Jon McCann 08ee654
- Update to 2.21.92
William Jon McCann 08ee654
a7325d2
* Tue Feb 12 2008 Soren Sandmann <sandmann@redhat.com> - 2.21.91-3
a7325d2
- Add patch to make the xrandr plugin listen for client messages from
a7325d2
  the control panel and reread the configuration file.
a7325d2
8fd7d65
* Mon Feb 11 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.91-2
8fd7d65
- Remove obsolete control-center translations
8fd7d65
8eadaec
* Mon Feb 11 2008 - Bastien Nocera <bnocera@redhat.com> - 2.21.91-1
8eadaec
- Update to 2.21.91
8eadaec
- Remove obsolete patches
8eadaec
d82376b
* Thu Feb  7 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.90.1-3
d82376b
- Load xkb settings initially
d82376b
8431422
* Thu Jan 31 2008 - Bastien Nocera <bnocera@redhat.com> - 2.21.90.1-2
8431422
- Fix the path for g-s-d, from upstream patch
8431422
108fcb0
* Tue Jan 29 2008 - Bastien Nocera <bnocera@redhat.com> - 2.21.90.1-1
108fcb0
- Update to 2.21.90.1
108fcb0
8b0adfd
* Tue Jan 29 2008 - Bastien Nocera <bnocera@redhat.com> - 2.21.90-1
8b0adfd
- Update to 2.21.90
8b0adfd
8697319
* Tue Jan 15 2008  Matthias Clasen <mclasen@redhat.com> - 2.21.5.2-2
8697319
- Incorporate review feedback (#428833)
8697319
8697319
* Tue Jan 15 2008  Matthias Clasen <mclasen@redhat.com> - 2.21.5.2-1
8697319
- Update to 2.21.5.2
8697319
8697319
* Tue Jan 15 2008  Matthias Clasen <mclasen@redhat.com> - 2.21.5.1-1
8697319
- Update to 2.21.5.1
8697319
- Fix up BuildRequires
8697319
8697319
* Thu Dec 06 2007 - Bastien Nocera <bnocera@redhat.com> - 2.21.5-1
8697319
- First package
8697319