gnome-settings-daemon.spec revision 12984
18861N/A#
18861N/A# spec file for package gnome-settings-daemon.
18861N/A#
18861N/A# Copyright (c) 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A# Owner: dkenny
18861N/A#
18861N/A%include l10n.inc
18861N/AName: gnome-settings-daemon
18861N/ALicense: GPL
18861N/AGroup: System/GUI/GNOME
18861N/AVersion: 2.22.0
18861N/ARelease: 1
18861N/ADistribution: Java Desktop System
18861N/AVendor: Sun Microsystems, Inc.
18861N/ASummary: The GNOME Settings Daemon
18861N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gnome-settings-daemon/2.22/gnome-settings-daemon-%{version}.tar.bz2
18861N/A%if %build_l10n
18861N/ASource1: l10n-configure.sh
18861N/A%endif
18970N/A# TODO - l10n extraction from existing gnome-control-center.
20818N/A#Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2
18861N/A# date:2006-12-07 owner:dcarbery type:bug bugzilla:383356
18861N/APatch1: gnome-settings-daemon-01-no-libgnomekbd.diff
18861N/A# date:2004-10-06 owner:dkenny type:bug bugster:5101706
18861N/APatch2: gnome-settings-daemon-02-logout-shortcut.diff
18861N/A# date:2004-10-19 owner:dkenny type:feature bugster:4878555
18861N/APatch3: gnome-settings-daemon-03-custom-keybinding.diff
18861N/A# date:2006-06-30 owner:stephen type:feature
19142N/APatch4: gnome-settings-daemon-04-trusted-extensions.diff
19997N/A# date:2006-08-28 owner:pwade type:bug bugster:6327546
18861N/APatch5: gnome-settings-daemon-05-sticky-timeout.diff
18861N/A# date:2008-01-24 owner:dkenny type:bug bugzilla:511733
18861N/APatch6: gnome-settings-daemon-06-xft.diff
18861N/A# date:2008-02-15 owner:dcarbery type:bug bugzilla:??????
18861N/APatch7: gnome-settings-daemon-07-uninstalled.diff
18861N/A# date:2008-05-01 owner:yippi type:bug bugzilla:530975
18861N/APatch8: gnome-settings-daemon-08-gnomeinit.diff
18861N/A
18861N/AURL: http://www.gnome.org
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ADocdir: %{_defaultdocdir}/control-center2
18861N/AAutoreqprov: on
18861N/APrereq: /sbin/ldconfig
18861N/APrereq: GConf
19142N/A
18861N/A%define libgnomeui_version 2.6.0
18861N/A%define esound_version 0.2.33
18861N/A%define gnome_desktop_version 2.6.1
19126N/A%define metacity_version 2.8.0
18861N/A%define nautilus_version 2.6.1
19126N/A%define fontilus_version 2.4.0
18861N/A%define acme_version 2.4.2
19142N/A%define desktop_file_utils_version 0.10
18861N/A%define xft_version 2.1.7
18861N/A
18861N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
18861N/ABuildRequires: esound-devel >= %{esound_version}
18861N/ABuildRequires: gnome-desktop-devel >= %{gnome_desktop_version}
18861N/ABuildRequires: metacity >= %{metacity_version}
18861N/ABuildRequires: nautilus-devel >= %{nautilus_version}
18861N/ABuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
18861N/ABuildRequires: automake >= 1.9
18861N/ABuildRequires: evolution-data-server-devel
18861N/ABuildRequires: gstreamer-plugins-devel
18861N/A
18861N/ARequires: gst-plugins-base
18861N/ARequires: libgnomeui >= %{libgnomeui_version}
18861N/ARequires: esound >= %{esound_version}
18861N/ARequires: gnome-desktop >= %{gnome_desktop_version}
18861N/ARequires: nautilus >= %{nautilus_version}
18861N/ARequires: evolution-data-server
18861N/A
19898N/AObsoletes: fontilus < %{fontilus_version}
19898N/AProvides: fontilus = %{fontilus_version}
19911N/AObsoletes: acme < %{acme_version}
19911N/AProvides: acme = %{acme_version}
18880N/A
18861N/A%description
18861N/AThis package contains the new control-center for the GNOME desktop.
18861N/A
18861N/A%package devel
18861N/ASummary: Development files for the GNOME Settings Daemon
18861N/AGroup: Development/Libraries/GNOME
18861N/ARequires: %name = %version-%release
18861N/A
18861N/A%description devel
18861N/AThis package contains the files need for development of GNOME control center capplets
18861N/A
18861N/A%prep
18861N/A%setup -q
18861N/A# TODO - l10n extraction from existing gnome-control-center.
18861N/A#%if %build_l10n
18861N/A#bzcat %SOURCE1 | tar xf -
18861N/A#cd po-sun; make; cd ..
18861N/A#%endif
18861N/A%patch1 -p1
18861N/A%patch2 -p1
19142N/A%patch3 -p1
19142N/A%if %build_tjds
19142N/A%patch4 -p1
18861N/A%endif
18861N/A%patch5 -p1
18861N/A%patch6 -p1
18861N/A%patch7 -p1
18861N/A%patch8 -p1
18861N/A
18861N/A# Rename dir so that #include does not have to change on gnome-control-center.
18861N/A# Combines with patch mv-src-dir.diff (see bugzilla 511820).
18861N/A##mv src gnome-settings-daemon
18861N/A
18861N/A%build
18861N/A%ifos linux
18861N/Aif [ -x /usr/bin/getconf ]; then
18861N/A CPUS=`getconf _NPROCESSORS_ONLN`
18861N/Afi
18861N/A%else
18861N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/A%endif
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/ALC_ALL=
18861N/ALANG=
18861N/Aexport LC_ALL LANG
18861N/Agnome-doc-common
18861N/Agnome-doc-prepare --force
18861N/Alibtoolize --force
18861N/Aglib-gettextize -f
18861N/Aintltoolize --force --copy
18861N/A
18861N/A%if %build_l10n
18861N/Abash -x %SOURCE1 --enable-copyright
18861N/A%endif
18861N/A
18861N/Aaclocal $ACLOCAL_FLAGS -I .
18861N/Aautoheader
18861N/Aautomake -a -c -f
18861N/Aautoconf
18861N/A
18861N/A%if %with_hal
18861N/Aexport ENABLE_HAL_CONFIG="--enable-hal"
18861N/A%else
18861N/Aexport ENABLE_HAL_CONFIG="--disable-hal"
18861N/A%endif
18861N/A
18861N/ACFLAGS="$RPM_OPT_FLAGS -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/X11/share/include" \
18861N/A ./configure \
18861N/A --prefix=%{_prefix} \
18880N/A --datadir=%{_datadir} \
18880N/A --libexecdir=%{_libexecdir} \
19898N/A --sysconfdir=%{_sysconfdir} \
19911N/A --disable-scrollkeeper \
19898N/A --enable-aboutme \
19911N/A --disable-gswitchit \
20818N/A $ENABLE_HAL_CONFIG
20818N/Amake -j $CPUS
20818N/A
20818N/A%install
20818N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
20818N/Amake DESTDIR=$RPM_BUILD_ROOT install
20818N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
20818N/A#Copy zh_HK from zh_TW
20818N/A#Fixes bug 4930405
18861N/Ainstall -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
18861N/Ainstall --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-2.0/*.a
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-2.0/*.la
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%post
18861N/A/sbin/ldconfig
18861N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
18861N/ASCHEMAS="apps_gnome_settings_daemon_default_editor.schemas apps_gnome_settings_daemon_screensaver.schemas desktop_gnome_font_rendering.schemas desktop_gnome_peripherals_keyboard_xkb.schemas apps_gnome_settings_daemon_keybindings.schemas"
20818N/Afor S in $SCHEMAS; do
20818N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
18970N/Adone
18970N/A
18954N/A%postun
18954N/A/sbin/ldconfig
18954N/A
18880N/A%files
18880N/A%defattr(-,root,root)
18880N/A%doc AUTHORS COPYING ChangeLog NEWS README
18861N/A%defattr (-, root, root)
18861N/A%{_prefix}/bin/*
18861N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
18861N/A%{_datadir}/pixmaps/*
18861N/A%{_datadir}/idl/*.idl
18861N/A%{_datadir}/control-center-2.0/*
18861N/A%{_sysconfdir}/gconf/schemas/*.schemas
18861N/A%{_sysconfdir}/gnome-vfs-2.0/modules/*
18861N/A%{_datadir}/gnome/vfolders/*
18861N/A%{_datadir}/gnome/cursor-fonts/*
18861N/A%{_datadir}/gnome/help/*
18861N/A%{_datadir}/omf
18861N/A%{_datadir}/applications/*
18861N/A%{_datadir}/icons/hicolor/*
18861N/A%{_datadir}/gnome-background-properties
18861N/A%{_datadir}/gnome-default-applications
18861N/A%{_libdir}/*.so.*
18861N/A%{_libdir}/bonobo/servers/*
18861N/A%{_libdir}/gnome-vfs-2.0/modules/*.so*
18861N/A%{_libdir}/nautilus/extensions-2.0/*.so
18861N/A%{_libdir}/window-manager-settings/*.so
18861N/A%{_libexecdir}/gnome-settings-daemon
18861N/A%{_mandir}/man1/*
18861N/A
18861N/A%files devel
18861N/A%{_includedir}/gnome-window-settings-2.0/*.h
18861N/A%{_libdir}/pkgconfig/*.pc
18861N/A%{_libdir}/*.so
18861N/A
18861N/A%changelog
18861N/A* Thu May 01 2008 - brian.cameron@sun.com
18861N/A- Fix g-s-d so that it will start up if the user doesn't have a writable
18861N/A $HOME directory via patch gnome-settings-daemon-08-gnomeinit.diff. This
18861N/A is needed for the new GDM rewrite, which needs to run g-s-d and does not
18861N/A have a writable $HOME directory.
18861N/A* Tue Mar 11 2008 - damien.carbery@sun.com
18861N/A- Bump to 2.22.0.
18861N/A* Mon Mar 3 2008 - damien.carbery@sun.com
18861N/A- Bump to 2.21.92.
18861N/A* Fri Feb 15 2008 - damien.carbery@sun.com
18861N/A- Add patch 07-uninstalled to correct Cflags path in the uninstalled.pc.in file. Correct path to the plugins.
18861N/A* Tue Feb 12 2008 - damien.carbery@sun.com
18861N/A- Bump to 2.21.91. Remove upstream patches 07-uninstalled and 09-mv-src-dir.
18861N/A Remove 06-relocate-plugins as the change is implemented in configure.
18861N/A* Fri Feb 01 2008 - damien.carbery@sun.com
18861N/A- Bump to 2.21.90.2.
19286N/A* Tue Jan 29 2008 - brian.cameron@sun.com
19603N/A- Bump to 2.21.90.1.
* Thu Jan 24 2007 - damien.carbery@sun.com
- Add patch 10-mv-src-dir to rename 'src' to 'gnome-settings-daemon' to
simplify uninstalled building. Bugzilla 511820.
* Thu Jan 24 2007 - darren.kenny@sun.com
- Add patch 09-xft to fix bugzilla 511733.
* Wed Jan 23 2007 - damien.carbery@sun.com
- Add patch 08-uninstalled to create an uninstalled.pc.in file to permit
building.
* Wed Jan 23 2007 - darren.kenny@sun.com
- Initial SPEC file for new g-s-d project.
Extracted from control-center project.
- Removed gnome screensaver patch which isn't needed (and was actually
ineffective).