Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37047235
en ru br
ALT Linux repos
S:45.0-alt1
5.0: 2.26.0-alt1
4.1: 2.22.2.1-alt1.M41.1
4.0: 2.16.3-alt2
3.0: 2.10.2-alt1

Group :: Graphical desktop/GNOME
RPM: gnome-control-center

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _name control-center
%define ver_major 2.22

%def_disable debug
%def_disable alsa
%def_enable aboutme
%def_disable static

Name: gnome-control-center
Version: %ver_major.2.1
Release: alt1.M41.1

Summary: GNOME Control Center
License: GPLv2+
Group: Graphical desktop/GNOME
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2

Patch1: %name-2.22.1-alt-background-location.patch
# Fix some useless warnings in libslab
# http://bugzilla.gnome.org/show_bug.cgi?id=439398
Patch6: %name-2.19.90-no-warnings.patch

# call the ALTLinux graphical passwd changing apps (from fedora)

Patch7: %name-2.21.92-passwd.patch
# backported from svn-8702
Patch8: %name-fix-emails-aboutme.patch

# http://bugzilla.gnome.org/show_bug.cgi?id=529773

Patch9: control-center-dont-encode-to-utf8.diff

# change default preferred apps to programs we ship

Patch99: %name-2.21.92-default-applications.patch

Patch100: %name-2.22.0-add-randr12-capplet.patch

Obsoletes: %_name
Provides: %_name = %version-%release

# From configure.in

%define gtk_ver 2.11.6
%define libgnomeui_ver 2.2.0
%define gnome_vfs_ver 2.0.0
%define fontconfig_ver 1.0.0
%define xft_ver 2.1.2
%define libbonobo_ver 2.0.0
%define nautilus_ver 2.6.0
%define gnome_menu_ver 2.10.1
%define libmetacity_ver 2.21.21
%define libgnomekbd_ver 2.21.4.1
%define libxklavier_ver 3.7

# For vfs-methods

%define glib_ver 2.13
# For about-me capplet
%define eds_ver 1.7.90
# For HAL support
%define hal_ver 0.5.6
%define dbus_glib_ver 0.32
# For gstreamer support
%define gstreamer_ver 0.10.1.2

# libgnome 2.13.0 is needed because of file conflicts with older ones.

%define libgnome_ver 2.13.0
%define desktop_file_utils_ver 0.8

PreReq: GConf2
PreReq: librarian
Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver
Requires: xscreensaver

# For /usr/share/gnome

Requires: gnome-filesystem
Requires: gnome-desktop
Requires: gnome-settings-daemon
# for graphical passwd changing apps
Requires: userpasswd
# gnomevfs_modulesdir is defined in rpm-build-gnome since version 0.3.
BuildPreReq: rpm-build-gnome >= 0.9

# From configure.in

BuildPreReq: gnome-doc-utils
# We use macros first defined in this version of ScrollKeeper
BuildPreReq: librarian
BuildPreReq: gnome-vfs-devel >= %gnome_vfs_ver
BuildPreReq: fontconfig-devel >= %fontconfig_ver
BuildPreReq: libXft-devel >= %xft_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libbonobo2-devel >= %libbonobo_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libnautilus-devel >= %nautilus_ver
BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-common
BuildPreReq: libX11-devel libXext-devel libSM-devel libXScrnSaver-devel libXt-devel libXxf86misc-devel libXcursor-devel libXi-devel libXrandr-devel
BuildPreReq: libgnome-menus-devel >= %gnome_menu_ver
BuildPreReq: libgnome-panel-devel
# For gnome-settings-daemon
BuildPreReq: libgnome-desktop-devel libdbus-glib-devel
BuildPreReq: librsvg-devel
BuildPreReq: gstreamer-devel >= %gstreamer_ver
BuildPreReq: gst-plugins-devel >= %gstreamer_ver
BuildPreReq: libxml2-devel libmetacity-devel
BuildPreReq: libXft-devel libXi-devel libXrandr-devel libXrender-devel libXcursor-devel
BuildPreReq: libmetacity-devel >= %libmetacity_ver
BuildPreReq: libgnomekbd-devel >= %libgnomekbd_ver
BuildPreReq: libxklavier-devel >= %libxklavier_ver
BuildPreReq: libeel-devel
BuildPreReq: gnome-settings-daemon-devel
%{?_enable_aboutme:BuildPreReq: evolution-data-server-devel >= %eds_ver}
BuildPreReq: libhal-devel >= %hal_ver
BuildPreReq: libdbus-glib-devel >= %dbus_glib_ver
BuildPreReq: libgio-devel

BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver

BuildRequires: gcc-c++ imake  python-modules-compiler samba-common xorg-cf-files perl-XML-Parser

Requires: libxklavier >= %libxklavier_ver

%description
GNOME (the GNU Network Object Model Environment) is an attractive and
easy-to-use GUI desktop environment. The control-center package
provides the GNOME Control Center utilities that allow you to setup
and configure your system's GNOME environment (things like the desktop
background and theme, the screensaver, the window manager, system
sounds, and mouse behavior).

If you install GNOME, you need to install control-center.

