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