gnome-settings-daemon.spec revision 12254
10139N/A#
10139N/A# spec file for package gnome-settings-daemon.
10139N/A#
10139N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
16307N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: dkenny
10139N/A#
17185N/A%include l10n.inc
10139N/AName: gnome-settings-daemon
10139N/ALicense: GPL
10139N/AGroup: System/GUI/GNOME
10139N/AVersion: 2.21.5
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18688N/AVendor: Sun Microsystems, Inc.
18688N/ASummary: The GNOME Settings Daemon
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gnome-settings-daemon/2.21/gnome-settings-daemon-%{version}.tar.bz2
10139N/A# TODO - l10n extraction from existing gnome-control-center.
11933N/A#Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2
10139N/A# date:2006-12-07 owner:dcarbery type:bug bugzilla:383356
12750N/APatch1: gnome-settings-daemon-01-no-libgnomekbd.diff
19099N/A# date:2004-10-06 owner:dkenny type:bug bugster:5101706
10139N/APatch2: gnome-settings-daemon-02-logout-shortcut.diff
10139N/A# date:2004-10-19 owner:dkenny type:feature bugster:4878555
19142N/APatch3: gnome-settings-daemon-03-custom-keybinding.diff
16401N/A# date:2006-06-30 owner:stephen type:feature
10139N/APatch4: gnome-settings-daemon-04-trusted-extensions.diff
10139N/A# date:2006-08-28 owner:pwade type:bug bugster:6327546
10139N/APatch5: gnome-settings-daemon-05-sticky-timeout.diff
10139N/A# date:2008-01-23 owner:dkenny type:bug bugzilla:511536
10139N/APatch6: gnome-settings-daemon-06-libsound-linking.diff
10139N/A# date:2008-01-23 owner:dkenny type:branding
10139N/APatch7: gnome-settings-daemon-07-relocate-plugins.diff
19142N/A# date:2008-01-23 owner:dcarbery type:bug
19142N/APatch8: gnome-settings-daemon-08-uninstalled.diff
16401N/A# date:2008-01-24 owner:dkenny type:bug bugzilla:511733
10139N/APatch9: gnome-settings-daemon-09-xft.diff
10139N/A
10139N/A
10139N/AURL: http://www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/control-center2
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/APrereq: GConf
10139N/A
16307N/A%define libgnomeui_version 2.6.0
19142N/A%define esound_version 0.2.33
19142N/A%define gnome_desktop_version 2.6.1
16307N/A%define metacity_version 2.8.0
10139N/A%define nautilus_version 2.6.1
10139N/A%define fontilus_version 2.4.0
10139N/A%define acme_version 2.4.2
10139N/A%define desktop_file_utils_version 0.10
10139N/A%define xft_version 2.1.7
19142N/A
10139N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
10139N/ABuildRequires: esound-devel >= %{esound_version}
10139N/ABuildRequires: gnome-desktop-devel >= %{gnome_desktop_version}
19126N/ABuildRequires: metacity >= %{metacity_version}
10139N/ABuildRequires: nautilus-devel >= %{nautilus_version}
19126N/ABuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
10139N/ABuildRequires: automake >= 1.9
19142N/ABuildRequires: evolution-data-server-devel
10139N/ABuildRequires: gstreamer-plugins-devel
10139N/A
10139N/ARequires: gst-plugins-base
10139N/ARequires: libgnomeui >= %{libgnomeui_version}
10139N/ARequires: esound >= %{esound_version}
10139N/ARequires: gnome-desktop >= %{gnome_desktop_version}
10139N/ARequires: nautilus >= %{nautilus_version}
11933N/ARequires: evolution-data-server
11933N/A
10139N/AObsoletes: fontilus < %{fontilus_version}
10139N/AProvides: fontilus = %{fontilus_version}
10139N/AObsoletes: acme < %{acme_version}
10139N/AProvides: acme = %{acme_version}
10658N/A
10139N/A%description
10139N/AThis package contains the new control-center for the GNOME desktop.
10139N/A
10139N/A%package devel
10139N/ASummary: Development files for the GNOME Settings Daemon
10139N/AGroup: Development/Libraries/GNOME
10139N/ARequires: %name = %version-%release
11933N/A
11933N/A%description devel
11933N/AThis package contains the files need for development of GNOME control center capplets
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A# TODO - l10n extraction from existing gnome-control-center.
10139N/A#%if %build_l10n
10139N/A#bzcat %SOURCE1 | tar xf -
11091N/A#cd po-sun; make; cd ..
10139N/A#%endif
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10139N/A%patch3 -p1
10139N/A%if %build_tjds
10139N/A%patch4 -p1
10139N/A%endif
16307N/A%patch5 -p1
10139N/A%patch6 -p1
10139N/A%patch7 -p1
16307N/A%patch8 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
14293N/A
14293N/ALC_ALL=
14293N/ALANG=
14293N/Aexport LC_ALL LANG
14293N/Agnome-doc-common
10139N/Agnome-doc-prepare --force
10139N/Alibtoolize --force
10139N/Aglib-gettextize -f
10139N/Aintltoolize --force --copy
10139N/Aaclocal $ACLOCAL_FLAGS -I .
10139N/Aautoheader
10522N/Aautomake -a -c -f
10139N/Aautoconf
10139N/A
10139N/A%if %with_hal
10139N/Aexport ENABLE_HAL_CONFIG="--enable-hal"
10139N/A%else
10139N/Aexport ENABLE_HAL_CONFIG="--disable-hal"
10139N/A%endif
10139N/A
10139N/ACFLAGS="$RPM_OPT_FLAGS -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/X11/share/include" \
10139N/A ./configure \
10139N/A --prefix=%{_prefix} \
16307N/A --datadir=%{_datadir} \
16307N/A --libexecdir=%{_libexecdir} \
14316N/A --sysconfdir=%{_sysconfdir} \
14316N/A --disable-scrollkeeper \
12750N/A --enable-aboutme \
12750N/A --disable-gswitchit \
12112N/A $ENABLE_HAL_CONFIG
12112N/Amake -j $CPUS
11314N/A
11314N/A%install
11314N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
11091N/Amake DESTDIR=$RPM_BUILD_ROOT install
11091N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
11091N/A#Copy zh_HK from zh_TW
10658N/A#Fixes bug 4930405
10522N/Ainstall -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
10522N/Ainstall --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-plugins/*/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-plugins/*/*.la
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
10139N/A/sbin/ldconfig
10139N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
10139N/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"
10139N/Afor S in $SCHEMAS; do
10139N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
10139N/Adone
10139N/A
10139N/A%postun
10139N/A/sbin/ldconfig
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%doc AUTHORS COPYING ChangeLog NEWS README
10139N/A%defattr (-, root, root)
10139N/A%{_prefix}/bin/*
10139N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
10139N/A%{_datadir}/pixmaps/*
10139N/A%{_datadir}/idl/*.idl
10139N/A%{_datadir}/control-center-2.0/*
10139N/A%{_sysconfdir}/gconf/schemas/*.schemas
10139N/A%{_sysconfdir}/gnome-vfs-2.0/modules/*
10139N/A%{_datadir}/gnome/vfolders/*
10139N/A%{_datadir}/gnome/cursor-fonts/*
10139N/A%{_datadir}/gnome/help/*
10139N/A%{_datadir}/omf
10139N/A%{_datadir}/applications/*
10139N/A%{_datadir}/icons/hicolor/*
10139N/A%{_datadir}/gnome-background-properties
10139N/A%{_datadir}/gnome-default-applications
10139N/A%{_libdir}/*.so.*
10139N/A%{_libdir}/bonobo/servers/*
16401N/A%{_libdir}/gnome-vfs-2.0/modules/*.so*
19206N/A%{_libdir}/nautilus/extensions-2.0/*.so
%{_libdir}/window-manager-settings/*.so
%{_libexecdir}/gnome-settings-daemon
%{_mandir}/man1/*
%files devel
%{_includedir}/gnome-window-settings-2.0/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%changelog
* 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).