%package devel
Summary: GNOME Control Center development files
Group: Development/GNOME and GTK+
Obsoletes: %_name-devel
Provides: %_name-devel = %version-%release
Requires: %name = %version-%release

%description devel
If you're interested in developing panels for the GNOME control center,
you'll want to install this package.

%name-devel helps you create the 'capplets' which are used in
the control center.

%if_enabled static
%package devel-static
Summary: GNOME control-center static libraries
Group: Development/GNOME and GTK+
Obsoletes: %_name-devel-static
Provides: %_name-devel-static = %version-%release
Requires: %name-devel = %version-%release

%description devel-static
Static libraries that could be used to develop GNOME Control Center
'capplets'.
%endif

%prep
%setup -q
%patch1 -p1 -b .background-location
pushd libslab
%patch6 -p0 -b .warnings
popd
%patch7 -p1 -b .passwd
%patch8 -p1 -b .emails
%patch9 -p1

%patch99 -p1 -b .default-apps
%patch100 -p1 -b .add-randr12-capplet

# fix translation

subst 's/Музыкальный проигрыватель Muine/Музыкальный проигрыватель Rhythmbox/' po/ru.po

# always run without nau.

#__subst 's,\(Exec=%name\),\1 --use-shell,' %_name/gnomecc.desktop*

# do not run update-desktop-database

#__subst 's,install-desktop-database$,,' vfs-methods/*/Makefile*

%build
gnome-doc-prepare -f --automake
%autoreconf

# Work-around http://bugzilla.gnome.org/show_bug.cgi?id=427939

sed -i -e 's/ at ENABLE_SK_TRUE at _s/_s/' help/Makefile.in


%configure \
   --enable-vfs-methods \
   --enable-aboutme \
   %{subst_enable alsa} \
   --enable-gstreamer \
   --disable-esd \
   %{subst_enable aboutme} \
   %{subst_enable debug} \
   %{subst_enable static} \
   --disable-schemas-install \
   --disable-update-mimedb \
   --disable-update-desktopdb \
   --disable-scrollkeeper

# SMP-incompatible build

%make

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install DESTDIR=%buildroot install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

%find_lang --output=files_list --with-gnome %name-2.0

%define desktop_schemas fontilus themus control-center

# Add a "valid" OnlyShowIn entry, otherwise desktop-file-install complains

sed -i -e "s/OnlyShowIn=;/OnlyShowIn=GNOME;/"  \
   %buildroot%_datadir/applications/gnome-theme-installer.desktop
sed -i -e "s/OnlyShowIn=;/OnlyShowIn=GNOME;/"  \
   %buildroot%_datadir/applications/themus-theme-applier.desktop

desktop-file-install --vendor gnome --delete-original \
   --dir %buildroot%_datadir/applications \
   --add-only-show-in GNOME \
   --remove-category="Application" \
   --remove-category="PersonalSettings" \
   %buildroot%_datadir/applications/*.desktop

sed -i -e "s/OnlyShowIn=GNOME;/OnlyShowIn=;/"  \
   %buildroot%_datadir/applications/gnome-theme-installer.desktop
sed -i -e "s/OnlyShowIn=GNOME;/OnlyShowIn=;/"  \
   %buildroot%_datadir/applications/gnome-themus-theme-applier.desktop

# https://bugzilla.redhat.com/show_bug.cgi?id=161489

sed -i -e "s/OnlyShowIn=GNOME;//"  \
   %buildroot%_datadir/applications/gnome-default-applications.desktop

%post
%post_ldconfig
%gconf2_install %desktop_schemas
%update_desktopdb
%update_mimedb
%update_menus

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %desktop_schemas
fi

%postun
%postun_ldconfig
%clean_desktopdb
%clean_mimedb
%clean_menus

%files -f files_list
%_bindir/*
%config %gconf_schemasdir/*
%_libdir/libgnome-window-settings.so.*
%dir %_libdir/window-manager-settings
%_libdir/window-manager-settings/*.so
%gnomevfs_modulesdir/*.so
%nautilus_extdir/*.so
%dir %_datadir/%name
%_datadir/%name/glade
%_datadir/%name/keybindings
#_datadir/%name/icons
%_datadir/%name/pixmaps
# %_datadir/%name/xrdb
%_datadir/%name/gnome-default-applications.xml
%_desktopdir/*.desktop
%_sysconfdir/xdg/menus/gnomecc.menu

%_datadir/desktop-directories/*
# dir %_datadir/gnome-background-properties
%_datadir/gnome/cursor-fonts
%_datadir/mime/packages/gnome-theme-package.xml
%_sysconfdir/xdg/autostart/gnome-at-session.desktop
%_iconsdir/hicolor/*/apps/*
%gnomehelpdir/%_name
%_omfdir/%_name/*
%config %_sysconfdir/gnome-vfs-2.0/modules/*
%doc AUTHORS ChangeLog NEWS README

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_datadir/pkgconfig/gnome-keybindings.pc

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/window-manager-settings/*.a
%gnomevfs_modulesdir/*.a
%endif

%exclude %_libdir/*/*.la
%exclude %_libdir/*/*/*.la
%exclude %gnomevfs_modulesdir/*.la
%exclude %_desktopdir/mimeinfo.cache

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin